我有三个扩展名,扩展号是。2000
, 2001
, 2002
.我可以分别从一个分机呼叫到另一个分机。在调用任何扩展时,它会得到如下错误没有应用程序'Dial' for Asterisk
我的sip.conf
像这样
[general]
port = 5060
bindaddr = 0.0.0.0
context = others
[2000]
type=friend
context=demo
secret=1234
host=dynamic
[2001]
type=friend
context=demo
secret=1234
host=dynamic
[2002]
type=friend
context=demo
secret=1234
host=dynamic
和extensions.conf
[demo]
exten => 2000, 1, Dial (SIP/2000)
exten => 2000, 2, Voicemail (u2000)
exten => 500, 1,Answer()
exten => 500, 2, playback(demo-echo)
exten => 500, 3, Echo
exten => 500,5,Hangup
exten => 2001, 1, Dial (SIP/2001)
exten => 2001, 2, Voicemail (u2001)
exten => 2002, 1, Dial (SIP/2002)
exten => 2002, 2, Voicemail (u2002)
请帮助我如何解决这个问题。提前感谢
有趣,但是…
你说你出错了没有应用程序'Dial' for extension(…),但由于你的拨号计划(由于我已经尝试过),你应该得到没有应用程序'Dial ' for extension(…)
那么,试试这个dialplan,所有不必要的空格都被删除了:
[demo]
exten => 2000, 1, Dial(SIP/2000)
exten => 2000, 2, Voicemail(u2000)
exten => 500, 1,Answer()
exten => 500, 2, playback(demo-echo)
exten => 500, 3, Echo
exten => 500,5,Hangup
exten => 2001, 1, Dial(SIP/2001)
exten => 2001, 2, Voicemail(u2001)
exten => 2002, 1, Dial(SIP/2002)
exten => 2002, 2, Voicemail(u2002)