Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Dome Charoenyost
May be need
action application=set data=hangup_after_bridge=false/
before first bridge


Dome C.
2009/6/26 Edmar Cruz darklio...@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/$...@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/$...@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Jason White
Dome Charoenyost d...@tel.co.th wrote:
 May be need
 action application=set data=hangup_after_bridge=false/
 before first bridge

and also, reading this wiki page may help
http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate
(see the discussion of multiple destinations)


___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Edmar Cruz

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/$...@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/$...@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 darklio...@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/$...@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/$...@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@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@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.


___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Dome Charoenyost
Please try
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/$...@116.80.80.101/
 action application=bridge data=sofia/default/$...@116.80.80.102/
   /condition

 /extension
/include

2009/6/26 Edmar Cruz darklio...@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=set data=hangup_after_bridge=false/
      action application=bridge data=sofia/default/$...@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/$...@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 darklio...@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/$...@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/$...@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@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@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.


 ___
 Freeswitch-users mailing list
 Freeswitch-users@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Dome Charoenyost
Or Try pipe
 action application=bridge data=sofia/default/$...@116.80.80.101 |
sofia/default/$...@116.80.80.102/
if you want to ring all. Try comma
 action application=bridge data=sofia/default/$...@116.80.80.101 ,
sofia/default/$...@116.80.80.102/


2009/6/26 Edmar Cruz darklio...@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=set data=hangup_after_bridge=false/
      action application=bridge data=sofia/default/$...@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/$...@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 darklio...@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/$...@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/$...@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@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@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.


 ___
 Freeswitch-users mailing list
 Freeswitch-users@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Nandy Dagondon
you can combine the 2 gateways into one bridge app. pls see
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridgecall

/nandy

On Fri, Jun 26, 2009 at 1:48 PM, Edmar Cruz darklio...@yahoo.com wrote:


 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/$...@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/$...@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Edmar Cruz

Yup your suggestions works... But I want my to have a prefix for the second
bridge

condition field=destination_number expression=^63819(\d+)$



Dome Charoenyost wrote:
 
 Or Try pipe
  action application=bridge data=sofia/default/$...@116.80.80.101 |
 sofia/default/$...@116.80.80.102/
 if you want to ring all. Try comma
  action application=bridge data=sofia/default/$...@116.80.80.101 ,
 sofia/default/$...@116.80.80.102/
 
 
 2009/6/26 Edmar Cruz darklio...@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=set data=hangup_after_bridge=false/
      action application=bridge data=sofia/default/$...@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/$...@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 darklio...@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/$...@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/$...@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@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@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.


 ___
 Freeswitch-users mailing list
 Freeswitch-users@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@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--tp24215324p24215893.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Harmeet Singh
Just add the prefix like -

action application=bridge data=sofia/default/$...@116.80.80.101 |
sofia/default/6381...@116.80.80.102/

BTW: Never give your real prefix. Anybody can use it to send traffic to your
trunk with that prefix and eat away your balance.

On Fri, Jun 26, 2009 at 3:05 AM, Edmar Cruz darklio...@yahoo.com wrote:


 Yup your suggestions works... But I want my to have a prefix for the second
 bridge

 condition field=destination_number expression=^63819(\d+)$



 Dome Charoenyost wrote:
 
  Or Try pipe
   action application=bridge data=sofia/default/$...@116.80.80.101 |
  sofia/default/$...@116.80.80.102/
  if you want to ring all. Try comma
   action application=bridge data=sofia/default/$...@116.80.80.101 ,
  sofia/default/$...@116.80.80.102/
 
 
  2009/6/26 Edmar Cruz darklio...@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=set data=hangup_after_bridge=false/
   action application=bridge data=sofia/default/$...@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/$...@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 darklio...@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/$...@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/$...@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@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@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.
 
 
  ___
  Freeswitch-users mailing list
  Freeswitch-users@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@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--tp24215324p24215893.html
  Sent from the Freeswitch-users mailing list archive at Nabble.com.


 ___
 Freeswitch-users mailing list
 Freeswitch-users@lists.freeswitch.org
 

Re: [Freeswitch-users] multiple gateways not working?

2009-06-26 Thread Dome Charoenyost
2009/6/26 Harmeet Singh harm...@litatel.com:
 Just add the prefix like -

 action application=bridge data=sofia/default/$...@116.80.80.101 |
 sofia/default/6381...@116.80.80.102/

 BTW: Never give your real prefix. Anybody can use it to send traffic to your
 trunk with that prefix and eat away your balance.
ACL can help :)


 On Fri, Jun 26, 2009 at 3:05 AM, Edmar Cruz darklio...@yahoo.com wrote:

 Yup your suggestions works... But I want my to have a prefix for the
 second
 bridge

 condition field=destination_number expression=^63819(\d+)$



 Dome Charoenyost wrote:
 
  Or Try pipe
   action application=bridge data=sofia/default/$...@116.80.80.101 |
  sofia/default/$...@116.80.80.102/
  if you want to ring all. Try comma
   action application=bridge data=sofia/default/$...@116.80.80.101 ,
  sofia/default/$...@116.80.80.102/
 
 
  2009/6/26 Edmar Cruz darklio...@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=set data=hangup_after_bridge=false/
       action application=bridge
  data=sofia/default/$...@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/$...@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 darklio...@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/$...@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/$...@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@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@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.
 
 
  ___
  Freeswitch-users mailing list
  Freeswitch-users@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@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--tp24215324p24215893.html
 Sent from the Freeswitch-users mailing list archive at Nabble.com.


 ___
 Freeswitch-users mailing list
 

[Freeswitch-users] multiple gateways not working?

2009-06-25 Thread Edmar Cruz

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/$...@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/$...@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org