I think that something like this can work (not tested by me):<div><br></div><div><div><context name="default"></div><div> <extension name="myextension"></div></div><div> <condition></div>
<div> <action application="bridge" data="sofia/${Dialstring}"/></div><div> <action application="transfer" data="dohangup XML dohangup"/></div><div>
</condition></div><div> </extension></div><div></context></div><div><br></div><div><div><div><context name="dohangup"></div><div> <extension name="dohangup"></div>
</div><div> <condition field="${bridge_hangup_cause}" expression="^(<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><i>NO_ANSWER</i></span>)$" break="on-true"></div>
<div> <action application="hangup" data="<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><i>NORMAL_CIRCUIT_CONGESTION</i></span>"/></div>
<div><div> </condition></div><div> <condition></div><div> <action application="hangup" data="${bridge_hangup_cause}"/></div><div> </condition></div>
<div> </extension></div><div></context></div></div><div><br></div><div><br></div><div>Stephen</div><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 6:05 PM, awais nazir <span dir="ltr"><<a href="mailto:awais-nazeer@hotmail.com">awais-nazeer@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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><action application="bridge" data="sofia/${Dialstring}"/><br>
<!--If <pre>${hangup_cause} == "480" then ${hangup_cause}
=503<br>><br><br>Can somebody help here.<br></pre>
<pre> </pre>                                            </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>