by mtancoff » Tue Aug 29, 2006 12:42 pm
Im experimenting with the inboundCIDlookup.agi, but calling from sipura, don't want to break my head with TELCO problems yet, I'd like to solve the CIDlookup first, then move on.
I can't get records inserted if the CID doens't exists in vicidial_list. Post You the results:
Executing Verbose("Zap/1-1", "Incoming call from BT line . CallerID="2600" <2600>") in new stack
Incoming call from BT line . CallerID="2600" <2600>
-- 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
Perl Environment Dump:
0|CL_ENTRANTES-----7275555134-----Closer-----park----------999-----1|
AGI Environment Dump:
-- accountcode =
-- callerid = 2600
-- calleridname = 2600
-- callingani2 = 0
-- callingpres = 0
-- callingtns = 0
-- callington = 0
-- channel = Zap/1-1
-- context = default
-- dnid = unknown
-- enhanced = 0.0
-- extension = s
-- language = en
-- priority = 3
-- rdnis = unknown
-- request = agi-VDADcloser_inboundCIDlookup.agi
-- type = Zap
-- uniqueid = 1156872897.7
INBOUND CALL VDCL STARTED
+++++ INBOUND CALL VDCL STARTED : |1156872897.7|CL_ENTRANTES|Zap/1-1|s|Zap|Closer-7275555134|2006-08-29 14:34:58
AGI Environment Dump: |1156872897.7|Zap/1-1|s|Zap|Closer|
INBOUND CALL RECEIVED IN FROM VDCL: Closer Zap/1-1
+++++ INBOUND VDCL START : |1156872897.7|Zap/1-1|s|Zap|2006-08-29 14:34:58
|SELECT lead_id from vicidial_list where list_id='999' and phone_number='2600' order by modify_date limit 1;||
FAIL (unexpected result '')
callerID changed: Y0829143458000000000
|INSERT INTO vicidial_auto_calls values('','127.0.0.1','CL_ENTRANTES','LIVE','','1156872897.7','Y0829143458000000000','Zap/1-1','1','2600','2006-08-29 14:34:58','IN')|