Asterisk 来电 DID 问题(拨打的号码)
我正在使用 1.4.38 在托管 Asterisk 提供商处设置一个新的 Asterisk 系统,从自托管版本 1.2 开始。而在我能做到之前: [传入]
扩展=> _1NXXNXXXXXX,1,DoSomething
现在,看来传入上下文只有在以下情况下才会被正确调用:
[传入]
扩展=> s,1,DoSomething
在这种情况下如何确定拨打的号码是什么?我们有几十个号码,我需要知道哪个号码被调用才能正确路由...
谢谢,
本
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,DoSomething
Now, it appears the incoming context will only get properly called if it is:
[incoming]
exten => s,1,DoSomething
How 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,
Ben
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用模式。我在运行的星号实例中有这一行:
exten => 5858876463,1,Set(__FROM_DID=${EXTEN})
但是,要回答您的问题,您可以使用 ${EXTEN} 变量来决定调用哪个号码。例如
扩展=> s,1,SomeScript(${EXTEN})
You 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})