AGENTVMAIL not working for Drop Call setting Agent Direct

All installation and configuration problems and questions

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

AGENTVMAIL not working for Drop Call setting Agent Direct

Postby jlamconsulting » Tue Aug 14, 2012 10:35 am

Hey Everyone,
Have a puzzle
When I set AGENTVMAIL for the Drop Call Settings in the Agent Direct inbound the system is not directing the call to the agents extension.
AGENTVMAIL is working for the other settings in Agent Direct "No Agent No Queue... etc " just not for the Drop Call
It is defaulting to a main voicemail box\ext "700" Deleted this voicemail box from Admin/Voicemail and deleted from var/spool/asterisk/voicemail/default
Checked voicemail.conf and the "700" voicemail box is not there, but the system is still trying to find it rather than AGENTVMAIL

Here is the CLI: (From when it transfers from the call menu to Agent Direct Extension trying to reach is 205)

[Aug 14 11:27:29] -- Executing [205@TollFreeInbound:1] Playback("SIP/vitel-inbound-000000cb", "/var/lib/asterisk/sounds/transfer") in new stack
[Aug 14 11:27:29] -- <SIP/vitel-inbound-000000cb> Playing '/var/lib/asterisk/sounds/transfer' (language 'en')
[Aug 14 11:27:31] -- Executing [205@TollFreeInbound:2] AGI("SIP/vitel-inbound-000000cb", "agi-AGENT_route.agi|999999999999---AGENTDIRECT") in new stack
[Aug 14 11:27:31] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-AGENT_route.agi
[Aug 14 11:27:31] ERROR[18328]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
[Aug 14 11:27:31] ERROR[18328]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
[Aug 14 11:27:31] -- AGI Script agi-AGENT_route.agi completed, returning 0
[Aug 14 11:27:31] -- Executing [99909*1*AGENTDIRECT*205*@default:1] Answer("SIP/vitel-inbound-000000cb", "") in new stack
[Aug 14 11:27:31] -- Executing [99909*1*AGENTDIRECT*205*@default:2] AGI("SIP/vitel-inbound-000000cb", "agi-VDAD_ALL_inbound.agi") in new stack
[Aug 14 11:27:31] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Aug 14 11:27:32] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 14 11:27:32] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 14 11:27:33] -- SIP/vitel-outbound-000000ca answered SIP/251-000000c9
[Aug 14 11:27:33] -- Started music on hold, class 'default', on SIP/vitel-inbound-000000cb
[Aug 14 11:27:38] -- Stopped music on hold on SIP/vitel-inbound-000000cb
[Aug 14 11:27:38] -- Started music on hold, class 'default', on SIP/vitel-inbound-000000cb
[Aug 14 11:27:53] -- Stopped music on hold on SIP/vitel-inbound-000000cb
[Aug 14 11:27:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 14 11:27:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 14 11:27:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 14 11:27:53] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 14 11:27:53] ERROR[18328]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
[Aug 14 11:27:53] -- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
[Aug 14 11:27:53] -- Executing [85026666666666700@default:1] Wait("SIP/vitel-inbound-000000cb", "1") in new stack
[Aug 14 11:27:54] -- Executing [85026666666666700@default:2] VoiceMail("SIP/vitel-inbound-000000cb", "700|u") in new stack
[Aug 14 11:27:54] WARNING[18328]: app_voicemail.c:4203 leave_voicemail: No entry in voicemail config file for '700'
[Aug 14 11:27:54] -- Executing [85026666666666700@default:3] Hangup("SIP/vitel-inbound-000000cb", "") in new stack
[Aug 14 11:27:54] == Spawn extension (default, 85026666666666700, 3) exited non-zero on 'SIP/vitel-inbound-000000cb'
[Aug 14 11:27:54] -- Executing [h@default:1] DeadAGI("SIP/vitel-inbound-000000cb", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Aug 14 11:27:54] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

Settings for Drop Call in Agent Direct:
Drop Call Seconds: 20 HELP
Drop Action: Voicemail HELP
Drop Exten: 8307 HELP
Voicemail: AGENTVMAIL voicemail chooser

Is there another place I need to go delete "700" vm? Checkked the sql db / extensions.conf etc cant find a reference to it
Thanks!
Install |Vicibox Redux |VERSION: 2.4-362a BUILD: 120316-1203 |Asterisk Version 1.4..21.2 |
jlamconsulting
 
