<div>The dohangup would probably be more like:<br><br></div><div><div><context name="dohangup"></div><div> <extension name="dohangup"></div>
</div><div> <condition field="${bridge_hangup_cause}" expression="^(<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 style="font-family:sans-serif;font-size:13px;line-height:19px"><i>NORMAL_CIRCUIT_CONGESTION</i></span>"/></div>
<div><div> <anti-action application="hangup" data="${bridge_hangup_cause}"/></div><div> </condition></div>
<div> </extension></div><div></context><br><br>-Steve<br><br></div></div><br><br><div class="gmail_quote">On 7 June 2011 17:53, Stephen Wilde <span dir="ltr"><<a href="mailto:wstephen80@gmail.com">wstephen80@gmail.com</a>></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><context name="default"></div>
<div> <extension name="myextension"></div></div><div> <condition></div><div class="im">
<div> <action application="bridge" data="sofia/${Dialstring}"/></div></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 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 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"><div><div></div><div class="h5">On Tue, Jun 7, 2011 at 6:05 PM, awais nazir <span dir="ltr"><<a href="mailto:awais-nazeer@hotmail.com" target="_blank">awais-nazeer@hotmail.com</a>></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><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></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>