星号-两个本地电话之间的拨号



在软电话上,我连接了两个帐户tom和paul作为测试目的。在tom的设备上,我拨了分机100,但在paul的设备上确实响了。当我接听电话时,我可以听到背景音乐,它没有执行same => n,Playback(demo-moreinfo)

是什么原因造成的?

我在sip.conf文件中有两个sip中继:

[office-phone](!)
type=friend
context=LocalSets
host=dynamic
nat=yes
secret=password
dtmfmode=auto
disallow=all
allow=ulaw
allow=alaw
[tom](office-phone)
[paul](office-phone)
在extension.conf文件中:
[LocalSets]
exten =>   100,1,Dial(SIP/paul)
same  =>   n,Playback(demo-moreinfo)
same  =>   n,Hangup()
[LocalSets]
; Dial connets the callee and caller channels.
exten =>   100,1,Dial(SIP/paul)
; Otherwise Playback is executed (after a Dial timeout occurs)
same  =>   n,Playback(demo-moreinfo)
same  =>   n,Hangup()

如本例所示,当呼叫无人接听时,播放vm-nobodyavail声音。

exten => 123,1,Dial(SIP/100,10,m)
;; if the the call is answered, the next priority is never executed
exten => 123,n,Playback(vm-nobodyavail)
exten => 123,n,Hangup()

如果你想播放一个声音文件,答案应用程序确保通道连接,下一个优先级可以执行Playback

exten => 100,1,Answer()
exten => 100,n,Playback(demo-moreinfo)

在本例中,当有人拨打100时,该呼叫将由Answer应用程序应答。然后呼叫者将听到声音文件。

exten => 100,1,Answer()
 same => n,Noop("100 answered")
 same => n,Playback(demo-moreinfo)
 ; same => n,Noop("heard the info, dial 200")
 ; same => Dial(SIP/200);
 same => n,Hangup()

可以在Playback之后执行Dial

最新更新