I´m testing Vicidial 2.
When I tried to use 'agi-VDADcloser_inboundCIDlookup.agi' it showed me some code bugs:
Executing AGI("Zap/1-1", "agi-VDADcloser_inboundCIDlookup.agi|CL_ENTRANTES-----7275555134-----Closer-----park----------999-----1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi
String found where operator expected at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 283, near "if ($AGILOG) {$agi_string = ""
(Might be a runaway multi-line "" string starting on line 276)
(Missing semicolon on previous line?)
String found where operator expected at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 283, near "if ($AGILOG) {$agi_string = ""+++++ VDAD START LOCAL CHANNEL: EXITING- $priority""
(Do you need to predeclare if?)
syntax error at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 194, near "$|"
syntax error at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 276, near "VDCL STARTED :"
Unmatched right curly bracket at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 285, at end of line
syntax error at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 285, near "}"
Execution of /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi aborted due to compilation errors.
Anyway we managed to fix the code, but now we got some other issue, this is the message asterisk is showing:
Executing Ringing("Zap/1-1", "") in new stack
-- Executing Wait("Zap/1-1", "1") in new stack
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing AGI("Zap/1-1", "agi-VDADcloser_inboundCIDlookup.agi|CL_ENTRANTES-----7275555134-----Closer-----park----------999-----1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi
Can't locate object method "create_record_iterator" via package "DBI::db" at /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi line 323, <STDIN> line 1.
Any ideas / sugestion?