Setup Dial Agent Extension at Call Menu
Posted: Thu Jan 19, 2017 11:09 pm
Hey everyone,
Having some trouble setting up dialing an agent extension at the call menu.
I have a call menu setup (with no options right now), with this in the custom dialplan:
exten => _XXXX,1,Playback(/var/lib/asterisk/sounds/beep)
exten => _XXXX,1,AGI(agi-AGENT_route.agi,default---AGENTDIRECT---ACTIVE)
And yes, I have enabled Allow Custom Dialplans in System settings.
My call menu picks up, but when I dial the extension it plays me a beep and then hangs up. The phone is set to On-Hook Agent so I am not logged in to the interface. I also have that extension setup as a remote agent.
Here is my cli:
[Jan 19 21:57:48] -- Executing [111111111@trunkinbound:1] AGI("SIP/vitel-inbound2-00000019", "agi-DID_route.agi") in new stack
[Jan 19 21:57:48] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Jan 19 21:57:48] -- <SIP/vitel-inbound2-00000019>AGI Script agi-DID_route.agi completed, returning 0
[Jan 19 21:57:48] -- Executing [s@Main:1] Answer("SIP/vitel-inbound2-00000019", "") in new stack
[Jan 19 21:57:49] -- Executing [s@Main:2] AGI("SIP/vitel-inbound2-00000019", "agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----Main-------------------------NO") in new stack
[Jan 19 21:57:49] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019>AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Jan 19 21:57:49] -- Executing [s@Main:3] Set("SIP/vitel-inbound2-00000019", "INVCOUNT=0") in new stack
[Jan 19 21:57:49] -- Executing [s@Main:4] BackGround("SIP/vitel-inbound2-00000019", "welcome") in new stack
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019> Playing 'welcome.gsm' (language 'en')
[Jan 19 21:57:50] -- Executing [s@Main:5] BackGround("SIP/vitel-inbound2-00000019", "for-sales") in new stack
[Jan 19 21:57:50] -- <SIP/vitel-inbound2-00000019> Playing 'for-sales.gsm' (language 'en')
[Jan 19 21:57:51] -- Executing [s@Main:6] BackGround("SIP/vitel-inbound2-00000019", "press") in new stack
[Jan 19 21:57:51] -- <SIP/vitel-inbound2-00000019> Playing 'press.gsm' (language 'en')
[Jan 19 21:57:51] -- Executing [s@Main:7] BackGround("SIP/vitel-inbound2-00000019", "./digits/1") in new stack
[Jan 19 21:57:51] -- <SIP/vitel-inbound2-00000019> Playing './digits/1.gsm' (language 'en')
[Jan 19 21:57:52] -- Executing [s@Main:8] BackGround("SIP/vitel-inbound2-00000019", "for-tech-support") in new stack
[Jan 19 21:57:52] -- <SIP/vitel-inbound2-00000019> Playing 'for-tech-support.gsm' (language 'en')
[Jan 19 21:57:53] -- Executing [s@Main:9] BackGround("SIP/vitel-inbound2-00000019", "press") in new stack
[Jan 19 21:57:53] -- <SIP/vitel-inbound2-00000019> Playing 'press.gsm' (language 'en')
[Jan 19 21:57:54] -- Executing [s@Main:10] BackGround("SIP/vitel-inbound2-00000019", "./digits/2") in new stack
[Jan 19 21:57:54] -- <SIP/vitel-inbound2-00000019> Playing './digits/2.gsm' (language 'en')
[Jan 19 21:57:55] -- Executing [s@Main:11] BackGround("SIP/vitel-inbound2-00000019", "silence") in new stack
[Jan 19 21:57:55] -- <SIP/vitel-inbound2-00000019> Playing 'silence.slin' (language 'en')
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '1' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] -- Executing [s@Main:12] BackGround("SIP/vitel-inbound2-00000019", "if-u-know-ext-dial") in new stack
[Jan 19 21:57:55] -- <SIP/vitel-inbound2-00000019> Playing 'if-u-know-ext-dial.gsm' (language 'en')
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '1' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '0' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '0' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '0' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '0' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '1' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '1' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '8' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '8' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '8' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '8' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] == CDR updated on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] -- Executing [1018@Main:1] Playback("SIP/vitel-inbound2-00000019", "/var/lib/asterisk/sounds/beep") in new stack
[Jan 19 21:57:56] -- <SIP/vitel-inbound2-00000019> Playing '/var/lib/asterisk/sounds/beep.gsm' (language 'en')
[Jan 19 21:57:57] -- Auto fallthrough, channel 'SIP/vitel-inbound2-00000019' status is 'UNKNOWN'
[Jan 19 21:57:57] -- Executing [h@Main:1] AGI("SIP/vitel-inbound2-00000019", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jan 19 21:57:57] -- <SIP/vitel-inbound2-00000019>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jan 19 21:58:01] -- Remote UNIX connection
I'm not sure what the problem. Any help is appreciated.
Having some trouble setting up dialing an agent extension at the call menu.
I have a call menu setup (with no options right now), with this in the custom dialplan:
exten => _XXXX,1,Playback(/var/lib/asterisk/sounds/beep)
exten => _XXXX,1,AGI(agi-AGENT_route.agi,default---AGENTDIRECT---ACTIVE)
And yes, I have enabled Allow Custom Dialplans in System settings.
My call menu picks up, but when I dial the extension it plays me a beep and then hangs up. The phone is set to On-Hook Agent so I am not logged in to the interface. I also have that extension setup as a remote agent.
Here is my cli:
[Jan 19 21:57:48] -- Executing [111111111@trunkinbound:1] AGI("SIP/vitel-inbound2-00000019", "agi-DID_route.agi") in new stack
[Jan 19 21:57:48] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Jan 19 21:57:48] -- <SIP/vitel-inbound2-00000019>AGI Script agi-DID_route.agi completed, returning 0
[Jan 19 21:57:48] -- Executing [s@Main:1] Answer("SIP/vitel-inbound2-00000019", "") in new stack
[Jan 19 21:57:49] -- Executing [s@Main:2] AGI("SIP/vitel-inbound2-00000019", "agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----Main-------------------------NO") in new stack
[Jan 19 21:57:49] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019>AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Jan 19 21:57:49] -- Executing [s@Main:3] Set("SIP/vitel-inbound2-00000019", "INVCOUNT=0") in new stack
[Jan 19 21:57:49] -- Executing [s@Main:4] BackGround("SIP/vitel-inbound2-00000019", "welcome") in new stack
[Jan 19 21:57:49] -- <SIP/vitel-inbound2-00000019> Playing 'welcome.gsm' (language 'en')
[Jan 19 21:57:50] -- Executing [s@Main:5] BackGround("SIP/vitel-inbound2-00000019", "for-sales") in new stack
[Jan 19 21:57:50] -- <SIP/vitel-inbound2-00000019> Playing 'for-sales.gsm' (language 'en')
[Jan 19 21:57:51] -- Executing [s@Main:6] BackGround("SIP/vitel-inbound2-00000019", "press") in new stack
[Jan 19 21:57:51] -- <SIP/vitel-inbound2-00000019> Playing 'press.gsm' (language 'en')
[Jan 19 21:57:51] -- Executing [s@Main:7] BackGround("SIP/vitel-inbound2-00000019", "./digits/1") in new stack
[Jan 19 21:57:51] -- <SIP/vitel-inbound2-00000019> Playing './digits/1.gsm' (language 'en')
[Jan 19 21:57:52] -- Executing [s@Main:8] BackGround("SIP/vitel-inbound2-00000019", "for-tech-support") in new stack
[Jan 19 21:57:52] -- <SIP/vitel-inbound2-00000019> Playing 'for-tech-support.gsm' (language 'en')
[Jan 19 21:57:53] -- Executing [s@Main:9] BackGround("SIP/vitel-inbound2-00000019", "press") in new stack
[Jan 19 21:57:53] -- <SIP/vitel-inbound2-00000019> Playing 'press.gsm' (language 'en')
[Jan 19 21:57:54] -- Executing [s@Main:10] BackGround("SIP/vitel-inbound2-00000019", "./digits/2") in new stack
[Jan 19 21:57:54] -- <SIP/vitel-inbound2-00000019> Playing './digits/2.gsm' (language 'en')
[Jan 19 21:57:55] -- Executing [s@Main:11] BackGround("SIP/vitel-inbound2-00000019", "silence") in new stack
[Jan 19 21:57:55] -- <SIP/vitel-inbound2-00000019> Playing 'silence.slin' (language 'en')
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '1' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] -- Executing [s@Main:12] BackGround("SIP/vitel-inbound2-00000019", "if-u-know-ext-dial") in new stack
[Jan 19 21:57:55] -- <SIP/vitel-inbound2-00000019> Playing 'if-u-know-ext-dial.gsm' (language 'en')
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '1' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '0' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:55] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '0' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '0' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '0' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '1' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '1' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '1' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4215 __ast_read: DTMF begin '8' received on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4219 __ast_read: DTMF begin ignored '8' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4129 __ast_read: DTMF end '8' received on SIP/vitel-inbound2-00000019, duration 190 ms
[Jan 19 21:57:56] DTMF[23053][C-0000001e]: channel.c:4199 __ast_read: DTMF end passthrough '8' on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] == CDR updated on SIP/vitel-inbound2-00000019
[Jan 19 21:57:56] -- Executing [1018@Main:1] Playback("SIP/vitel-inbound2-00000019", "/var/lib/asterisk/sounds/beep") in new stack
[Jan 19 21:57:56] -- <SIP/vitel-inbound2-00000019> Playing '/var/lib/asterisk/sounds/beep.gsm' (language 'en')
[Jan 19 21:57:57] -- Auto fallthrough, channel 'SIP/vitel-inbound2-00000019' status is 'UNKNOWN'
[Jan 19 21:57:57] -- Executing [h@Main:1] AGI("SIP/vitel-inbound2-00000019", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Jan 19 21:57:57] -- <SIP/vitel-inbound2-00000019>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Jan 19 21:58:01] -- Remote UNIX connection
I'm not sure what the problem. Any help is appreciated.