[Freeswitch-users] Failed bridge in dial plan still answers an OpenZap inbound call

Scott Ellis scott.ellis at novatex.com.au
Wed Jan 14 02:03:22 PST 2009


I have an inbound call via OpenZap, when I attempt to bridge to a SIP 
extension, I get the ring tone (inbound line) up until the bridge fails 
(for timeout or do not disturb). At this point the call is answered and 
then my dial plan moves on to attempt another bridge to different 
extensions. So I no longer have the ring tone for the person dialing in. 
The call can still be answered and everything works ok, but I would 
rather not answer the call until someone actually picks up. Failing that 
simulating a ring tone would be good enough.

Have searched around, but at a bit of a loss on how to dothis.

Any suggestions greatly appreciated.

Scott

 From my dialplan

<extension name="LandLine IN">
    <condition field="source" expression="mod_openzap"/>
    <condition field="caller_id_number" expression="^[1-8]$">
     
      <!-- Ring reception for 30 seconds -->
      <!--<action application="set" data="call_timeout=30"/> -->
      <action application="set" data="continue_on_fail=true"/>
      <!--<action application="set" data="hangup_after_bridge=true"/>-->
      <action application="bridge" 
data="{leg_timeout=30}sofia/$${domain}/500"/>

      <!--<action application="playback" 
data="sounds/ReceptionBusy.wav"/> -->

      <!-- Ring second group for 15 seconds -->
      <action application="set" data="call_timeout=15"/>
      <action application="set" data="continue_on_fail=true"/>
      <action application="set" data="hangup_after_bridge=true"/>
      <action application="ring_ready"/>
      <action application="bridge" 
data="${group_call(ringgroup2@${domain_name})"/>

      <!-- Ring everybody -->
      <action application="set" data="call_timeout=15"/>
      <action application="set" data="hangup_after_bridge=true"/>
      <action application="bridge" 
data="${group_call(everyone@${domain_name})"/>
      <action application="hangup" data="NO_ANSWER"/>
    </condition>
  </extension>





More information about the FreeSWITCH-users mailing list