<div dir="ltr"><div>I think what you did was set the default to allow and everything you listed underneath became denied. Try setting the default back to deny and see if it works as expected.<br></div>-MC<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 7:28 AM, Manish Talwar <span dir="ltr"><<a href="mailto:manish.talwar@zaristo.com" target="_blank">manish.talwar@zaristo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>Please revert me about Permission setting ASAP.<br>
</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<p>Manish Talwar<br>
</p>
<p><br>
</p>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Manish Talwar<br>
<b>Sent:</b> 17 September 2014 10:59<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> RE: [Freeswitch-users] Problem in getting digits value in Playback application</font>
<div> </div>
</div><div><div class="h5">
<div>
<p>Hi,<br>
</p>
<p><br>
</p>
<p>I have tried by giving below Permission <span style="color:rgb(33,33,33);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">with </span><span style="color:rgb(33,33,33);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">my HTT</span><span style="color:rgb(33,33,33);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">API
config file.</span><br>
</p>
<p><br>
</p>
<span style="font-size:12pt"> </span><span style="font-size:12pt"><permission name="execute-apps" value="true"></span>
<div><span style="white-space:pre-wrap"></span> <!-- default to "deny" or "allow" --></div>
<div><span style="white-space:pre-wrap"></span> <application-list default="allow"></div>
<div><span style="white-space:pre-wrap"></span> <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case --></div>
<div><span style="white-space:pre-wrap"></span> <application name="info"/></div>
<div><span style="white-space:pre-wrap"></span><application name="play_and_get_digits"/><span style="white-space:pre-wrap">
</span></div>
<div><span style="white-space:pre-wrap"></span> <application name="hangup"/></div>
<div><span style="white-space:pre-wrap"></span> </application-list></div>
<div> </permission><br>
</div>
<div><br>
</div>
<div>and from Web Application, I am sending request as:<br>
</div>
<div><br>
</div>
<div><document type="xml/freeswitch-httapi"></div>
<div> <params></params></div>
<div> <work></div>
<div> <execute application="play_and_get_digits" data="1 4 1 5000 # /ivr/8000/ivr-enter_number_to_remove_from_blacklist.wav '' foobar \d+" /></div>
<div> </work></div>
<div></document><br>
</div>
<div><br>
</div>
<div>but still its giving me error as <span style="font-family:Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> </span><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px;color:rgb(255,0,0);background-color:rgb(255,255,255)">"[ERR]
mod_httapi.c:840 Permission Denied!"</span><br>
</div>
<div><br>
</div>
<div>However, its work fine with hangup application:<br>
</div>
<div><br>
</div>
<div><document type="xml/freeswitch-httapi"></div>
<div> <params></params></div>
<div> <work></div>
<div> <execute application="hangup"/></div>
<div> </work></div>
<div></document><br>
</div>
<div><br>
</div>
<div>I feel, it must be some setting problem in config file only. Please find my <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;color:rgb(33,33,33);background-color:rgb(255,255,255)">HTT</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;color:rgb(33,33,33);background-color:rgb(255,255,255)">API
config file</span> as an attachment and let me know if any changes required in this file.<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div><br>
</div>
<div>Regards,<br>
</div>
<div>Manish Talwar<br>
</div>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>><br>
<b>Sent:</b> 16 September 2014 23:09<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Problem in getting digits value in Playback application</font>
<div> <br>
</div>
</div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">On Tue, Sep 16, 2014 at 9:46 AM, Manish Talwar <span dir="ltr">
<<a href="mailto:manish.talwar@zaristo.com" target="_blank">manish.talwar@zaristo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="font-size:10pt"><span style="font-family:Arial,Helvetica,sans-serif">Hi,</span><br style="font-family:Arial,Helvetica,sans-serif">
</span></p>
<p><br style="font-family:Arial,Helvetica,sans-serif;font-size:10pt">
</p>
<p><span style="font-size:10pt"><span style="font-family:Arial,Helvetica,sans-serif">Thanks for quick response, I have already try to use this "play_and_get_digits" command. </span><br style="font-family:Arial,Helvetica,sans-serif">
</span></p>
<p><br style="font-family:Arial,Helvetica,sans-serif;font-size:10pt">
</p>
<p><span style="font-size:10pt"><span style="font-family:Arial,Helvetica,sans-serif">Its working fine when I use this as a dialplan <extension> tag in FreeSwitch file but while using it in Web Application with "<execute>" httapi command its throwing error as
<span style="color:rgb(255,0,0)">"[ERR] mod_httapi.c:840 Permission Denied!"</span></span><br style="font-family:Arial,Helvetica,sans-serif">
</span></p>
<p><br style="font-family:Arial,Helvetica,sans-serif;font-size:10pt">
</p>
<p><span style="font-size:10pt"><span style="font-family:Arial,Helvetica,sans-serif">I have tried to reset Permission of "execute-apps" in httapi-conf.xml file, but still got same error.</span><br style="font-family:Arial,Helvetica,sans-serif">
</span></p>
<a href="http://www.freeswitchsolutions.com" target="_blank"></a><br>
</div>
</blockquote>
<div>This is almost certainly a permissions issue with your HTTAPI config file. What do you have in your "execute-apps" section? The default is to deny and then explicitly allow only the items you specify. FYI, this is covered quite thoroughly in the FreeSWITCH
1.2 book on pages 277-280.<br>
<br>
</div>
<div>-MC<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div></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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></blockquote></div><br></div>