[Freeswitch-users] Dialplan failover question

Sergey Okhapkin sos at sokhapkin.dyndns.org
Wed Jun 23 05:49:42 PDT 2010


[] 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
> 




More information about the FreeSWITCH-users mailing list