Freeswitch转移失败

时间:2017-03-13 13:27:13

标签: freeswitch

我有gsm gateway

的扩展名
for i in range (max_lag_ + 1,xFit.size):
    xFit[i] = res[3].resols.params[0] * dUs[i-1] +  res[3].resols.params[res[3].resols.params.size - 1]
for j in range(1,max_lag_ +1):
    xFit[i] = xFit[i] + res[3].resols.params[j] * lag[i-1-j]

失败的桥梁的扩展

<extension name="incoming_from_gsm" >
   <condition field="destination_number" expression="987987" >
       <action application="set" data="transfer_on_fail=USER_BUSY,SUBSCRIBER_ABSENT,USER_NOT_REGISTERED BRIDGE_FAILED_EXTENSION" />
       <action application="set" data="hangup_after_bridge=true" />
       <action application="answer" />
       <action application="sleep" data="1000" />
       <action application="start_dtmf" />
       <action application="play_and_get_digits" data="1 4 1 10000 # /usr/local/freeswitch/sounds/ru/RU/elena/ivr/48000/ivr-enter_ext.wav  silence_stream://250 INTERNAL_PHONE_NUMBER" />
       <action application="log" data="INFO digits collected for internal phone ${INTERNAL_PHONE_NUMBER}" />
       <action application="bridge" data="user/${INTERNAL_PHONE_NUMBER}@${domain_name}" />
   </condition>
</extension>

我希望它在用户不存在,不可用或忙碌时播放一些消息,机器人没有条件匹配。

日志

<extension name="BRIDGE_FAILED_EXTENSION" >
   <condition field="destination_number" expression=".*" >
   <action application="log" data="hangup cause was:::::: ${originate_disposition}" />
  </condition>


   <condition field="${originate_disposition}" expression="SUBSCRIBER_ABSENT">
   <action application="log" data="hangup cause was ${originate_disposition}" />
       <action application="playback" data="voicemail/vm-that_was_an_invalid_ext.wav" />
       <action application="hangup" data="NORMAL_CLEARING" />
   </condition>

   <condition field="${originate_disposition}" expression="USER_NOT_REGISTERED">
   <action application="log" data="hangup cause was ${originate_disposition}" />
       <action application="playback" data="/usr/local/freeswitch/sounds/phone_not_registered.wav" />
       <action application="hangup" data="NORMAL_CLEARING" />
   </condition>

   <condition field="${originate_disposition}" expression="USER_BUSY">
   <action application="log" data="hangup cause was ${originate_disposition}" />
       <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-user_busy.wav" />
       <action application="hangup" data="NORMAL_CLEARING" />
   </condition>
</extension>

我看到它将失败的桥接器传输到BRIDGE_FAILED_EXTENSION,但没有其他任何东西(没有来自分机的日志信息,我手机中没有消息)。

0 个答案:

没有答案