Page 1 of 1

AGI DNC Issues *SOLVED*

PostPosted: Fri Jun 28, 2013 8:49 am
by Kinghtflyer
Vicibox 3.04 From 64bit-Preload.iso VERSION: 2.8-403a BUILD: 130510-1350 : Asterisk 1.4.44-vici : NO Digium HArdware : Single Server
AMD 8-CORE 4Ghz 16GigRAM : MSI 3070 Mboard : 3-2TB SATA Drives : Disabled RAID : No extra software :


I have got a successful Inbound DID calling a call menu.
One of my options (3) routes to an AGI.

When I use cm_dnc.agi the call menu jumps to my invalid repsonse wav
When I use agi-VDADinbound_NI_DNC_CIDlookup.ag It executes and I hear the audio "thank you and goodbye"

But my number does not appear anywhere DNC campaign or System.

I am unsure of how to do the arguments (flags)
Here is my example I copied from the Forum
agi-VDADinbound_NI_DNC_CIDlookup.agi,DNC---YES---FinalX---B---SYS

I used my cell which is not anywhere in the system, before or after.
Ultimately I would like to Disposition any existing leads with this number to DNC and place in the SYS DNC.

Re: AGI DNC Issues

PostPosted: Fri Jun 28, 2013 9:35 am
by williamconley
Show cli output from a sample call (entire call please, but no other calls ... so we can see the entire execution but not 3000 lines of unrelated code).

Re: AGI DNC Issues

PostPosted: Fri Jun 28, 2013 8:15 pm
by Kinghtflyer
Here is the output generated by agi-VDADinbound_NI_DNC_CIDlookup.agi

[Jun 28 20:11:58] -- Executing [7026371447@trunkinbound:1] AGI("SIP/Vitelity-000049e2", "agi-DID_route.agi") in new stack
[Jun 28 20:11:58] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Jun 28 20:11:58] -- AGI Script agi-DID_route.agi completed, returning 0
[Jun 28 20:11:58] -- Executing [s@FTC_Abandon:1] Answer("SIP/Vitelity-000049e2", "") in new stack
[Jun 28 20:11:58] -- Executing [s@FTC_Abandon:2] AGI("SIP/Vitelity-000049e2", "agi-VDAD_inbound_calltime_check.agi|SALESLINE-----YES--TC_Abandon-------------------------NO") in new stack
[Jun 28 20:11:58] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Jun 28 20:11:58] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jun 28 20:11:58] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jun 28 20:11:58] -- AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Jun 28 20:11:58] -- Executing [s@FTC_Abandon:3] Set("SIP/Vitelity-000049e2", "INVCOUNT=0") in new stack
[Jun 28 20:11:58] -- Executing [s@FTC_Abandon:4] BackGround("SIP/Vitelity-000049e2", "ViciTEST3") in new stack
[Jun 28 20:11:58] -- <SIP/Vitelity-000049e2> Playing 'ViciTEST3' (language 'en')
[Jun 28 20:12:04] DTMF[17967]: channel.c:2536 __ast_read: DTMF begin '1' received on SIP/Vitelity-000049e2
[Jun 28 20:12:04] DTMF[17967]: channel.c:2540 __ast_read: DTMF begin ignored '1' on SIP/Vitelity-000049e2
[Jun 28 20:12:04] DTMF[17967]: channel.c:2455 __ast_read: DTMF end '1' received on SIP/Vitelity-000049e2, duration 180 ms
[Jun 28 20:12:04] DTMF[17967]: channel.c:2521 __ast_read: DTMF end passthrough '1' on SIP/Vitelity-000049e2
[Jun 28 20:12:04] -- Executing [1@FTC_Abandon:1] AGI("SIP/Vitelity-000049e2", "cm.agi|SALESLINE-----1-----NONE") in new stack
[Jun 28 20:12:04] -- Launched AGI Script /var/lib/asterisk/agi-bin/cm.agi
[Jun 28 20:12:04] -- AGI Script cm.agi completed, returning 0
[Jun 28 20:12:04] -- Executing [1@FTC_Abandon:2] AGI("SIP/Vitelity-000049e2", "agi-VDADinbound_NI_DNC_CIDlookup.agi|DNC---YES---FinalX---SYS") in new stack
[Jun 28 20:12:04] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADinbound_NI_DNC_CIDlookup.agi
[Jun 28 20:12:04] -- Playing 'beep' (escape_digits=) (sample_offset 0)
[Jun 28 20:12:05] WARNING[17967]: file.c:665 ast_openstream_full: File not_interested_or_dnc does not exist in any format
[Jun 28 20:12:05] WARNING[17967]: file.c:665 ast_openstream_full: File not_interested_or_dnc does not exist in any format
[Jun 28 20:12:05] WARNING[17967]: file.c:665 ast_openstream_full: File not_interested_or_dnc does not exist in any format
[Jun 28 20:12:05] WARNING[17967]: file.c:665 ast_openstream_full: File not_interested_or_dnc does not exist in any format
[Jun 28 20:12:05] WARNING[17967]: file.c:665 ast_openstream_full: File not_interested_or_dnc does not exist in any format
[Jun 28 20:12:05] -- Playing 'US_reminder_goodbye' (escape_digits=) (sample_offset 0)
[Jun 28 20:12:06] -- AGI Script agi-VDADinbound_NI_DNC_CIDlookup.agi completed, returning 0
[Jun 28 20:12:06] -- Executing [1@FTC_Abandon:3] Hangup("SIP/Vitelity-000049e2", "") in new stack
[Jun 28 20:12:06] == Spawn extension (FTC_Abandon, 1, 3) exited non-zero on 'SIP/Vitelity-000049e2'
[Jun 28 20:12:06] -- Executing [h@FTC_Abandon:1] DeadAGI("SIP/Vitelity-000049e2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NOG-----16---------------") in new stack
[Jun 28 20:12:06] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
vicibox1*CLI>

