2017-09-08 98 views

回答

0

有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

+0

謝謝,但有了選項1,只有接收者(B)聽音樂或發送者(A)聽音樂,而A是聽音樂,不要互相交談。 – langiac

+0

是的,但這比選項2簡單得多。Chanspy可以對兩者都說話。 – arheops

+0

我使用呼叫組,當A和B正在說話時,將C放到這個組中並播放音樂。沒關係,但我認爲不是最好的。我與ChanSpy測試,但它不工作。我使用Asterisk 11.x – langiac