<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">On Sun, May 26, 2013 at 10:49 PM, Ashish gautam <span dir="ltr"><<a href="mailto:ashish@nms.co.in" target="_blank">ashish@nms.co.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 class="h5"><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><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 <<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>
<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>
<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><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><br>
Missouri S&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&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>_________________________________________________________________________<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"><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>
</div>