Re: AGI DNC Issues

PostPosted: Fri Jun 28, 2013 8:18 pm
by Kinghtflyer
here is the code produced by cm_dnc.agi

[Jun 28 20:16:37] -- Executing [7026371447@trunkinbound:1] AGI("SIP/Vitelity-000049e3", "agi-DID_route.agi") in new stack
[Jun 28 20:16:37] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Jun 28 20:16:37] -- AGI Script agi-DID_route.agi completed, returning 0
[Jun 28 20:16:37] -- Executing [s@FTC_Abandon:1] Answer("SIP/Vitelity-000049e3", "") in new stack
[Jun 28 20:16:37] -- Executing [s@FTC_Abandon:2] AGI("SIP/Vitelity-000049e3", "agi-VDAD_inbound_calltime_check.agi|SALESLINE-----YES-----FTC_Abandon-------------------------NO") in new stack
[Jun 28 20:16:37] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Jun 28 20:16:37] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jun 28 20:16:37] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jun 28 20:16:37] -- AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Jun 28 20:16:37] -- Executing [s@FTC_Abandon:3] Set("SIP/Vitelity-000049e3", "INVCOUNT=0") in new stack
[Jun 28 20:16:37] -- Executing [s@FTC_Abandon:4] BackGround("SIP/Vitelity-000049e3", "ViciTEST3") in new stack
[Jun 28 20:16:37] -- <SIP/Vitelity-000049e3> Playing 'ViciTEST3' (language 'en')
[Jun 28 20:16:44] -- Executing [s@FTC_Abandon:5] WaitExten("SIP/Vitelity-000049e3", "10") in new stack
[Jun 28 20:16:44] DTMF[19112]: channel.c:2536 __ast_read: DTMF begin '2' received on SIP/Vitelity-000049e3
[Jun 28 20:16:44] DTMF[19112]: channel.c:2540 __ast_read: DTMF begin ignored '2' on SIP/Vitelity-000049e3
[Jun 28 20:16:44] DTMF[19112]: channel.c:2455 __ast_read: DTMF end '2' received on SIP/Vitelity-000049e3, duration 180 ms
[Jun 28 20:16:44] DTMF[19112]: channel.c:2521 __ast_read: DTMF end passthrough '2' on SIP/Vitelity-000049e3
[Jun 28 20:16:44] == CDR updated on SIP/Vitelity-000049e3
[Jun 28 20:16:44] -- Executing [2@FTC_Abandon:1] AGI("SIP/Vitelity-000049e3", "cm.agi|SALESLINE-----2-----NONE") in new stack
[Jun 28 20:16:44] -- Launched AGI Script /var/lib/asterisk/agi-bin/cm.agi
[Jun 28 20:16:44] -- AGI Script cm.agi completed, returning 0
[Jun 28 20:16:44] -- Executing [2@FTC_Abandon:2] AGI("SIP/Vitelity-000049e3", "cm_dnc.agi|DNC---YES---FinalX---B---SYS") in new stack
[Jun 28 20:16:44] -- Launched AGI Script /var/lib/asterisk/agi-bin/cm_dnc.agi
[Jun 28 20:16:44] -- AGI Script cm_dnc.agi completed, returning 0
[Jun 28 20:16:44] -- Sent into invalid extension 'B' in context 'FTC_Abandon' on SIP/Vitelity-000049e3
[Jun 28 20:16:44] -- Executing [i@FTC_Abandon:1] Playback("SIP/Vitelity-000049e3", "NotValidOpt") in new stack
[Jun 28 20:16:44] -- <SIP/Vitelity-000049e3> Playing 'NotValidOpt' (language 'en')
[Jun 28 20:16:48] -- Executing [i@FTC_Abandon:2] Goto("SIP/Vitelity-000049e3", "s|4") in new stack
[Jun 28 20:16:48] -- Goto (FTC_Abandon,s,4)
[Jun 28 20:16:48] -- Executing [s@FTC_Abandon:4] BackGround("SIP/Vitelity-000049e3", "ViciTEST3") in new stack
[Jun 28 20:16:48] -- <SIP/Vitelity-000049e3> Playing 'ViciTEST3' (language 'en')
[Jun 28 20:16:49] == Spawn extension (FTC_Abandon, s, 4) exited non-zero on 'SIP/Vitelity-000049e3'
[Jun 28 20:16:49] -- Executing [h@FTC_Abandon:1] DeadAGI("SIP/Vitelity-000049e3", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jun 28 20:16:49] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
vicibox1*CLI>

