How about the trick that Jay Binks added for scenarios not unlike this one?<div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#transfer_on_fail">http://wiki.freeswitch.org/wiki/Channel_Variables#transfer_on_fail</a></div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 1:33 PM, Madovsky <span dir="ltr"><<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff">
<div><font size="2">Afer hours of test I didn' succeed how</font></div>
<div><font size="2">to catch the result of originate_disposition</font></div>
<div><font size="2"></font> </div>
<div><font size="2">--------</font></div>
<div><font size="2"></font> </div>
<div><font size="2">I have this extensions in my dialplan</font></div>
<div><font size="2"></font> </div>
<div><font size="2"> <extension
name="internal_test"><br>
<condition field="${sip_to_uri}"
expression="^(999\d{10})@$${domain}$"><br>
<action inline="true" application="set"
data="nibble_account="/><br>
<action inline="true" application="set"
data="nibble_rate="/><br>
<action inline="true" application="set"
data="dialed_extension=$1"/><br>
</condition><br>
<condition field="${from_admin_services}" expression="^true$"
break="never"><br>
<action application="set"
data="ignore_early_media=true"/><br>
<action application="set"
data="hangup_after_bridge=false"/><br>
<action application="set"
data="continue_on_fail=true"/><br>
<action application="bridge" data="{sip_append_audio_sdp='a=rtpmap:0
PCMU/8000',sip_invite_domain=${sip_from_host},nibble_account=,nibble_rate=,origination_caller_id_name=${caller_id_name},origination_caller_id_number=${caller_id_number,}}user/${dialed_extension}"/><br>
</condition><br>
</extension><br> <extension
name="internal_test_tools"><br>
<condition field="${originate_disposition}" expression="^SUBSCRIBER_ABSENT$"
break="on-true"><br>
<action application="phrase"
data="bad_ob_prepaid_dest"/><br>
<action application="transfer" data="ob_prepaid_call XML
features"/><br>
<action
application="info"/><br>
</condition><br>
<condition field="${cond(expr(${originate_disposition} != NORMAL_CLEARING) ?
YES : NO)}"
expression="^YES$"/><br>
<condition field="${cond(expr(${originate_disposition} != SUBSCRIBER_ABSENT)
? YES : NO)}"
expression="^YES$"><br>
<action
application="ring_ready"/><br>
<action application="sleep"
data="2000"/><br>
<action
application="answer"/><br>
<action application="sleep"
data="1400"/><br>
<action application="voicemail" data="default $${domain}
${dialed_extension}"/><br>
</condition><br>
</extension><br></font></div>
<div><font size="2"></font> </div>
<div><font size="2">-----------</font></div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div>
<div><font size="2">I tried to merge it in one extension without success
also.</font></div>
<div><font size="2">where is the trick ? :)</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thanks</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Franck</font></div>
<div><font size="2"> </font></div></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>