[Freeswitch-users] multiple gateways not working?

Edmar Cruz darklion11 at yahoo.com
Thu Jun 25 23:34:06 PDT 2009


<include>
  <extension name="multiple">
    <condition field="destination_number" expression="^(\d+)$">
      <action application="set" data="gate_site_id=1"/>
      <action application="set"
data="effective_caller_id_name=${effective_caller_id_name}"/>
      <action application="set"
data="effective_caller_id_number=${effective_caller_id_number}"/>
     <action application="set" data="hangup_after_bridge=false"/>
      <action application="bridge" data="sofia/default/$1 at 116.80.80.101"/>
    </condition>

     <condition field="destination_number" expression="^(\d+)$">
      <action application="set" data="gate_site_id=1"/>
      <action application="set"
data="effective_caller_id_name=${effective_caller_id_name}"/>
      <action application="set"
data="effective_caller_id_number=${effective_caller_id_number}"/>
     
      <action application="bridge" data="sofia/default/$1 at 116.80.80.102"/>
    </condition>

  </extension>
</include> 

I try what you said still not working...


Dome Charoenyost wrote:
> 
> May be need
> <action application="set" data="hangup_after_bridge=false"/>
> before first bridge
> 
> 
> Dome C.
> 2009/6/26 Edmar Cruz <darklion11 at yahoo.com>:
>>
>> <include>
>>  <extension name="multiple">
>>    <condition field="destination_number" expression="^(\d+)$">
>>      <action application="set" data="gate_site_id=1"/>
>>      <action application="set"
>> data="effective_caller_id_name=${effective_caller_id_name}"/>
>>      <action application="set"
>> data="effective_caller_id_number=${effective_caller_id_number}"/>
>>      <action application="transfer" data="$ XML default"/>-->
>>      <action application="bridge" data="sofia/default/$1 at 116.80.80.101"/>
>>    </condition>
>>
>>     <condition field="destination_number" expression="^(\d+)$">
>>      <action application="set" data="gate_site_id=1"/>
>>      <action application="set"
>> data="effective_caller_id_name=${effective_caller_id_name}"/>
>>      <action application="set"
>> data="effective_caller_id_number=${effective_caller_id_number}"/>
>>      <action application="transfer" data="$ XML default"/>-->
>>      <action application="bridge" data="sofia/default/$1 at 116.80.80.102"/>
>>    </condition>
>>
>>  </extension>
>> </include>
>>
>>
>> Is this correct for multiple gateways? When I try this the first gateway
>> works but the second gateway does not work?
>>
>>
>> What is the solution for this can u help me?
>>
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/multiple-gateways-not-working--tp24215324p24215324.html
>> Sent from the Freeswitch-users mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
> 
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 

-- 
View this message in context: http://www.nabble.com/multiple-gateways-not-working--tp24215324p24215631.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list