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