<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div apple-content-edited="true">
<div>I checked with hangup_after_bridge=true, but no change. I found out that&nbsp;</div><div><br></div><div>&lt;action application="set" data="continue_on_fail=false“/&gt;</div><div><br></div><div>does it correctly.</div><div><br></div><div>Thanks</div><div><br></div><div>Markus</div></div><div apple-content-edited="true"><div><br></div>

</div>
<br><div><div>Am 18.09.2014 um 14:59 schrieb Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Try with this before the bridge:<div><br></div><div>&lt;action application="set" data="hangup_after_bridge=true"/&gt;</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2014 12:23, mbo <span dir="ltr">&lt;<a href="mailto:mbodbg@gmx.net" target="_blank">mbodbg@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I’m originating a call from FREESWITCH1 to FREESWITCH2, which bridges the call via a gateway to a carrier.<br>
<br>
FREESWITCH1 -&gt; FREESWITCH2 -&gt; CARRIER<br>
<br>
Freeswitch2 only executes a simple dialplan like:<br>
<br>
&lt;extension name="bt"&gt;<br>
&nbsp; &lt;condition field="destination_number" expression="^(<a href="smb://+/d{5,20}">\\+\d{5,20}</a>)$"&gt;<br>
&nbsp; &nbsp; &lt;action application="bridge" data="sofia/gateway/bt/${destination_number}"/&gt;<br>
&nbsp; &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
<br>
When the destination is BUSY, I can see in the logs<br>
<br>
...<br>
[NOTICE] switch_core_state_machine.c:313 sofia/internal/XXXXXXXXXX has executed the last dialplan instruction, hanging up.<br>
[NOTICE] switch_core_state_machine.c:315 Hangup sofia/internal/XXXXXXXXXX [CS_EXECUTE] [NORMAL_CLEARING]<br>
…<br>
<br>
FREESWITCH2 hangs up with cause NORMAL_CLEARING after the bridge, and then sends<br>
<br>
...<br>
<br>
&nbsp;SIP/2.0 486 Busy Here<br>
&nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.154.100:5080;rport=5080;branch=z9hG4bK18gUcH38BXQ8H<br>
&nbsp; &nbsp;Max-Forwards: 65<br>
&nbsp; &nbsp;From: „XXXXXXXXXXXXX&gt;;tag=S4SS3j0HyUv2Q<br>
&nbsp; &nbsp;To: &lt;XXXXXXXXXXXXX&gt;;tag=B7XU8ZtQUDvrF<br>
&nbsp; &nbsp;Call-ID: b61b6f21-b9ab-1232-5abc-00163e6b3124<br>
&nbsp; &nbsp;CSeq: 65177338 INVITE<br>
&nbsp; &nbsp;User-Agent: FreeSWITCH-mod_sofia/1.4.6+git~20140603T193516Z~9479729340~64bit<br>
&nbsp; &nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
&nbsp; &nbsp;Supported: timer, path, replaces<br>
&nbsp; &nbsp;Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
&nbsp; &nbsp;Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br>
&nbsp; &nbsp;Content-Length: 0<br>
&nbsp; &nbsp;X-FS-Display-Name: Outbound Call<br>
&nbsp; &nbsp;X-FS-Display-Number: XXXXXXXXXXXX<br>
&nbsp; &nbsp;Remote-Party-ID: "Outbound Call“ &lt;XXXXXXXXXXXX&gt;;party=calling;privacy=off;screen=no<br>
…<br>
<br>
to FREESWITCH1. In the CDR on FREESWITCH1, the hangup cause for the call is NORMAL_CLEARING and not USER_BUSY.<br>
Does this really works as designed or shouldn’t it hangup with hangup cause „USER_BUSY" and then set "Reason: Q.850;cause=17;text=„USER_BUSY“" in the SIP/2.0 486 Busy Here message, which is sent to FREESWITCH1?<br>
<br>
<br>
<br>
<br>
<br>
<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-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.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></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://confluence.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org</blockquote></div><br></body></html>