本文介绍了星号来电DID问题(已拨电话)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用1.4.38在托管Asterisk提供程序上设置新的Asterisk系统,而该版本已从自托管版本1.2迁移到了新版本.而在我可以做之前:[传入]
exten => _1NXXNXXXXXX,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

现在,看来只有在以下情况下,才能正确调用传入的上下文:
[传入]
exten => s,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...

谢谢,

推荐答案

您可以使用模式.我在运行的星号实例中有以下一行:

You can use a pattern. I have this line in a running asterisk instance:

exten => 5858876463,1,Set(__ FROM_DID = $ {EXTEN})

exten => 5858876463,1,Set(__FROM_DID=${EXTEN})

但是,要回答您的问题,您可以使用$ {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})

exten => s,1,SomeScript(${EXTEN})

这篇关于星号来电DID问题(已拨电话)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 22:23