HI guys, i am setting up an IVR with option one as extension to extension calling. The problem is when i press the extension i need to call, nothing happens. Please let me know if you have question so i can explain more on how i wanted it to work. I hope to hear something from you guys, Thanks
Here is my code on my IVR
[attendant]
exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n(playback),Background(Thank-you-for-calling)
exten => s,n,Background(options)
exten => s,n,WaitExten(5)
exten => 1,1,Goto(extension-calling,s,1) ; <— the problem
exten => 2,1,Goto(CS,s,1)
[extension-calling] ; <— the problem
exten => s,1,Answer
exten => s,2,Background(press-the-extension-number)
exten => s,3,WaitExten(5)
exten => _XXXX,1,Dial(SIP/${EXTEN})
exten => _XXXX,2,Hangup
@ CLI
Executing [s@extension-calling:1] Answer(“SIP/5060-098d30b8”, “”) in new stack
– Executing [s@extension-calling:2] BackGround(“SIP/5060-098d30b8”, “press-the-extension-number”) in new stack
– <SIP/5060-098d30b8> Playing ‘press-the-extension-number’ (language ‘en’)
[Feb 15 02:51:55] WARNING[16172]: pbx.c:2522 __ast_pbx_run: Invalid extension ‘1’, but no rule ‘i’ in context ‘extension-calling’