<div dir="ltr"><div>&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br></div><div>&lt;action application=&quot;bridge&quot; data=&quot;sofia/your/dialstring&quot;/&gt;<br></div><div>&lt;action application=&quot;hangup&quot; data=&quot;34&quot;/&gt;<br>

</div><div><br></div><div>This&#39;ll hangup on a successful bridge (answer) but continue to the hangup on a failed bridge. The 34 hangup is the ISDN clearing cause - see <a href="http://wiki.freeswitch.org/wiki/Hangup_Causes">http://wiki.freeswitch.org/wiki/Hangup_Causes</a> (you can use enumeration names or the numbers).</div>

<div><br></div><div>34 NORMAL_CIRCUIT_CONGESTION will return 503 Service Unavailable, with the 34 cause in a Reason header. See <a href="http://tools.ietf.org/html/rfc3398">http://tools.ietf.org/html/rfc3398</a> for the full list of mappings. Note it&#39;s not a 1:1 mapping so 34 maps to 503 and maps back to 41 without the Reason header to override that to provide the 34.</div>

<div><br></div><div>If instead you&#39;re only wanting to control the SIP code use the respond app. The Reason header&#39;ll probably come from the SIP-&gt;ISDN mapping in the above RFC.</div><div><br></div><div>If you want to selectively control what response to send based on the bridge&#39;s hangup cause, transfer to another context where the extensions each check the hangup cause to pick which hangup to use. ${bridge_hangup_cause} is probably the variable you&#39;d want to check.</div>

<div><br></div><div>-Steve</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 October 2013 02:18, Andre <span dir="ltr">&lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">HI, how would I change the response code back to my customer?<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Let’s say I receive a 500 from my provider and I wanted to tell my customer it’s a 503, how would I do that?<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p>

<span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Andre<u></u><u></u></span></p></font></span></div></div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>