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">&lt;<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>&gt;</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&#39; 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">         &lt;extension 
name=&quot;internal_test&quot;&gt;<br>                
&lt;condition field=&quot;${sip_to_uri}&quot; 
expression=&quot;^(999\d{10})@$${domain}$&quot;&gt;<br>                        
&lt;action inline=&quot;true&quot; application=&quot;set&quot; 
data=&quot;nibble_account=&quot;/&gt;<br>                        
&lt;action inline=&quot;true&quot; application=&quot;set&quot; 
data=&quot;nibble_rate=&quot;/&gt;<br>                        
&lt;action inline=&quot;true&quot; application=&quot;set&quot; 
data=&quot;dialed_extension=$1&quot;/&gt;<br>                
&lt;/condition&gt;<br>                
&lt;condition field=&quot;${from_admin_services}&quot; expression=&quot;^true$&quot; 
break=&quot;never&quot;&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;ignore_early_media=true&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;hangup_after_bridge=false&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;continue_on_fail=true&quot;/&gt;<br>                        
&lt;action application=&quot;bridge&quot; data=&quot;{sip_append_audio_sdp=&#39;a=rtpmap:0 
PCMU/8000&#39;,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}&quot;/&gt;<br>                
&lt;/condition&gt;<br>        
&lt;/extension&gt;<br>        &lt;extension 
name=&quot;internal_test_tools&quot;&gt;<br>                
&lt;condition field=&quot;${originate_disposition}&quot; expression=&quot;^SUBSCRIBER_ABSENT$&quot; 
break=&quot;on-true&quot;&gt;<br>                        
&lt;action application=&quot;phrase&quot; 
data=&quot;bad_ob_prepaid_dest&quot;/&gt;<br>                        
&lt;action application=&quot;transfer&quot; data=&quot;ob_prepaid_call XML 
features&quot;/&gt;<br>                        
&lt;action 
application=&quot;info&quot;/&gt;<br>                
&lt;/condition&gt;<br>                
&lt;condition field=&quot;${cond(expr(${originate_disposition} != NORMAL_CLEARING) ? 
YES : NO)}&quot; 
expression=&quot;^YES$&quot;/&gt;<br>                
&lt;condition field=&quot;${cond(expr(${originate_disposition} != SUBSCRIBER_ABSENT) 
? YES : NO)}&quot; 
expression=&quot;^YES$&quot;&gt;<br>                        
&lt;action 
application=&quot;ring_ready&quot;/&gt;<br>                        
&lt;action application=&quot;sleep&quot; 
data=&quot;2000&quot;/&gt;<br>                        
&lt;action 
application=&quot;answer&quot;/&gt;<br>                        
&lt;action application=&quot;sleep&quot; 
data=&quot;1400&quot;/&gt;<br>                        
&lt;action application=&quot;voicemail&quot; data=&quot;default $${domain} 
${dialed_extension}&quot;/&gt;<br>               
&lt;/condition&gt;<br>        
&lt;/extension&gt;<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>