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"><<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't think that'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's where the failure is occurring. For these dialplan rules, I think the only failure would be if your IVR (I assume that's was <a href="http://ash.pl" target="_blank">ash.pl</a> is) didn't answer.<br>
<br>
Like I said, not certain of this, maybe some else can chime in, but I think you'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 <<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a> <mailto:<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>>> wrote:<br>
<br>
I may be misunderstanding - but where are you causing it to ring a device?<br>
<br>
You've told it to internally answer the call, and then not do anything. There'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> <<a href="http://ash.pl" target="_blank">http://ash.pl</a>>, unclear if it would in term execute<br>
<a href="http://hook.pl" target="_blank">hook.pl</a> <<a href="http://hook.pl" target="_blank">http://hook.pl</a>> when that script finished (I don'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>
<include><br>
<extension name="public_did"><br>
<condition field="destination_number" expression="^(47673501)$"><br>
<action application="answer"/><br>
<action application="set" data="continue_on_fail=true"/><br></div>
<action application="set" data="api_hangup_hook=perl <a href="http://hook.pl" target="_blank">hook.pl</a> <<a href="http://hook.pl" target="_blank">http://hook.pl</a>> <<a href="http://hook.pl" target="_blank">http://hook.pl</a>>"/><br>
<br>
<action application="set" data="session_in_hangup_hook=_<u></u>_true"/><br>
<action application="perl" data="perl/<a href="http://ash.pl" target="_blank">ash.pl</a> <<a href="http://ash.pl" target="_blank">http://ash.pl</a>> <<a href="http://ash.pl" target="_blank">http://ash.pl</a>>"/><div class="im">
<br>
</condition><br>
</extension><br>
</include><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>
<<a href="http://hook.pl" target="_blank">http://hook.pl</a>> <<a href="http://hook.pl" target="_blank">http://hook.pl</a>><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> <mailto:<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>><div class="im"><br>
Missouri S&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&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>