SURVEYCAMP using remote agents and agi_VDAD_all_outbound

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

SURVEYCAMP using remote agents and agi_VDAD_all_outbound

Postby tektrix » Sun Mar 29, 2009 5:24 pm

Hello,

Im getting an issue in setting up survey campaign using survey tab in campaigns settings. i ve set all the values in there .

I want to run that using remote agents to transfer calls to anpther ACD.

but nothing is being play when i run the campaign and call drops.

Version of VICIDIal is 2.0.5rc3.

below are the agi logs for a call i made

2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|AGI Environment Dump:
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- accountcode =
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- callerid = 9314077337573
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- calleridname = unknown
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- callingani2 = 0
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- callingpres = 0
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- callingtns = 0
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- callington = 0
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- channel = SIP/208.43.83.184-08ada380
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- context = default
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- dnid = unknown
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- enhanced = 0.0
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- extension = 8366
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- language = en
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- priority = 3
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- rdnis = unknown
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- request = agi-VDAD_ALL_outbound.agi
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- type = SIP
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi| -- uniqueid = 1238361402.151
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|AGI Variables: |1238361402.151|SIP/208.43.83.184-08ada380|8366|SIP|9314077337573|unknown|3|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|+++++ VDAD START : |73|2009-03-29 17:16:53|1.2|3|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|0|SELECT count(*) FROM vicidial_live_agents where callerid='9314077337573';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|0|SELECT count(*) FROM vicidial_auto_calls where callerid='9314077337573' and status IN('LIVE','XFER');|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|-- VDAD : |0E0|update of vac table: 9314077337573
|UPDATE vicidial_auto_calls set uniqueid='1238361402.151', channel='SIP/208.43.83.184-08ada380',status='LIVE',stage='LIVE-0' where callerid='9314077337573' order by call_time desc limit 1;|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|-- VDAC posttime record: |0E0|20090329171853|9314077337573|SURVEY|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|interrupt_digit |-1|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|digit |9| TotalDTMF |9|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|digit || TotalDTMF |9|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||UPDATE vicidial_list set security_phrase='9',status='PM' where lead_id = '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|-- VDAD vicidial_list OPT_CODE update: |0E0|73|9|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|-- VDAC posttime record: |0E0|20090329171759|9314077337573|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|1|VDAC-reinsert|INSERT INTO vicidial_auto_calls (server_ip,campaign_id,status,lead_id,uniqueid,callerid,channel,phone_code,phone_number,call_time,call_type,stage) values('174.142.104.196','','CLOSER','73','1238361402.151','9314077337573','SIP/208.43.83.184-08ada380','','','2009-03-29 17:16:53','IN','CLOSER-0.25')|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '' and call_time < "" and lead_id != '73';|
2009-03-29 17:16:53|agi-VDAD_ALL_outbound.agi|WWWWWWWW VDAD XFER BALANCE WAIT: |0||SIP/208.43.83.184-08ada380|9314077337573|1238361402.151|
2009-03-29 17:17:09|agi-VDAD_ALL_outbound.agi||UPDATE vicidial_log FORCE INDEX(lead_id) set status='DROP',end_epoch='1238361429',length_in_sec='9',term_reason='QUEUETIMEOUT' where lead_id = '73' and uniqueid LIKE "1238361402%";|
2009-03-29 17:17:09|agi-VDAD_ALL_outbound.agi|-- VDAD vicidial_log update: |0E0|1238361402.151
2009-03-29 17:17:09|agi-VDAD_ALL_outbound.agi||UPDATE vicidial_list set status='DROP' where lead_id = '73';|
2009-03-29 17:17:09|agi-VDAD_ALL_outbound.agi|-- VDAD vicidial_list update: |0E0|73
2009-03-29 17:17:09|agi-VDAD_ALL_outbound.agi|-- VDAD vac record deleted: |1||
2009-03-29 17:17:09|agi-VDAD_ALL_outbound.agi|-- VDCL call_hungup timout: |73|VH0329171709||SIP/208.43.83.184-08ada380|insert to vicidial_manager

and have records in auto_calls table as below

| auto_call_id | server_ip | campaign_id | status | lead_id | uniqueid | c allerid | channel | phone_code | phone_number | call_time | call_type | stage | last_update_time | alt_dial | queue_priority | agent_on ly |
+--------------+-----------------+-------------+--------+---------+----------+-- --------------------+---------+------------+--------------+--------------------- +-----------+-------+---------------------+----------+----------------+--------- ---+
| 20 | 174.142.104.196 | TEST_1 | SENT | 7 | NULL | V 0329164509000000007 | NULL | 1 | 4077337573 | 2009-03-29 16:45:09 | OUT | START | 2009-03-29 16:45:09 | NONE | 50 | |
+--------------+-----------------+-------------+--------+---------+----------+-- --------------------+---------+------------+--------------+--------------------- +-----------+-------+---------------------+----------+----------------+---------



as i can see callerid is different in the agi which is used to find record in auto call table. How can this V0329164509000000007 be set so it works ok on the basis of it..

any help will be appreciated

Regards
Ahmed
Born to Network !!!
tektrix
 
Posts: 35
Joined: Tue Mar 20, 2007 5:09 am
Location: pakistan

