- Code: Select all
2007-04-17 14:46:37|agi-VDADtransfer.agi|Perl Environment Dump:
2007-04-17 14:46:37|agi-VDADtransfer.agi|0|8365
2007-04-17 14:46:37|agi-VDADtransfer.agi|callerID changed: V0417144625000049598
2007-04-17 14:46:37|agi-VDADtransfer.agi|AGI Environment Dump:
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- accountcode =
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- callerid = 8002401106
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- calleridname = V0417144625000049598
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- callingani2 = 0
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- callingpres = 0
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- callingtns = 0
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- callington = 0
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- channel = IAX2/127.0.0.1:4569-93
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- context = default
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- dnid = unknown
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- enhanced = 0.0
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- extension = 8365
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- language = en
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- priority = 3
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- rdnis = unknown
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- request = agi-VDADtransfer.agi
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- type = IAX2
2007-04-17 14:46:37|agi-VDADtransfer.agi| -- uniqueid = 1176835585.47192
2007-04-17 14:46:37|agi-VDADtransfer.agi|AGI Variables: |1176835585.47192|IAX2/127.0.0.1:4569-93|8365|IAX2|V0417144625000049598|V0417144625000049598|3|
2007-04-17 14:46:37|agi-VDADtransfer.agi|+++++ VDAD START : |49598|2007-04-17 14:46:37|1.2.16|3|
2007-04-17 14:46:37|agi-VDADtransfer.agi||SELECT count(*) FROM vicidial_live_agents where callerid='V0417144625000049598';|
2007-04-17 14:46:37|agi-VDADtransfer.agi||SELECT count(*) FROM vicidial_auto_calls where callerid='V0417144625000049598' and status IN('LIVE','XFER');|
2007-04-17 14:46:37|agi-VDADtransfer.agi|-- VDAD : |1|update of vac table: V0417144625000049598
|UPDATE vicidial_auto_calls set uniqueid='1176835585.47192', channel='IAX2/127.0.0.1:4569-93',status='LIVE',stage='LIVE-0' where callerid='V0417144625000049598' order by call_time desc limit 1;|
2007-04-17 14:46:37|agi-VDADtransfer.agi||INSERT INTO vicidial_log (uniqueid,lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed) values('1176835585.47192','49598','AGENTES','2007-04-17 14:46:37','1176835597','QUEUE','1','5053931427','VDAD','N')|
2007-04-17 14:46:37|agi-VDADtransfer.agi|-- VDAD : |49598|49598|insert to vicidial_log: 1176835585.47192
2007-04-17 14:46:37|agi-VDADtransfer.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and server_ip='192.168.2.5' and campaign_id = 'AGENTES' and call_time < "2007-04-17 14:46:25" and lead_id != '49598';|
2007-04-17 14:46:37|agi-VDADtransfer.agi||SELECT count(*) FROM vicidial_live_agents where server_ip='192.168.2.5' and campaign_id = 'AGENTES' and last_update_time > '20070417144632';|
2007-04-17 14:46:37|agi-VDADtransfer.agi||CONCURRENT TRANSFERS AUTO SETTING: 3 (19)|
2007-04-17 14:46:37|agi-VDADtransfer.agi|-- VDAD get agent: |1|update of vla table: AGENTES|192.168.2.5
|UPDATE vicidial_live_agents set status='QUEUE',lead_id='49598',uniqueid='1176835585.47192', channel='IAX2/127.0.0.1:4569-93', callerid='V0417144625000049598' where status = 'READY' and server_ip='192.168.2.5' and campaign_id='AGENTES' and last_update_time > '20070417144632' order by user_level desc,last_call_finish limit 1;|
2007-04-17 14:46:37|agi-VDADtransfer.agi||SELECT conf_exten,user,extension FROM vicidial_live_agents where status IN('QUEUE','INCALL') and server_ip='192.168.2.5' and campaign_id='AGENTES' and callerid='V0417144625000049598' and channel='IAX2/127.0.0.1:4569-93' order by last_call_time limit 1;|
2007-04-17 14:46:37|agi-VDADtransfer.agi|-- VDAD XFER : |1|update of vac table: V0417144625000049598
|UPDATE vicidial_auto_calls set status='XFER', stage='XFER-0' where callerid='V0417144625000049598';|
2007-04-17 14:46:37|agi-VDADtransfer.agi|exiting the VDAD app, transferring call to 8600068
2007-04-17 14:46:37|agi-VDADtransfer.agi|XXXXXXXXXX VDAD transferred: start|stop 2007-04-17 14:46:37|2007-04-17 14:46:37
And the 8365 exten is:
- Code: Select all
; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,Playback(sip-silence)
exten => 8365,n,AGI(agi://127.0.0.1:4577/call_log)
;exten => 8365,1,AGI(call_log.agi,${EXTEN})
exten => 8365,n,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,n,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,n,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,n,Hangup
THANKS