The originate string is like this:<div><br></div><div>api originate {voiceMessageID=$voiceMsgID,respreqd=$response_required,mobnum=$mobilenum,lang=$language,ignore_early_media=true,continue_on_fail=true}freetdm/1/a/$mobilenum 47673501 XML public</div>
<div><br></div><div><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 10:35 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>What does your originate string look like?<br></div>-MC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, May 26, 2013 at 10:49 PM, Ashish gautam <span dir="ltr">&lt;<a href="mailto:ashish@nms.co.in" target="_blank">ashish@nms.co.in</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 class="h5">Hi Nathan,<div><br></div><div>Even setting the <span style="color:rgb(34,34,34);font-size:12.727272033691406px;font-family:arial,sans-serif">api_hangup_hook=perl </span><a href="http://hook.pl/" style="color:rgb(17,85,204);font-size:12.727272033691406px;font-family:arial,sans-serif" target="_blank">hook.pl</a> in the originate string does not work. <a href="http://hook.pl" target="_blank">hook.pl</a> does not get executed on hangup. It has to be done some other way I guess.</div>


<div><br></div><div>Thanks.<div><div><br><br><div class="gmail_quote">On Fri, May 24, 2013 at 6:13 PM, Nathan Neulinger <span dir="ltr">&lt;<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don&#39;t think that&#39;s going to do what you want... (May be wrong.)<br>
<br>
I think that continue_on_fail is only going to apply to the rules for the received call on this extension, not the received call on the outgoing leg.<br>
<br>
i.e. there are no dialplan rules in effect for the outgoing call that you initiated, and that&#39;s where the failure is occurring. For these dialplan rules, I think the only failure would be if your IVR (I assume that&#39;s was <a href="http://ash.pl" target="_blank">ash.pl</a> is) didn&#39;t answer.<br>



<br>
Like I said, not certain of this, maybe some else can chime in, but I think you&#39;re going to have to handle that failure as a part of your originate on the outbound call. Something like putting<br>
<br>
        originate {api_hangup_hook=perl <a href="http://hook.pl" target="_blank">hook.pl</a>}sofia/.....<br>
<br>
Where you cause the call to take place.<br>
<br>
-- Nathan<div><br>
<br>
On 05/24/2013 07:37 AM, Ashish gautam wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
I am generating an outgoing call through mod_event_socket and then transferring it to this dialplan.<br>
<br></div><div>
On Fri, May 24, 2013 at 5:57 PM, Nathan Neulinger &lt;<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a> &lt;mailto:<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;&gt; wrote:<br>
<br>
    I may be misunderstanding - but where are you causing it to ring a device?<br>
<br>
    You&#39;ve told it to internally answer the call, and then not do anything.  There&#39;s no bridging to an actual extension.<br>
<br></div>
    Only thing I see that would happen is it running perl/<a href="http://ash.pl" target="_blank">ash.pl</a> &lt;<a href="http://ash.pl" target="_blank">http://ash.pl</a>&gt;, unclear if it would in term execute<br>
    <a href="http://hook.pl" target="_blank">hook.pl</a> &lt;<a href="http://hook.pl" target="_blank">http://hook.pl</a>&gt; when that script finished (I don&#39;t know what that behavior is expected to be).<div>
<br>
<br>
    -- Nathan<br>
<br>
<br>
    On 05/24/2013 07:17 AM, Ashish gautam wrote:<br>
<br>
        Hi,<br>
<br>
        I have a dialplan as follows:<br>
<br>
        &lt;include&gt;<br>
        &lt;extension name=&quot;public_did&quot;&gt;<br>
        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(47673501)$&quot;&gt;<br>
        &lt;action application=&quot;answer&quot;/&gt;<br>
        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br></div>
        &lt;action application=&quot;set&quot; data=&quot;api_hangup_hook=perl <a href="http://hook.pl" target="_blank">hook.pl</a> &lt;<a href="http://hook.pl" target="_blank">http://hook.pl</a>&gt; &lt;<a href="http://hook.pl" target="_blank">http://hook.pl</a>&gt;&quot;/&gt;<br>



<br>
        &lt;action application=&quot;set&quot; data=&quot;session_in_hangup_hook=_<u></u>_true&quot;/&gt;<br>
        &lt;action application=&quot;perl&quot; data=&quot;perl/<a href="http://ash.pl" target="_blank">ash.pl</a> &lt;<a href="http://ash.pl" target="_blank">http://ash.pl</a>&gt; &lt;<a href="http://ash.pl" target="_blank">http://ash.pl</a>&gt;&quot;/&gt;<div>


<br>
        &lt;/condition&gt;<br>
        &lt;/extension&gt;<br>
        &lt;/include&gt;<br>
<br>
        when the called party does not pick up the phone or is busy, the dialplan does not proceed and <a href="http://hook.pl" target="_blank">hook.pl</a><br></div>
        &lt;<a href="http://hook.pl" target="_blank">http://hook.pl</a>&gt; &lt;<a href="http://hook.pl" target="_blank">http://hook.pl</a>&gt;<div><br>
<br>
        does not get executed.<br>
<br>
        Please help<br>
        --<br>
        Ashish Gautam<br>
<br>
        IVR Developer<br>
<br>
        Nucleus Microsystems (Pvt.) Ltd.<br>
<br>
<br>
<br>
    --<br></div>
    ------------------------------<u></u>__----------------------------<u></u>--<br>
    Nathan Neulinger <a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a> &lt;mailto:<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;<div><br>
    Missouri S&amp;T Information Technology    <a href="tel:%28573%29%20612-1412" value="+15736121412" target="_blank">(573) 612-1412</a><br>
    System Administrator - Architect<br>
<br>
<br>
<br>
<br>
--<br>
Ashish Gautam<br>
<br>
IVR Developer<br>
<br>
Nucleus Microsystems (Pvt.) Ltd.<br>
<br>
Ph. 011 47574758<br>
</div></blockquote><div><div>
<br>
-- <br>
------------------------------<u></u>------------------------------<br>
Nathan Neulinger                       <a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a><br>
Missouri S&amp;T Information Technology    <a href="tel:%28573%29%20612-1412" value="+15736121412" target="_blank">(573) 612-1412</a><br>
System Administrator - Architect<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(0,0,102);font-family:georgia,serif">Ashish Gautam</span><br><font color="#000066" face="georgia, serif"><br>IVR Developer<br>


<br>Nucleus Microsystems (Pvt.) Ltd.<br><br>Ph. 011 47574758</font>
</div></div></div>
<br></div></div><div class="im">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<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></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><br clear="all"><div><br></div>-- <br><span style="color:rgb(0,0,102);font-family:georgia,serif">Ashish Gautam</span><br><font face="georgia, serif" color="#000066"><br>IVR Developer<br><br>Nucleus Microsystems (Pvt.) Ltd.<br>
<br>Ph. 011 47574758</font>
</div>