[Freeswitch-users] Send A-leg response code based on B-leg's response code

E. Schmidbauer eschmidbauer at gmail.com
Fri Jun 12 22:08:59 MSD 2015

We are trying to send a specific response code back to A-leg based on
B-leg's response code.
We need to send a 503 to A-leg if B-leg returns a 480
We have the following setup in the A-leg dialplan before the bridge
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="sip_ignore_remote_cause=true"/>
<action application="set" data="proto_specific_hangup_cause=sip:503"/>
<action application="bridge" data="sofia/internal/sip:blah at blahblah.net:5060
The b-leg returns 480 and then FS returns a 480 back to A-leg

We cannot use the respond app in this case because of how our dialplan is
>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.

Is this a bug or am I misunderstanding those channel variables?
Is there anyway to send a response code using channel variables (not using
respond app)?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150612/c69ac4c1/attachment-0001.html 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list