Thanks for the tip Steve!<div>-MC<br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 4:03 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Try also setting this before the bridge:<br><action application="set" data="sip_ignore_remote_cause=true"/><br><br>Without that you'll get a 34 reason but 480 sip code, with it you'll get a 34+503.<br>
<br>-Steve<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On 7 June 2011 21:51, Eric Beard <span dir="ltr"><<a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I tried this and it does not modify the SIP response code. It seems to only affect this response header:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Reason: Q.850;cause=34;text="NORMAL_CIRCUIT_CONGESTION"</span></p>
<p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">-----------------------</span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">Eric Z. Beard, CTO</span></b><span style="font-size:10.0pt;color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">Loop LLC</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">w (877) 850-2010 x9249</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">m (727) 776-2768</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D"><a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Stephen Wilde<br>
<b>Sent:</b> Tuesday, June 07, 2011 12:53 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Freeswitch dialplan help</span></p></div><div><div></div><div><p class="MsoNormal"> </p>
<p class="MsoNormal">I think that something like this can work (not tested by me):</p><div><p class="MsoNormal"> </p></div><div><div><p class="MsoNormal"><context name="default"></p></div><div><p class="MsoNormal">
<extension name="myextension"></p></div></div><div><p class="MsoNormal"> <condition></p></div><div><p class="MsoNormal"> <action application="bridge" data="sofia/${Dialstring}"/></p>
</div><div><p class="MsoNormal"> <action application="transfer" data="dohangup XML dohangup"/></p></div><div><p class="MsoNormal"> </condition></p></div><div><p class="MsoNormal">
</extension></p></div><div><p class="MsoNormal"></context></p></div><div><p class="MsoNormal"> </p></div><div><div><div><p class="MsoNormal"><context name="dohangup"></p></div><div><p class="MsoNormal">
<extension name="dohangup"></p></div></div><div><p class="MsoNormal"> <condition field="${bridge_hangup_cause}" expression="^(<span><i><span style="font-size:10.0pt">NO_ANSWER</span></i></span>)$" break="on-true"></p>
</div><div><p class="MsoNormal"> <action application="hangup" data="<span><i><span style="font-size:10.0pt">NORMAL_CIRCUIT_CONGESTION</span></i></span>"/></p></div><div><div><p class="MsoNormal">
</condition></p></div><div><p class="MsoNormal"> <condition></p></div><div><p class="MsoNormal"> <action application="hangup" data="${bridge_hangup_cause}"/></p>
</div><div><p class="MsoNormal"> </condition></p></div><div><p class="MsoNormal"> </extension></p></div><div><p class="MsoNormal"></context></p></div></div><div><p class="MsoNormal"> </p></div>
<div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Stephen</p></div><p class="MsoNormal"> </p><div><p class="MsoNormal">On Tue, Jun 7, 2011 at 6:05 PM, awais nazir <<a href="mailto:awais-nazeer@hotmail.com" target="_blank">awais-nazeer@hotmail.com</a>> wrote:</p>
<div><p class="MsoNormal">Hi<br><br>I want to achieve a simple scenario , after attempting a bridge in my dialplan if I get cause code 480, it should be converted to 503 to originator.<br><br><action application="bridge" data="sofia/${Dialstring}"/><br>
<!--If </p><pre>${hangup_cause} == "480" then ${hangup_cause}</pre><pre>=503<br>><br><br>Can somebody help here.</pre><pre> </pre></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p>
</div><p class="MsoNormal"> </p></div></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>