Multiple gateways: Priority the first bridge with prefix
Hi FS Users, I just want to try multiple gateways. It works actually like this... <action application= "bridge" data="sofia/sip/51@222.333.444.555 | sofia/sip/63@111.222.333.3333"/> But I test call like 5133333 at 222.333.444.555, it also calls the second bridge 111.222.333.333. It there any way to determine which prefix will call to a bridge specified. E.g. for bridge 1: with prefix of 51 the call with run to 222.333.444.555 not at the second bridge and vice versa. Please help.. -- View this message in context: http://www.nabble.com/Multiple-gateways%3A-Priority-the-first-bridge-with-pr... Sent from the Freeswitch-users mailing list archive at Nabble.com.
in my implementation, i would use 2 separate conditions that looks like this: <condition field="destination_number" data="(51\d*)"\> <action application="bridge" data="sofia/sip/$1@222.333.444.555"/> <condition field="destination_number" data="(63\d*)"\> <action application="bridge" data="sofia/sip/$1@111.222.333.333"/> On Mon, Jul 27, 2009 at 2:42 PM, Edmar Cruz <darklion11@yahoo.com> wrote:
Hi FS Users,
I just want to try multiple gateways. It works actually like this...
<action application= "bridge" data="sofia/sip/51@222.333.444.555 | sofia/sip/63@111.222.333.3333"/>
But I test call like 5133333 at 222.333.444.555, it also calls the second bridge 111.222.333.333.
It there any way to determine which prefix will call to a bridge specified.
E.g.
for bridge 1: with prefix of 51 the call with run to 222.333.444.555 not at the second bridge and vice versa. Please help.. -- View this message in context: http://www.nabble.com/Multiple-gateways%3A-Priority-the-first-bridge-with-pr... 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
Not working just the same both of them are running Nandy Dagondon wrote:
in my implementation, i would use 2 separate conditions that looks like this:
<condition field="destination_number" data="(51\d*)"\> <action application="bridge" data="sofia/sip/$1@222.333.444.555"/>
<condition field="destination_number" data="(63\d*)"\> <action application="bridge" data="sofia/sip/$1@111.222.333.333"/>
On Mon, Jul 27, 2009 at 2:42 PM, Edmar Cruz <darklion11@yahoo.com> wrote:
Hi FS Users,
I just want to try multiple gateways. It works actually like this...
<action application= "bridge" data="sofia/sip/51@222.333.444.555 | sofia/sip/63@111.222.333.3333"/>
But I test call like 5133333 at 222.333.444.555, it also calls the second bridge 111.222.333.333.
It there any way to determine which prefix will call to a bridge specified.
E.g.
for bridge 1: with prefix of 51 the call with run to 222.333.444.555 not at the second bridge and vice versa. Please help.. -- View this message in context: http://www.nabble.com/Multiple-gateways%3A-Priority-the-first-bridge-with-pr... 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%3A-Priority-the-first-bridge-with-pr... Sent from the Freeswitch-users mailing list archive at Nabble.com.
ed, i mean you use separate extension names: <extension name="prefix-51"> <condition field="destination_number" data="(51\d*)"\> <action application="bridge" data="sofia/sip1/$1@222.333.444.555"/> </extension> <extension name="prefix-63"> <condition field="destination_number" data="(63\d*)"\> <action application="bridge" data="sofia/sip2/$1@111.222.333.333"/> </extension> btw, you should also use separate gateway names "sip1" and "sip2". so differentiate them in the bridge application. On Mon, Jul 27, 2009 at 4:16 PM, Jason White <jason@jasonjgw.net> wrote:
Edmar Cruz <darklion11@yahoo.com> wrote:
Not working just the same both of them are running
Do you have them as separate extensions in the dial plan?
_______________________________________________ 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
Yes, I actually just want to not be able to communicate with the other bridges. I have already this extension name = "sample-1". Freeswitch gets the first extension the 2nd also trigger it. When the calls finds the match it suits perfectly but I just want that I do not want to view the bridges with CS_DESTROY or hangup_after_false if not found. Nandy Dagondon wrote:
ed,
i mean you use separate extension names:
<extension name="prefix-51"> <condition field="destination_number" data="(51\d*)"\> <action application="bridge" data="sofia/sip1/$1@222.333.444.555"/> </extension>
<extension name="prefix-63"> <condition field="destination_number" data="(63\d*)"\> <action application="bridge" data="sofia/sip2/$1@111.222.333.333"/> </extension>
btw, you should also use separate gateway names "sip1" and "sip2". so differentiate them in the bridge application.
On Mon, Jul 27, 2009 at 4:16 PM, Jason White <jason@jasonjgw.net> wrote:
Edmar Cruz <darklion11@yahoo.com> wrote:
Not working just the same both of them are running
Do you have them as separate extensions in the dial plan?
_______________________________________________ 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%3A-Priority-the-first-bridge-with-pr... Sent from the Freeswitch-users mailing list archive at Nabble.com.
Edmar Cruz <darklion11@yahoo.com> wrote:
Yes, I actually just want to not be able to communicate with the other bridges. I have already this extension name = "sample-1". Freeswitch gets the first extension the 2nd also trigger it. When the calls finds the match it suits perfectly but I just want that I do not want to view the bridges with CS_DESTROY or hangup_after_false if not found.
The above text is absolutely incoherent and incomprehensible, so I don't understand what you are trying to say. Try setting <action application="set" data="continue_on_fail=true"/> on the first extension and see whether that does what you want. I hope this help.
participants (3)
-
Edmar Cruz
-
Jason White
-
Nandy Dagondon