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.
<extension name="gw_then_backup">
<condition field="destination_number" expression="^(XXXXXXXXXX)$">
<action application="bridge" data="{leg_timeout=5}sofia/external/$1@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
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
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.