<div dir="ltr">Thanks!<div><span style="font-size:12.8000001907349px"><action application="set" data="last_bridge_proto_</span><span style="font-size:12.8000001907349px">specific_hangup_cause=sip:503"</span><span style="font-size:12.8000001907349px">/></span><br></div><div><span style="font-size:12.8000001907349px">^^ Was what I needed to get it working</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 12, 2015 at 3:03 PM, Ítalo Rossi <span dir="ltr"><<a href="mailto:italorossib@gmail.com" target="_blank">italorossib@gmail.com</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"><div><div style="font-size:12.8000001907349px"><div><span style="font-size:small">proto_specific_hangup_cause was prefixed with last_bridge_, so:</span><span style="font-size:12.8000001907349px"><br></span></div><span class=""><div><span style="font-size:small"><br></span></div><div><span style="font-size:12.8000001907349px"><action application="set" data="continue_on_fail=true"/></span><br></div><div><action application="set" data="hangup_after_bridge=true"/></div></span></div><span class=""><div style="font-size:12.8000001907349px"><action application="bridge" data="sofia/internal/<a href="http://sip:blah@blahblah.net:5060/" target="_blank">sip:blah@blahblah.net:5060</a>"/></div></span></div><div><action application="set" data="last_bridge_proto_specific_hangup_cause=sip:503"/></div><div><action application="hangup"/></div><div><br></div><div>Also, it'll work only if you remove <span style="font-size:12.8000001907349px">sip_ignore_remote_cause=</span><span style="font-size:12.8000001907349px">true.</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jun 12, 2015 at 3:08 PM, E. Schmidbauer <span dir="ltr"><<a href="mailto:eschmidbauer@gmail.com" target="_blank">eschmidbauer@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">Hello,<div>We are trying to send a specific response code back to A-leg based on B-leg's response code.</div><div>We need to send a 503 to A-leg if B-leg returns a 480</div><div>We have the following setup in the A-leg dialplan before the bridge</div><div><div>...</div><div><action application="set" data="continue_on_fail=true"/></div><div><action application="set" data="hangup_after_bridge=true"/></div><div><action application="set" data="sip_ignore_remote_cause=true"/></div><div><action application="set" data="proto_specific_hangup_cause=sip:503"/></div></div><div><action application="bridge" data="sofia/internal/<a href="http://sip:blah@blahblah.net:5060" target="_blank">sip:blah@blahblah.net:5060</a>"/><br></div><div>....</div><div>The b-leg returns 480 and then FS returns a 480 back to A-leg</div><div><br></div><div>We cannot use the respond app in this case because of how our dialplan is generated.</div><div>From what I read on confluence <action application="set" data="sip_ignore_remote_cause=true"/> and <action application="set" data="proto_specific_hangup_cause=sip:503"/> should accomplish what i need here, but it does not seem to work.</div><div><br></div><div>Is this a bug or am I misunderstanding those channel variables?<br>Is there anyway to send a response code using channel variables (not using respond app)?<br><br>Thanks,</div><div>Emmanuel</div><div><br></div></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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Ítalo Rossi<br></div></div>
</font></span></div>
<br>_______________________________________________<br>
Freeswitch-docs mailing list<br>
<a href="mailto:Freeswitch-docs@lists.freeswitch.org">Freeswitch-docs@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs</a><br>
<br></blockquote></div><br></div>