Asterisk incoming call DID question (number dialed)
I am setting up a new Asterisk system at a hosted Asterisk provider using 1.4.38, moving from a self-hosted version 1.2. Whereas before I could do: [incoming]
exten => _1NXXNXXXXXX,1,DoSomethingNow, it appears the incoming context will only get properly called if it is:
[incoming] 开发者_Go百科exten => s,1,DoSomethingHow do I determine what number was dialed in this scenario? We have dozens of numbers and I need to be able to know which was called to route correctly...
Thanks,
BenYou can use a pattern. I have this line in a running asterisk instance:
exten => 5858876463,1,Set(__FROM_DID=${EXTEN})
However, to answer your question, you can use the ${EXTEN} variable to decide what number was called. E.g.
exten => s,1,SomeScript(${EXTEN})
精彩评论