挂断后的星号播放

问题描述 投票:1回答:1

当有人在Asterisk 15.2.2中挂断电话时,我试图播放声音但是挂断后听到2声嘟嘟声并且连接中断而没有播放音频文件。这是我目前的拨号方案:

[macro-callwithhelloworld]
exten => s,1,Wait(1)
same => n,Playback(hello-world)
same => n,Dial(${ARG1},20)
same => n,Hangup()
same => n,Answer()
same => n,Playback(hello-world)


[from-internal]
exten=>6001,1,Macro(callwithhelloworld,SIP/demo)

当有人挂断电话时,怎么能让它成为“你好世界”呢?

asterisk
1个回答
1
投票

呼叫者呼叫被叫方B.

当A挂机时,没有任何可能的方式来播放A。只是因为他/她放弃了香奈儿而你没有频道。

如果被叫方挂断,它可以播放给呼叫者。在拨号中使用'g'选项而不使用Hangup。

same => n,Dial(${ARG1},20,g)
same => n,Playback(hello-world)
© www.soinside.com 2019 - 2024. All rights reserved.