What is a dialplan syntax that requires callers to press # before entering extensions.
exten=>_#.,1,Noop(${EXTEN:1})
continueâŚ
You are missing an _ and a .
You right did it fast, didnt realize it, it was fast reply
With this string after the user enters #406 they are routed to the dialplan for extension 406, correct?
You mean SIP device ?
Here is an exmaple of a dial plan extensioon
exten=>_#.,1,Noop(${EXTEN:1})
same=>n,playback(demo-thanks)
same=>n,Dial(PJSIP/${EXTEN:1})
Hereâs what I need to accomplish. When a user calls and direct dials 406 extension 406 rings as itâs built into the dialplan. The issue is that our greeting says âpress # and enter the extensionâ. What I need is when a caller dials #406 exten => 406,1,Dial(SIP/406) is executed.
I understand that in this scenario ${EXTEN:1} represents exten => 406,1,Dial(SIP/406) but the PBX doesnât dial the extension, I get the below error:
Executing [#406@Main_Menu:2] NoOp(âSIP/101-00000416â, â406â) in new stack
â Auto fallthrough, channel âSIP/101-00000416â status is âUNKNOWNâ
run sip show peers and also post your configuration using preformatted text option
You were originally only a given a hint at how to do things. It was assumed that you had some difficulty generalising the examples that come with asterisk (extensions.conf.sample), e.g.:
exten =>; _91700XXXXXXX,1,Dial(IAX2/${GLOBAL(IAXINFO)}@iaxtel.com/${EXTEN:1}@iaxtel)
to the use of ââ#â (and PJSIP), but you otherwise knew how to write a dialplan using Dial.
You have now been given a more completely worked example, but to use these forums effectively, you really need to know how to write simple dialplans, as we are not normally going to give you fully tested, worked solutions. We also may not understand the question, and give a solution for the question we thought you were asking; you need to understand enough to recognize when that has happened.
Thank you for your reply and assistance @david551. I took the example using ânoopâ provided by @ambiorixg12 followed by a goto Conext,${EXTEN:1},1; and itâs working like a charm. I have dialplans configured for each extension in a separate context. I just need a way to get the extension variable to the context to follow the extensions dialplan. It doesnât help ease things that Iâve inherited a system using ael but it definitely makes for a fun challenge. Thank you both for your assistance, it has been greatly appreciated