0
我有一個問題: 在星號腳本中,我通過命令撥號(SIP/xxx)執行從A到B的呼叫。 我想在與B如何在通話期間使用Asterisk播放音樂?
函數的恆等式撥打說話只支持音樂開始通話或結束通話播放音樂: https://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
請幫助我,如果你知道的。
我有一個問題: 在星號腳本中,我通過命令撥號(SIP/xxx)執行從A到B的呼叫。 我想在與B如何在通話期間使用Asterisk播放音樂?
函數的恆等式撥打說話只支持音樂開始通話或結束通話播放音樂: https://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
請幫助我,如果你知道的。
有2點可能的變體
1)撥號命令大號PARAM播放文件,在通話結束前一段時間,有重複選項
L(x[:y[:z]]):
x - Maximum call time, in milliseconds
y - Warning time, in milliseconds
z - Repeat time, in milliseconds
Limit the call to <x> milliseconds. Play a warning when <y> milliseconds
are left. Repeat the warning every <z> milliseconds until time expires.
This option is affected by the following variables:
${LIMIT_PLAYAUDIO_CALLER}:
yes
no
If set, this variable causes Asterisk to play the
prompts to the caller.
${LIMIT_PLAYAUDIO_CALLEE}:
yes
no
If set, this variable causes Asterisk to play the
prompts to the callee.
${LIMIT_TIMEOUT_FILE}:
filename
If specified, <filename> specifies the sound prompt
to play when the timeout is reached. If not set, the time remaining
will be announced.
${LIMIT_CONNECT_FILE}:
filename
If specified, <filename> specifies the sound prompt
to play when the call begins. If not set, the time remaining will
be announced.
${LIMIT_WARNING_FILE}:
filename
If specified, <filename> specifies the sound prompt
to play as a warning when time <x> is reached. If not set, the
time remaining will be announced.
2)您可以orignate新的通道,一條腿文件,其他腿通過ChanSpy wisper功能連接到當前通話。 https://www.voip-info.org/wiki/view/Asterisk+cmd+ChanSpy
謝謝,但有了選項1,只有接收者(B)聽音樂或發送者(A)聽音樂,而A是聽音樂,不要互相交談。 – langiac
是的,但這比選項2簡單得多。Chanspy可以對兩者都說話。 – arheops
我使用呼叫組,當A和B正在說話時,將C放到這個組中並播放音樂。沒關係,但我認爲不是最好的。我與ChanSpy測試,但它不工作。我使用Asterisk 11.x – langiac