<div dir="ltr">Brian,<div><br><div>I'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 "</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">". </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'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">"error/normal_circuit_</span><span style="font-size:13px;font-family:arial,sans-serif">congestion"...</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"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></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'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"><<a href="mailto:vladget@gmail.com" target="_blank">vladget@gmail.com</a>></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><context name="default"></p>
<p> <extension name="default"></p>
<p> <condition field="destination_number" expression="^\+?(.*)$"></p>
<p> <action application="set" data="failure_causes=17"/> </p>
<p> <action application="bridge" data="error/normal_circuit_congestion"/></p>
<p> <action application="hangup" data="${last_bridge_hangup_cause}"/></p>
<p> </condition></p>
<p> </extension></p>
<p></context></p><p><br></p><p>At sip:</p><p>SIP/2.0 480 Temporarily Unavailable.<br></p><p>Reason: Q.850;cause=16;text="NORMAL_CLEARING".<br></p><p>
</p><p>Content-Length: 0.</p><div>with commented <!-- <action application="set" data="failure_causes=17"/> --></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>