[Freeswitch-users] outbound calls control

shayne.alone at gmail.com shayne.alone at gmail.com
Sat Feb 23 10:48:10 MSK 2013


I need to control over the return value of bridge application:

How should on find if the call was rejected bye Carrier_One ( before I fill
10 calls which I am permitted to ) and route then via Carrier_Two?



<include>
  <extension name="noPerfixed">
    <condition field="destination_number" expression="^([0-9]+)$">
    <action application="set" data="ignore_early_media=true"/>
    <action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION"/>
    <action application="limit_execute" data="hash outbound carrierOne 10
bridge sofia/gateway/xxx.xxx.xxx.101/$1" />
    <!--     what should i place here?       -->
    <action application="hangup"/>
    <action application="bridge"
data="sofia/gateway/xxx.xxx.xxx.102/12$1"/>
    <action application="hangup"/>
    </condition>
  </extension>

  <extension name="Perfixed">
    <condition field="destination_number" expression="^[0-9]+#([0-9]+)$">
            <action application="transfer" data="$1 XML CallPlan"/>
    </condition>
  </extension>
</include>




-- 
Regards,
Ali R. Taleghani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130223/08be1ce2/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list