Hi Nathan,<div><br></div><div>Even setting the <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)">api_hangup_hook=perl </span><a href="http://hook.pl/" target="_blank" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)">hook.pl</a> in the originate string does not work. <a href="http://hook.pl">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.<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 class="im"><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 class="im">
I am generating an outgoing call through mod_event_socket and then transferring it to this dialplan.<br>
<br></div><div class="im">
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 class="im">
<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 class="im">
<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 class="im"><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 class="im"><br>
    Missouri S&amp;T Information Technology    (573) 612-1412<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 class="HOEnZb"><div class="h5">
<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    (573) 612-1412<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 face="georgia, serif" color="#000066"><br>IVR Developer<br>
<br>Nucleus Microsystems (Pvt.) Ltd.<br><br>Ph. 011 47574758</font>
</div>