Posts: 59
Joined: Thu Jan 06, 2011 11:15 am

Re: AGENTVMAIL not working for Drop Call setting Agent Direc

Postby williamconley » Thu Aug 16, 2012 9:26 pm

I'm betting the extension 700 comes from 85026666666666700 (700 being the last three digits), but don't quote me. LOL

However, for troubleshooting of this nature, you will need agi debug output, not just cli. We need to know what is happening inside the agi script in question. turn on agi debug in the cli and/or use the logs in /var/log/asterisk and/or /var/log/astguiclient to find out what is happening in agi-VDAD_ALL_inbound.agi (which apparently "decides" to transfer the call to that extension).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: AGENTVMAIL not working for Drop Call setting Agent Direc

Postby jlamconsulting » Fri Aug 17, 2012 12:50 pm

William,
Thanks for the response
Here is the output from agi debug

[Aug 17 13:42:12] -- Executing [s@TollFreeInbound:3] Set("SIP/vitel-inbound-00000595", "INVCOUNT=0") in new stack
[Aug 17 13:42:12] -- Executing [s@TollFreeInbound:4] BackGround("SIP/vitel-inbound-00000595", "OLPX-CS8X-1281795752-8khz-1") in new stack
[Aug 17 13:42:12] -- <SIP/vitel-inbound-00000595> Playing 'OLPX-CS8X-1281795752-8khz-1' (language 'en')
[Aug 17 13:42:13] NOTICE[26680]: rtp.c:1378 ast_rtp_read: Unknown RTP codec 126 received from '96.*******
[Aug 17 13:42:16] == CDR updated on SIP/vitel-inbound-00000595
[Aug 17 13:42:16] -- Executing [250@TollFreeInbound:1] Playback("SIP/vitel-inbound-00000595", "/var/lib/asterisk/sounds/transfer") in new stack
[Aug 17 13:42:16] -- <SIP/vitel-inbound-00000595> Playing '/var/lib/asterisk/sounds/transfer' (language 'en')
[Aug 17 13:42:18] -- Executing [250@TollFreeInbound:2] AGI("SIP/vitel-inbound-00000595", "agi-AGENT_route.agi|999999999999---AGENTDIRECT") in new stack
[Aug 17 13:42:18] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-AGENT_route.agi
[Aug 17 13:42:18] AGI Tx >> agi_request: agi-AGENT_route.agi
[Aug 17 13:42:18] AGI Tx >> agi_channel: SIP/vitel-inbound-00000595
[Aug 17 13:42:18] AGI Tx >> agi_language: en
[Aug 17 13:42:18] AGI Tx >> agi_type: SIP
[Aug 17 13:42:18] AGI Tx >> agi_uniqueid: 1345225332.2305
[Aug 17 13:42:18] AGI Tx >> agi_callerid: 505*******
[Aug 17 13:42:18] AGI Tx >> agi_calleridname: 505*******
[Aug 17 13:42:18] AGI Tx >> agi_callingpres: 0
[Aug 17 13:42:18] AGI Tx >> agi_callingani2: 0
[Aug 17 13:42:18] AGI Tx >> agi_callington: 0
[Aug 17 13:42:18] AGI Tx >> agi_callingtns: 0
[Aug 17 13:42:18] AGI Tx >> agi_dnid: 267********
[Aug 17 13:42:18] AGI Tx >> agi_rdnis: unknown
[Aug 17 13:42:18] AGI Tx >> agi_context: TollFreeInbound
[Aug 17 13:42:18] AGI Tx >> agi_extension: 250
[Aug 17 13:42:18] AGI Tx >> agi_priority: 2
[Aug 17 13:42:18] AGI Tx >> agi_enhanced: 0.0
[Aug 17 13:42:18] AGI Tx >> agi_accountcode:
[Aug 17 13:42:18] AGI Tx >>
[Aug 17 13:42:18] AGI Rx << SET CONTEXT default
[Aug 17 13:42:18] AGI Tx >> 200 result=0
[Aug 17 13:42:18] AGI Rx << SET EXTENSION 99909*1*AGENTDIRECT*250*
[Aug 17 13:42:18] AGI Tx >> 200 result=0
[Aug 17 13:42:18] AGI Rx << SET PRIORITY 1
[Aug 17 13:42:18] AGI Tx >> 200 result=0
[Aug 17 13:42:18] -- AGI Script agi-AGENT_route.agi completed, returning 0
[Aug 17 13:42:18] -- Executing [99909*1*AGENTDIRECT*250*@default:1] Answer("SIP/vitel-inbound-00000595", "") in new stack
[Aug 17 13:42:18] -- Executing [99909*1*AGENTDIRECT*250*@default:2] AGI("SIP/vitel-inbound-00000595", "agi-VDAD_ALL_inbound.agi") in new stack
[Aug 17 13:42:18] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Aug 17 13:42:18] AGI Tx >> agi_request: agi-VDAD_ALL_inbound.agi
[Aug 17 13:42:18] AGI Tx >> agi_channel: SIP/vitel-inbound-00000595
[Aug 17 13:42:18] AGI Tx >> agi_language: en
[Aug 17 13:42:18] AGI Tx >> agi_type: SIP
[Aug 17 13:42:18] AGI Tx >> agi_uniqueid: 1345225332.2305
[Aug 17 13:42:18] AGI Tx >> agi_callerid: 505*******
[Aug 17 13:42:18] AGI Tx >> agi_calleridname: 505*******
[Aug 17 13:42:18] AGI Tx >> agi_callingpres: 0
[Aug 17 13:42:18] AGI Tx >> agi_callingani2: 0
[Aug 17 13:42:18] AGI Tx >> agi_callington: 0
[Aug 17 13:42:18] AGI Tx >> agi_callingtns: 0
[Aug 17 13:42:18] AGI Tx >> agi_dnid: 267*******
[Aug 17 13:42:18] AGI Tx >> agi_rdnis: unknown
[Aug 17 13:42:18] AGI Tx >> agi_context: default
[Aug 17 13:42:18] AGI Tx >> agi_extension: 99909*1*AGENTDIRECT*250*
[Aug 17 13:42:18] AGI Tx >> agi_priority: 2
[Aug 17 13:42:18] AGI Tx >> agi_enhanced: 0.0
[Aug 17 13:42:18] AGI Tx >> agi_accountcode:
[Aug 17 13:42:18] AGI Tx >>
[Aug 17 13:42:19] AGI Rx << STREAM FILE sip-silence ""
[Aug 17 13:42:19] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 17 13:42:19] AGI Tx >> 200 result=0 endpos=160
[Aug 17 13:42:19] AGI Rx << STREAM FILE sip-silence ""
[Aug 17 13:42:19] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 17 13:42:19] AGI Tx >> 200 result=0 endpos=160
[Aug 17 13:42:19] AGI Rx << SET CALLERID "Y8171342190000169710 <5059912947>"
[Aug 17 13:42:19] AGI Tx >> 200 result=1
[Aug 17 13:42:19] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:19] AGI Tx >> 200 result=6
[Aug 17 13:42:19] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:19] AGI Tx >> 200 result=6
[Aug 17 13:42:19] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:19] AGI Tx >> 200 result=6
[Aug 17 13:42:19] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:19] AGI Tx >> 200 result=6
[Aug 17 13:42:20] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:20] AGI Tx >> 200 result=6
[Aug 17 13:42:20] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:20] AGI Tx >> 200 result=6
[Aug 17 13:42:20] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:20] AGI Tx >> 200 result=6
[Aug 17 13:42:20] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:20] AGI Tx >> 200 result=6
[Aug 17 13:42:20] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:20] AGI Tx >> 200 result=6
[Aug 17 13:42:20] AGI Rx << SET MUSIC ON default
[Aug 17 13:42:20] -- Started music on hold, class 'default', on SIP/vitel-inbound-00000595
[Aug 17 13:42:20] AGI Tx >> 200 result=0
[Aug 17 13:42:21] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:21] AGI Tx >> 200 result=6
[Aug 17 13:42:22] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:22] AGI Tx >> 200 result=6
[Aug 17 13:42:23] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:23] AGI Tx >> 200 result=6
[Aug 17 13:42:24] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:24] AGI Tx >> 200 result=6
[Aug 17 13:42:25] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:25] AGI Tx >> 200 result=6
[Aug 17 13:42:25] AGI Rx << SET MUSIC ON default
[Aug 17 13:42:25] -- Stopped music on hold on SIP/vitel-inbound-00000595
[Aug 17 13:42:25] -- Started music on hold, class 'default', on SIP/vitel-inbound-00000595
[Aug 17 13:42:25] AGI Tx >> 200 result=0
[Aug 17 13:42:26] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:26] AGI Tx >> 200 result=6
[Aug 17 13:42:27] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:27] AGI Tx >> 200 result=6
[Aug 17 13:42:28] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:28] AGI Tx >> 200 result=6
[Aug 17 13:42:29] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:29] AGI Tx >> 200 result=6
[Aug 17 13:42:30] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:30] AGI Tx >> 200 result=6
[Aug 17 13:42:31] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:31] AGI Tx >> 200 result=6
[Aug 17 13:42:32] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:32] AGI Tx >> 200 result=6
[Aug 17 13:42:33] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:33] AGI Tx >> 200 result=6
[Aug 17 13:42:34] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:34] AGI Tx >> 200 result=6
[Aug 17 13:42:35] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:35] AGI Tx >> 200 result=6
[Aug 17 13:42:36] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:36] AGI Tx >> 200 result=6
[Aug 17 13:42:37] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:37] AGI Tx >> 200 result=6
[Aug 17 13:42:38] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:38] AGI Tx >> 200 result=6
[Aug 17 13:42:39] AGI Rx << CHANNEL STATUS SIP/vitel-inbound-00000595
[Aug 17 13:42:39] AGI Tx >> 200 result=6
[Aug 17 13:42:40] AGI Rx << SET CALLERID "Y8171342190000169710 <5059912947>"
[Aug 17 13:42:40] AGI Tx >> 200 result=1
[Aug 17 13:42:40] AGI Rx << STREAM FILE sip-silence ""
[Aug 17 13:42:40] -- Stopped music on hold on SIP/vitel-inbound-00000595
[Aug 17 13:42:40] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 17 13:42:40] AGI Rx << STREAM FILE sip-silence ""
[Aug 17 13:42:40] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 17 13:42:40] AGI Tx >> 200 result=0 endpos=160
[Aug 17 13:42:40] AGI Rx << STREAM FILE sip-silence ""
[Aug 17 13:42:40] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 17 13:42:40] AGI Rx << STREAM FILE sip-silence ""
[Aug 17 13:42:40] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Aug 17 13:42:40] AGI Tx >> 200 result=0 endpos=160
[Aug 17 13:42:40] AGI Rx << SET CONTEXT default
[Aug 17 13:42:40] AGI Tx >> 200 result=0
[Aug 17 13:42:40] AGI Rx << SET EXTENSION 85026666666666700
[Aug 17 13:42:40] AGI Tx >> 200 result=0
[Aug 17 13:42:40] AGI Rx << SET PRIORITY 1
[Aug 17 13:42:40] AGI Tx >> 200 result=0
[Aug 17 13:42:40] -- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
[Aug 17 13:42:40] -- Executing [85026666666666700@default:1] Wait("SIP/vitel-inbound-00000595", "1") in new stack
[Aug 17 13:42:41] -- Executing [85026666666666700@default:2] VoiceMail("SIP/vitel-inbound-00000595", "700|u") in new stack
[Aug 17 13:42:41] WARNING[27170]: app_voicemail.c:4203 leave_voicemail: No entry in voicemail config file for '700'
[Aug 17 13:42:41] -- Executing [85026666666666700@default:3] Hangup("SIP/vitel-inbound-00000595", "") in new stack
[Aug 17 13:42:41] == Spawn extension (default, 85026666666666700, 3) exited non-zero on 'SIP/vitel-inbound-00000595'
[Aug 17 13:42:41] -- Executing [h@default:1] DeadAGI("SIP/vitel-inbound-00000595", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack

Any suggestions?
Thanks
Install |Vicibox Redux |VERSION: 2.4-362a BUILD: 120316-1203 |Asterisk Version 1.4..21.2 |
jlamconsulting
 
Posts: 59
Joined: Thu Jan 06, 2011 11:15 am

Re: AGENTVMAIL not working for Drop Call setting Agent Direc

Postby jlamconsulting » Mon Aug 20, 2012 7:41 am

Update Problem Solved
For anyone else having this issue
Under admin/inbound/did:
Make sure you set the default did Voicemail to Blank
anything else will break the AGENTVMAIL setting in Agent Direct
Cheers
Install |Vicibox Redux |VERSION: 2.4-362a BUILD: 120316-1203 |Asterisk Version 1.4..21.2 |
jlamconsulting
 
Posts: 59
Joined: Thu Jan 06, 2011 11:15 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 113 guests