<div dir="ltr">Brian,<div><br><div>I&#39;m really appreciated for your suggestions, but I familiar with sip cause mapping and this implementation in <span class="" id=":881.5" tabindex="-1" style="background:yellow">FS</span>.</div></div><div><br></div><div>So issue was in hangup... (or on error channels, depends on point of view)</div><div><br></div><div>After I set failure_cause to any value (except one which includes 34) it resets default pattern of failure causes (<span class="" id=":881.6" tabindex="-1" style="background:yellow">btw</span>. where is it in the <span class="" id=":881.7" tabindex="-1" style="background:yellow">FS</span> code?) which include 34. So <font face="arial, sans-serif">failure_cause not contain 34 and pass <span class="" id=":881.8" tabindex="-1" style="background:yellow">dialplan</span> executing after bridge to &quot;</font><span style="font-size:13px;font-family:arial,sans-serif">error/normal_circuit_</span><span style="font-size:13px;font-family:arial,sans-serif">congestion</span><span style="font-family:arial,sans-serif">&quot;. </span></div><div><span style="font-family:arial,sans-serif">After bridge executed, value of $</span>last_bridge_hangup_cause is empty (<span class="" id=":881.9" tabindex="-1" style="background:yellow">btw</span>. Why? I guess it should be NORMAL_CIRCUIT_CONGESTION)</div>















<div>After was turn application called hangup which was executed with empty argument value ($last_bridge_hangup_cause is empty).. So hangup returned 480 SIP with 16 Q850 (because it is default in case in case of cause is empty)</div><div><br></div><div>So I&#39;ve resolved issue with additional condition of $last_bridge_hangup_cause variable.</div><div><br></div><div>I guess FS should set variable last_bridge_hangup_cause and other hangup cause variables after execution of bridge to error channels like <span style="font-size:13px;font-family:arial,sans-serif">&quot;error/normal_circuit_</span><span style="font-size:13px;font-family:arial,sans-serif">congestion&quot;...</span></div><div><br></div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 3:50 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</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><span>Here is some data that may help you understand the cause code mappings in SIP:</span></p><p><span>map QSIG cause codes to SIP from RFC4497 section 8.4.1</span></p><p><span>see </span>mod_sofia.c: hangup_cause_to_sip</p><p>







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







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















</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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><font color="#888888"><br><br></font></span></div><span><font color="#888888">-- <br><div>Yours sincerely,<br>Vladimir Getmanshchuk</div>
</font></span></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" 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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><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><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>
<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">Yours sincerely,<br>Vladimir Getmanshchuk</div>
</div>