<br><br><div class="gmail_quote">On Mon, Jan 11, 2010 at 4:18 AM, Ahmed Naji <span dir="ltr">&lt;<a href="mailto:a.alalousi@gmail.com">a.alalousi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<br><br>I posted a thread re the subject but didn&#39;t get any joy, so perhaps second time lucky.<br><br>I need to rewrite a couple of hangup causes to mean NORMAL_CONGESTION and no matter which variables I set, this isn&#39;t happening. The idea is to control what codes are returned to an end point after a successful bridge, as well as deal with what codes are returned if the bridge is unsuccessful (e.g. user_busy, originator_cancel ...etc).<br>

<br>I&#39;ve had limited success by setting hangup_after_bridge=false then bridging to error/&lt;required_code&gt;. This, however only works when the B-leg terminates the call after a successful answer. Any other codes are not rewritten.<br>

<br>I&#39;ve also tried playing with the bridge_hangup_code and hangup_code variables prior and after bridging, still no joy. I have also set sip_ignore_remote_cause=true prior to entering the bridge, as well explicitly in vars.xml.<br>

<br>By the way, I&#39;m running in proxy-media mode, but I did try it with bypass-media as well. Same symptoms, same behaviour.<br><br>Any help with this would be highly appreciated.<br><br></blockquote><div>Well, I do know that when you do a hangup in the dialplan you can pass an optional cause as well:<br>
&lt;action application=&quot;hangup&quot; data=&quot;USER_BUSY&quot;/&gt;<br>If you are doing the hanging up then you have a fair amount of control...<br>-MC<br></div></div><br>