<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">&lt;<a href="mailto:manish.talwar@zaristo.com" target="_blank">manish.talwar@zaristo.com</a>&gt;</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">&lt;permission name=&quot;execute-apps&quot; value=&quot;true&quot;&gt;</span>
<div><span style="white-space:pre-wrap"></span> &lt;!-- default to &quot;deny&quot; or &quot;allow&quot; --&gt;</div>
<div><span style="white-space:pre-wrap"></span> &lt;application-list default=&quot;allow&quot;&gt;</div>
<div><span style="white-space:pre-wrap"></span>       &lt;!-- type attr can be &quot;deny&quot; or &quot;allow&quot; nothing defaults to opposite of the list default so allow in this case --&gt;</div>
<div><span style="white-space:pre-wrap"></span>       &lt;application name=&quot;info&quot;/&gt;</div>
<div><span style="white-space:pre-wrap"></span>&lt;application name=&quot;play_and_get_digits&quot;/&gt;<span style="white-space:pre-wrap">
</span></div>
<div><span style="white-space:pre-wrap"></span>       &lt;application name=&quot;hangup&quot;/&gt;</div>
<div><span style="white-space:pre-wrap"></span> &lt;/application-list&gt;</div>
<div>    &lt;/permission&gt;<br>
</div>
<div><br>
</div>
<div>and from Web Application, I am sending request as:<br>
</div>
<div><br>
</div>
<div>&lt;document type=&quot;xml/freeswitch-httapi&quot;&gt;</div>
<div>    &lt;params&gt;&lt;/params&gt;</div>
<div>    &lt;work&gt;</div>
<div>        &lt;execute application=&quot;play_and_get_digits&quot; data=&quot;1 4 1 5000 # /ivr/8000/ivr-enter_number_to_remove_from_blacklist.wav &#39;&#39; foobar \d+&quot; /&gt;</div>
<div>    &lt;/work&gt;</div>
<div>&lt;/document&gt;<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)">&quot;[ERR]
 mod_httapi.c:840 Permission Denied!&quot;</span>​<br>
</div>
<div><br>
</div>
<div>However, its work fine with hangup application:<br>
</div>
<div><br>
</div>
<div>&lt;document type=&quot;xml/freeswitch-httapi&quot;&gt;</div>
<div>    &lt;params&gt;&lt;/params&gt;</div>
<div>    &lt;work&gt;</div>
<div>        &lt;execute application=&quot;hangup&quot;/&gt;</div>
<div>    ​&lt;/work&gt;</div>
<div>&lt;/document&gt;<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 &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;​<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">
&lt;<a href="mailto:manish.talwar@zaristo.com" target="_blank">manish.talwar@zaristo.com</a>&gt;</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 &quot;play_and_get_digits​&quot; 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 &lt;extension&gt; tag in FreeSwitch file but while using it in Web Application with &quot;&lt;execute&gt;&quot; httapi command its throwing error as
<span style="color:rgb(255,0,0)">&quot;[ERR] mod_httapi.c:840 Permission Denied!&quot;</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 &quot;execute-apps&quot; 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 &quot;execute-apps&quot; 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>