Asterisk Real-time Dial plan getting failed

I had this dial plan initially

[ivr]
exten => 7003,1,Answer()
    same => n,Wait(1)
    same => n,Background(tasa-dr)
    same => n,Set(TIMEOUT(digit)=10)
    same => n,Set(TIMEOUT(response)=10)
    same => n,WaitExten()

exten => 1,1,Goto(dial,1,1)
exten => 2,1,Goto(dial,2,1)

exten => i,1,Playback(invalid)
    same => n,Goto(ivr,7003,1)

exten => t,1,Playback(goodbye)
    same => n,Hangup()

[dial]
exten => 1,1,Set(MONITOR_FILENAME=${UNIQUEID}.wav)
    same => n,MixMonitor(${MONITOR_FILENAME},ab)
    same => n,Queue(cx)
    same => n,Hangup()

exten => 2,1,Set(MONITOR_FILENAME=${UNIQUEID}.wav)
    same => n,MixMonitor(${MONITOR_FILENAME},ab)
    same => n,Queue(ux)
    same => n,Hangup()

[internal]
exten => 7003,1,Goto(ivr,7003,1)
exten => 7001,1,Goto(dial,1,1)
exten => 7002,1,Goto(dial,2,1)

Then I removed the dial plan from the extensions.conf file and insert it into a database to make the dial plan in real time.

this is my extensions config db table,

id | context | exten | priority | app | appdata
-----±---------±------±---------±-----------±---------------------------------
96 | ivr | 7003 | 1 | Answer |
97 | ivr | 7003 | 2 | Wait | 1
98 | ivr | 7003 | 3 | Background | tasa-dr
99 | ivr | 7003 | 4 | Set | TIMEOUT(digit)=10
100 | ivr | 7003 | 5 | Set | TIMEOUT(response)=10
101 | ivr | 7003 | 6 | WaitExten |
102 | ivr | 1 | 1 | Goto | dial,1,1
103 | ivr | 2 | 1 | Goto | dial,2,1
104 | ivr | i | 1 | Playback | invalid
105 | ivr | i | 2 | Goto | ivr,7003,1
106 | ivr | t | 1 | Playback | goodbye
107 | ivr | t | 2 | Hangup |
108 | dial | 1 | 1 | Set | MONITOR_FILENAME=${UNIQUEID}.wav
109 | dial | 1 | 2 | MixMonitor | ${MONITOR_FILENAME},ab
110 | dial | 1 | 3 | Queue | cx
111 | dial | 1 | 4 | Hangup |
112 | dial | 2 | 1 | Set | MONITOR_FILENAME=${UNIQUEID}.wav
113 | dial | 2 | 2 | MixMonitor | ${MONITOR_FILENAME},ab
114 | dial | 2 | 3 | Queue | ux
115 | dial | 2 | 4 | Hangup |
116 | internal | 7003 | 1 | Goto | ivr,7003,1
117 | internal | 7001 | 1 | Goto | dial,1,1
118 | internal | 7002 | 1 | Goto | dial,2,1

but when I’m trying to call the 7003 extension, it throws this warning and declines the call.

– Executing [7003@internal:1] Goto(“SIP/7001-00000089”, “ivr,7003,1”)
– Goto (ivr,7003,1)
[Aug 21 09:16:15] WARNING[233001][C-00001d65]: pbx.c:4507 __ast_pbx_run: Channel ‘SIP/7001-00000089’ sent to invalid extension but no invalid handler: context,exten,priority=ivr,7003,1

Does anyone have an idea whats wrong here?

can you try run this in the CLI

dialplan show ivr
dialplan show dial
dialplan show internal

Those commands show nothing, I guess because it’s fetching real-time from the database.

this is the only thing it shows in “dialplan show” because it’s in the extensions.conf file

[internal]
switch => Realtime/ast_extensions

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.