<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Anthony,<div><br></div><div>I tried:</div><div><div> <action application="bridge" data="[leg_timeout=5]sofia/external/$1@a.b.c.d|[leg_timeout=5]sofia/gateway/provider.out/YYYYYYYYYY"/></div><div>and</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><action application="bridge" data="[leg_progress_timeout=5]sofia/external/$1@a.b.c.d|[leg_progress_timeout=5]sofia/gateway/provider.out/YYYYYYYYYY"/></div><div><br></div><div>The result is the same: a.b.c.d does not reply anything, so after 5 seconds, provider.out is tried, but then, INVITEs are still sent to a.b.c.d</div><div><br></div><div>I actually think I understand why.</div><div>I think it's because those INVITE retries are happening within Sofia.</div><div>FreeSWITCH does not have a reply at all, so leg-timeout or leg_progress_timeout are still triggered, and the dialplan continues, but Sofia is still doing its retries on the first target.</div><div>I guess to avoid this, we would need a way to control the number of retries sent by Sofia.</div><div>It's probably not a big deal anyway for my situation, where i want to send calls to backup numbers when the trunk to a.b.c.d is really dead.</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>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. </i><b><i>IPeva</i></b><i> 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.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>Le 03/02/2011 à 23:02, Anthony Minessale a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>We do not have anything to timeout at a 100 the only thing we can do<br>is 180 or 183 using [leg_progress_timeout=X] in front of each leg.<br><br><br><br>On Thu, Feb 3, 2011 at 3:54 PM, David Ponzone <<a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a>> wrote:<br><blockquote type="cite">It's my time to mess with XXX_timeout variables in FreeSWITCH.<br></blockquote><blockquote type="cite">What I need to do is to route a call to a gateway, and if I don't have an<br></blockquote><blockquote type="cite">answer (like not even the 100) within X seconds, I try to route the call to<br></blockquote><blockquote type="cite">a backup number.<br></blockquote><blockquote type="cite">I tried it this way:<br></blockquote><blockquote type="cite"> <extension name="gw_then_backup"><br></blockquote><blockquote type="cite"> <condition field="destination_number" expression="^(XXXXXXXXXX)$"><br></blockquote><blockquote type="cite"> <action application="bridge"<br></blockquote><blockquote type="cite">data="{leg_timeout=5}sofia/external/$1@a.b.c.d|sofia/gateway/provider.out/YYYYYYYYYY"/><br></blockquote><blockquote type="cite"> </condition><br></blockquote><blockquote type="cite"> </extension><br></blockquote><blockquote type="cite">My understanding was that a.b.c.d would be tried for 5 seconds, and if no<br></blockquote><blockquote type="cite">100 is received, gateway provider.out would then be used.<br></blockquote><blockquote type="cite">It works...but after the first INVITE to provider.out (which sends back<br></blockquote><blockquote type="cite">100/180/183), I can see some more INVITEs sent to a.b.c.d.<br></blockquote><blockquote type="cite">I am wondering if I am doing something wrong, or if there is an issue.<br></blockquote><blockquote type="cite">I use latest git from 5 minutes ago.<br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite">David Ponzone Direction Technique<br></blockquote><blockquote type="cite">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a><br></blockquote><blockquote type="cite">tel: 01 74 03 18 97<br></blockquote><blockquote type="cite">gsm: 06 66 98 76 34<br></blockquote><blockquote type="cite">Service Client IPeva<br></blockquote><blockquote type="cite">tel: 0811 46 26 26<br></blockquote><blockquote type="cite"><a href="http://www.ipeva.fr">www.ipeva.fr</a> - <a href="http://www.ipeva-studio.com">www.ipeva-studio.com</a><br></blockquote><blockquote type="cite">Ce message et toutes les pièces jointes sont confidentiels et établis à<br></blockquote><blockquote type="cite">l'intention exclusive de ses destinataires. Toute utilisation ou diffusion<br></blockquote><blockquote type="cite">non autorisée est interdite. Tout message électronique est susceptible<br></blockquote><blockquote type="cite">d'altération. IPeva décline toute responsabilité au titre de ce message s'il<br></blockquote><blockquote type="cite">a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce<br></blockquote><blockquote type="cite">message, merci de le détruire immédiatement et d'avertir l'expéditeur.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></blockquote><blockquote type="cite">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br></blockquote><blockquote type="cite"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="sip:888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>googletalk:conf+888@conference.freeswitch.org<br>pstn:+19193869900<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></blockquote></div><br></div></body></html>