<div>The dohangup would probably be more like:<br><br></div><div><div>&lt;context name=&quot;dohangup&quot;&gt;</div><div>    &lt;extension name=&quot;dohangup&quot;&gt;</div>
</div><div>        &lt;condition field=&quot;${bridge_hangup_cause}&quot; expression=&quot;^(<span style="font-family:sans-serif;font-size:13px;line-height:19px"><i>NO_ANSWER</i></span>)$&quot; break=&quot;on-true&quot;&gt;</div>


<div>            &lt;action application=&quot;hangup&quot; data=&quot;<span style="font-family:sans-serif;font-size:13px;line-height:19px"><i>NORMAL_CIRCUIT_CONGESTION</i></span>&quot;/&gt;</div>
<div><div>            &lt;anti-action application=&quot;hangup&quot; data=&quot;${bridge_hangup_cause}&quot;/&gt;</div><div>        &lt;/condition&gt;</div>
<div>    &lt;/extension&gt;</div><div>&lt;/context&gt;<br><br>-Steve<br><br></div></div><br><br><div class="gmail_quote">On 7 June 2011 17:53, Stephen Wilde <span dir="ltr">&lt;<a href="mailto:wstephen80@gmail.com">wstephen80@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think that something like this can work (not tested by me):<div><br></div><div><div>&lt;context name=&quot;default&quot;&gt;</div>

<div>    &lt;extension name=&quot;myextension&quot;&gt;</div></div><div>        &lt;condition&gt;</div><div class="im">
<div>            &lt;action application=&quot;bridge&quot; data=&quot;sofia/${Dialstring}&quot;/&gt;</div></div><div>            &lt;action application=&quot;transfer&quot; data=&quot;dohangup XML dohangup&quot;/&gt;</div>

<div>
        &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div>&lt;/context&gt;</div><div><br></div><div><div><div>&lt;context name=&quot;dohangup&quot;&gt;</div><div>    &lt;extension name=&quot;dohangup&quot;&gt;</div>


</div><div>        &lt;condition field=&quot;${bridge_hangup_cause}&quot; expression=&quot;^(<span style="font-family:sans-serif;font-size:13px;line-height:19px"><i>NO_ANSWER</i></span>)$&quot; break=&quot;on-true&quot;&gt;</div>


<div>            &lt;action application=&quot;hangup&quot; data=&quot;<span style="font-family:sans-serif;font-size:13px;line-height:19px"><i>NORMAL_CIRCUIT_CONGESTION</i></span>&quot;/&gt;</div>
<div><div>        &lt;/condition&gt;</div><div>        &lt;condition&gt;</div><div>            &lt;action application=&quot;hangup&quot; data=&quot;${bridge_hangup_cause}&quot;/&gt;</div><div>        &lt;/condition&gt;</div>


<div>    &lt;/extension&gt;</div><div>&lt;/context&gt;</div></div><div><br></div><div><br></div><div>Stephen</div><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jun 7, 2011 at 6:05 PM, awais nazir <span dir="ltr">&lt;<a href="mailto:awais-nazeer@hotmail.com" target="_blank">awais-nazeer@hotmail.com</a>&gt;</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></div><div class="h5">



<div>
Hi<br><br>I want to achieve a simple scenario , after attempting a bridge in my dialplan if I get cause code 480, it should be converted to 503 to originator.<br><br>&lt;action application=&quot;bridge&quot; data=&quot;sofia/${Dialstring}&quot;/&gt;<br>


&lt;!--If <pre>${hangup_cause} == &quot;480&quot; then ${hangup_cause}
=503<br>&gt;<br><br>Can somebody help here.<br></pre>
<pre> </pre>                                               </div>
<br></div></div>_______________________________________________<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" 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></blockquote></div><br></div>
<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></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>