Re: AGI DNC Issues

PostPosted: Fri Jun 28, 2013 10:44 pm
by williamconley
Sent into invalid extension 'B' in context 'FTC_Abandon' on SIP/Vitelity-000049e3

When the app is done, it sends it to "B", but there is no "B". You should probably make one to tell the app what to do with the call after completion.

[Jun 28 20:12:05] WARNING[17967]: file.c:665 ast_openstream_full: File not_interested_or_dnc does not exist in any format


We have some problems with our execution. If they don't hear the file, they can't press a button and the application can't take action based on the response it did not get.

Re: AGI DNC Issues *SOLVED*

PostPosted: Sat Jun 29, 2013 9:37 am
by Kinghtflyer
Thank You everyone for your help.

To make it work I used the latter script cm_dnc.agi
In the call menu agi option here is what I have inserted (Our Campaign is FinalX)
cm_dnc.agi,DNC---YES---FinalX---B---SYS

It was also desirable to define an option 'B' for this method to work properly.
Under my option 'B' in my call menu I have the script routed to 'hangup' with an audio that says 'you have been placed in the do not call list'
With the arguments or flags set as above the system DNC gets updated, the campaign DNC gets updated, and if there is a lead record it gets dis-positioned as DNC.

Re: AGI DNC Issues *SOLVED*

PostPosted: Sat Jun 29, 2013 12:43 pm
by williamconley
Excellent Post-Back 8-)

Re: AGI DNC Issues *SOLVED*

PostPosted: Tue Jul 16, 2013 8:43 am
by Kinghtflyer
Apparently the dialer is dialing out my new inbound carrier?
I will create a new post for that issue.