Postby mflorell » Sun Mar 29, 2009 10:27 pm

Looks like you either are not using the 'o' flag in your Dial command or you are changing callerid in some way before the dial.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tektrix » Mon Mar 30, 2009 7:50 am

Hi Matt,

I have set 'o' flag in my outbound but still getting same issue and i m sure i m not changing the CLID in dialing below is the agi debug
AGI Tx >> agi_network_script: call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----10-----0
AGI Tx >> agi_request: agi://127.0.0.1:4577/call_log--HVcauses ... --10-----0
AGI Tx >> agi_channel: Local/9314077337573@default-af29,2
AGI Tx >> agi_language: en
AGI Tx >> agi_type: Local
AGI Tx >> agi_uniqueid: 1238416593.213
AGI Tx >> agi_callerid: unknown
AGI Tx >> agi_calleridname: V0330083633000000012
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: h
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
-- Executing AGI("SIP/208.43.83.184-08add508", "agi://127.0.0.1:4577/call_log") in new stack
AGI Tx >> agi_network_script: call_log
AGI Tx >> agi_request: agi://127.0.0.1:4577/call_log
AGI Tx >> agi_channel: SIP/208.43.83.184-08add508
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1238416593.212
AGI Tx >> agi_callerid: 9314077337573
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 8366
AGI Tx >> agi_priority: 2
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >> 0cl*CLI>
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... --10-----0 completed, returning 0
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing AGI("SIP/208.43.83.184-08add508", "agi-VDAD_ALL_outbound.agi|SURVEYCAMP-----LB") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
AGI Tx >> agi_request: agi-VDAD_ALL_outbound.agi
AGI Tx >> agi_channel: SIP/208.43.83.184-08add508
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1238416593.212
AGI Tx >> agi_callerid: 9314077337573
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 8366
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >> 0cl*CLI>
AGI Rx << STREAM FILE sip-silence ""
AGI Tx >> 200 result=0 endpos=160
AGI Rx << WAIT FOR DIGIT 10000
AGI Tx >> 200 result=57
AGI Rx << CHANNEL STATUS SIP/208.43.83.184-08add508
AGI Tx >> 200 result=6
AGI Rx << CHANNEL STATUS SIP/208.43.83.184-08add508

here u can see when call_log is called it had calleridname but after that its changed.

Regards
Ahmed
Born to Network !!!
tektrix
 
Posts: 35
Joined: Tue Mar 20, 2007 5:09 am
Location: pakistan

Postby mflorell » Mon Mar 30, 2009 7:54 am

Are you using FreePBX or another dialplan builder?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tektrix » Mon Mar 30, 2009 7:57 am

Nope i made all my dialplan using vicidial web interface
Born to Network !!!
tektrix
 
Posts: 35
Joined: Tue Mar 20, 2007 5:09 am
Location: pakistan

Postby tektrix » Mon Mar 30, 2009 8:19 am

this seems to me the bug in agi scripts , as i have checked running my own agi script i get proper callerID starting from V...... thorugh out the script...

Regards
AHmed
Born to Network !!!
tektrix
 
Posts: 35
Joined: Tue Mar 20, 2007 5:09 am
Location: pakistan

Postby mflorell » Mon Mar 30, 2009 8:44 am

The default dialplan does not change the callerIDname like that. can you post the top 20 lines of your extensions.conf as well as the top 20 lines of your extensions-vicidial.conf?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tektrix » Mon Mar 30, 2009 10:00 am

here is the extensions-vicidial.conf and extensions.conf is the same which is auto matically built in installation..

[vicidial-auto]
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... ----------)

; Local Server: XXX.XXX.XXX.XX
exten => XXX.XXX.XXX.XX*.,1,Goto(default,${EXTEN:16},1)
; VICIDIAL Carrier: 70427249 - Carrier1
exten=> _XXXXXXXX.,1,Dial(SIP/70.42.72.49/${EXTEN},,To)^M

; VICIDIAL Carrier: DOM_Vijay - Int_vijay
exten=> _93.,1,Dial(SIP/XXX.XXX.XXX.XX/${EXTEN:2},,To)^M
exten=> _93.,2,Hangup
; VICIDIAL Carrier: transfer1 - 5001
exten=> 5001,1,Dial(SIP/XXX.XXX.XXX.XX/0071)
; VICIDIAL Carrier: Transfer2 - 4002
exten => 4002,1,Dial(SIP/XXX.XXX.XXX.XX/8898)


XXXXX are the IP addresses where as 4002 and 5001 are the extensions which are being transfered to once pressed 9.

Regards
AHmed
Born to Network !!!
tektrix
 
Posts: 35
Joined: Tue Mar 20, 2007 5:09 am
Location: pakistan

Postby mflorell » Mon Mar 30, 2009 6:26 pm

Not sure what the problem could be, I cannot duplicate this on my test system using similar settings.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tektrix » Thu Apr 02, 2009 6:25 am

Issue fixed , i was missing 'tTor' in dialplan i only had 'to'

Thanks
Born to Network !!!
tektrix
 
Posts: 35
Joined: Tue Mar 20, 2007 5:09 am
Location: pakistan


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 270 guests