[Freeswitch-users] Dialplan failover question

DJB International djbinter at gmail.com
Wed Jun 23 09:11:18 PDT 2010


Would it mean that there are no advantage/disadvantage between the two?  It
is just how you prefer to write it.  Is my assumption correct?

Thank you,
Dorn B.

On Wed, Jun 23, 2010 at 5:59 AM, David Ponzone <david.ponzone at gmail.com>wrote:

> You're absolutely right, I misread your post.
>
> David Ponzone  Direction Technique
> email: david.ponzone at ipeva.fr
> tel:      01 74 03 18 97
> gsm:   06 66 98 76 34
>
> Service Client IPeva
> tel:      0811 46 26 26
> www.ipeva.fr  -   www.ipeva-studio.com
>
> *Ce message et toutes les pièces jointes sont confidentiels et établis à
> l'intention exclusive de ses destinataires. Toute utilisation ou diffusion
> non autorisée est interdite. Tout message électronique est susceptible
> d'altération. **IPeva** décline toute responsabilité au titre de ce
> message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas
> destinataire de ce message, merci de le détruire immédiatement et d'avertir
> l'expéditeur.*
> *
> *
>
>
>
> Le 23/06/2010 à 14:49, Sergey Okhapkin a écrit :
>
> [] sets variables on B leg, but not on A leg.
>
> On Wednesday 23 June 2010, David Ponzone wrote:
>
> Sergey,
>
>
> I think you can also do that with the | (pipe) syntax, using []
>
> instead of {}.
>
>
> Personnaly, I would say syntax 1 is far more readable.
>
>
> David Ponzone  Direction Technique
>
> email: david.ponzone at ipeva.fr
>
> tel:      01 74 03 18 97
>
> gsm:   06 66 98 76 34
>
>
> Service Client IPeva
>
> tel:      0811 46 26 26
>
> www.ipeva.fr  -   www.ipeva-studio.com
>
>
> Ce message et toutes les pièces jointes sont confidentiels et établis
>
> à l'intention exclusive de ses destinataires. Toute utilisation ou
>
> diffusion non autorisée est interdite. Tout message électronique est
>
> susceptible d'altération. IPeva décline toute responsabilité au
>
> titre de ce message s'il a été altéré, déformé ou falsifié. Si
>
> vous n'êtes pas destinataire de ce message, merci de le détruire
>
> immédiatement et d'avertir l'expéditeur.
>
>
> Le 23/06/2010 à 14:20, Sergey Okhapkin a écrit :
>
> I prefer the first way, it allows to set leg A channel variables to
>
> different
>
> values depending on which gateway completed the call.
>
>
> On Wednesday 23 June 2010, DJB International wrote:
>
> It's always confused me.  I wonder whether there are any differences
>
> between these 2 dialplans.
>
>
> <extension name="test1">
>
> <condition field="destination_number" expression="^(.*)$">
>
>   <action application="set" data="hangup_after_bridge=true"/>
>
>   <action application="set" data="continue_on_fail=true"/>
>
>   <action application="bridge" data="sofia/gateway/carrier1/$1"/>
>
>   <action application="bridge" data="sofia/gateway/carrier2/$1"/>
>
> </condition>
>
> </extension>
>
>
> -and-
>
>
> <extension name="test2">
>
> <condition field="destination_number" expression="^(.*)$">
>
>   <action application="set" data="hangup_after_bridge=true"/>
>
>   <action application="set" data="continue_on_fail=true"/>
>
>   <action application="bridge"
>
> data="sofia/gateway/carrier1/$1|sofia/gateway/carrier2/$1"/>
>
> </condition>
>
> </extension>
>
>
> What is the best way to use it?
>
>
> Thank you,
>
> Dorn B.
>
>
> _______________________________________________
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100623/ce6b2422/attachment-0001.html 


More information about the FreeSWITCH-users mailing list