[Freeswitch-users] Strange behaviour with leg_timeout

David Ponzone david.ponzone at ipeva.fr
Fri Feb 4 00:54:11 MSK 2011


It's my time to mess with XXX_timeout variables in FreeSWITCH.

What I need to do is to route a call to a gateway, and if I don't have an answer (like not even the 100) within X seconds, I try to route the call to a backup number.
I tried it this way:

    <extension name="gw_then_backup">
       <condition field="destination_number" expression="^(XXXXXXXXXX)$">
        <action application="bridge" data="{leg_timeout=5}sofia/external/$1 at a.b.c.d|sofia/gateway/provider.out/YYYYYYYYYY"/>
       </condition>
     </extension>

My understanding was that a.b.c.d would be tried for 5 seconds, and if no 100 is received, gateway provider.out would then be used.
It works...but after the first INVITE to provider.out (which sends back 100/180/183), I can see some more INVITEs sent to a.b.c.d.

I am wondering if I am doing something wrong, or if there is an issue.
I use latest git from 5 minutes ago.

Thanks

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.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110203/643aa143/attachment.html 


More information about the FreeSWITCH-users mailing list