<span style="font-family: courier new,monospace;">Here you go:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><condition field="destination_number" expression="^(?:5824)(44(1|2)\d+)$" break="on-true"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="bypass_media=false"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="prpoxy_media=false"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="disable_q850_reason=true"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="hangup_after_bridge=false"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="sip_ignore_remote_cause=true"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action application="bridge" data="sofia/gateway/<a href="http://sip.xx.xx.com/$1">sip.xx.xx.com/$1</a>"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="bridge_hangup_cause=NORMAL_CIRCUIT_CONGESTION"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action inline="true" application="set" data="hangup_cause=NORMAL_CIRCUIT_CONGESTION"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action application="bridge" data="error/normal_circuit_congestion"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action application="hangup" data="NORMAL_CIRCUIT_CONGESTION"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></condition></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">As you can see, I am trying to rewrite the hangup codes in a multitude of ways and places, but still exhibit the same behaviour.</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Any help appreciated.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Regards,</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Ahmed.</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><div style="font-family: courier new,monospace;" class="gmail_quote">2010/1/12 Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Can you show us the dialplan extension you're trying?<br>
<br>
Thanks,<br>
-Steve<br>
<br>
2010/1/12 Ahmed Naji <<a href="mailto:a.alalousi@gmail.com">a.alalousi@gmail.com</a>>:<br>
<div><div class="h5">> Hi Michael,<br>
><br>
> This is exactly what I'm doing, but it's just not happening.<br>
><br>
> Thanks,<br>
><br>
> Ahmed.<br>
><br>
><br>
> 2010/1/12 Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>
>><br>
>><br>
>> On Mon, Jan 11, 2010 at 4:18 AM, Ahmed Naji <<a href="mailto:a.alalousi@gmail.com">a.alalousi@gmail.com</a>> wrote:<br>
>>><br>
>>> Dear All,<br>
>>><br>
>>> I posted a thread re the subject but didn't get any joy, so perhaps<br>
>>> second time lucky.<br>
>>><br>
>>> I need to rewrite a couple of hangup causes to mean NORMAL_CONGESTION and<br>
>>> no matter which variables I set, this isn't happening. The idea is to<br>
>>> control what codes are returned to an end point after a successful bridge,<br>
>>> as well as deal with what codes are returned if the bridge is unsuccessful<br>
>>> (e.g. user_busy, originator_cancel ...etc).<br>
>>><br>
>>> I've had limited success by setting hangup_after_bridge=false then<br>
>>> bridging to error/<required_code>. This, however only works when the B-leg<br>
>>> terminates the call after a successful answer. Any other codes are not<br>
>>> rewritten.<br>
>>><br>
>>> I've also tried playing with the bridge_hangup_code and hangup_code<br>
>>> variables prior and after bridging, still no joy. I have also set<br>
>>> sip_ignore_remote_cause=true prior to entering the bridge, as well<br>
>>> explicitly in vars.xml.<br>
>>><br>
>>> By the way, I'm running in proxy-media mode, but I did try it with<br>
>>> bypass-media as well. Same symptoms, same behaviour.<br>
>>><br>
>>> Any help with this would be highly appreciated.<br>
>>><br>
>> Well, I do know that when you do a hangup in the dialplan you can pass an<br>
>> optional cause as well:<br>
>> <action application="hangup" data="USER_BUSY"/><br>
>> If you are doing the hanging up then you have a fair amount of control...<br>
>> -MC<br>
>><br>
>><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>
>><br>
><br>
><br>
><br>
> --<br>
> Ahmed Naji<br>
><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>
><br>
><br>
<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>
</div></div></blockquote></div><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;" clear="all"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Ahmed Naji</span><br style="font-family: courier new,monospace;">