<div dir="ltr">







<p class=""><span class="">Here is some data that may help you understand the cause code mappings in SIP:</span></p><p class=""><span class="">map QSIG cause codes to SIP from RFC4497 section 8.4.1</span></p><p class=""><span class="">see </span>mod_sofia.c: hangup_cause_to_sip</p><p class="">







</p><p class=""><span class="">map sip responses to QSIG cause codes ala RFC4497 section 8.4.4</span></p><p class=""><span class="">







</span></p><p class=""><span class="">see sofia_glue.c: sofia_glue_sip_cause_to_freeswitch</span></p><p class="">You would also need to look at the logs, you&#39;ve provided no context.</p><p class=""><span class=""><br></span></p><p class=""><br></p>















</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 4:42 AM, Vladimir Getmanshchuk <span dir="ltr">&lt;<a href="mailto:vladget@gmail.com" target="_blank">vladget@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p>Looks like failure_causes do something wrong... </p><p>dialplan:</p><p>&lt;context name=&quot;default&quot;&gt;</p>
<p>  &lt;extension name=&quot;default&quot;&gt;</p>
<p>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^\+?(.*)$&quot;&gt;</p>
<p>      &lt;action application=&quot;set&quot; data=&quot;failure_causes=17&quot;/&gt; </p>
<p>       &lt;action application=&quot;bridge&quot; data=&quot;error/normal_circuit_congestion&quot;/&gt;</p>
<p>      &lt;action application=&quot;hangup&quot; data=&quot;${last_bridge_hangup_cause}&quot;/&gt;</p>
<p>    &lt;/condition&gt;</p>
<p>  &lt;/extension&gt;</p>
<p>&lt;/context&gt;</p><p><br></p><p>At sip:</p><p>SIP/2.0 480 Temporarily Unavailable.<br></p><p>Reason: Q.850;cause=16;text=&quot;NORMAL_CLEARING&quot;.<br></p><p>























</p><p>Content-Length: 0.</p><div>with commented &lt;!-- &lt;action application=&quot;set&quot; data=&quot;failure_causes=17&quot;/&gt; --&gt;</div><div><br></div><div>at sip 503 with 34 as expected...<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">-- <br><div>Yours sincerely,<br>Vladimir Getmanshchuk</div>
</font></span></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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>