<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body 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>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 class="Apple-tab-span" style="white-space:pre"></span> <!-- default to "deny" or "allow" --></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span> <application-list default="allow"></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span> <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case --></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span> <application name="info"/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><application name="play_and_get_digits"/><span class="Apple-tab-span" style="white-space:pre">
</span></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span> <application name="hangup"/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></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 tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Michael Collins <msc@freeswitch.org>​<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>
</body>
</html>