Hi,


I have tried by giving below Permission with my HTTAPI config file.​


    <permission name="execute-apps" value="true">
 <!-- default to "deny" or "allow" -->
 <application-list default="allow">
       <!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
       <application name="info"/>
<application name="play_and_get_digits"/>
       <application name="hangup"/>
 </application-list>
    </permission>

and from Web Application, I am sending request as:

<document type="xml/freeswitch-httapi">
    <params></params>
    <work>
        <execute application="play_and_get_digits" data="1 4 1 5000 # /ivr/8000/ivr-enter_number_to_remove_from_blacklist.wav '' foobar \d+" />
    </work>
</document>

but still its giving me error as  "[ERR] mod_httapi.c:840 Permission Denied!"​

However, its work fine with hangup application:

<document type="xml/freeswitch-httapi">
    <params></params>
    <work>
        <execute application="hangup"/>
    ​</work>
</document>

I feel, it must be some setting problem in config file only​. Please find my HTTAPI config file​ as an attachment and let me know if any changes required in this file.

Thanks,

Regards,
Manish​ Talwar

From: Michael Collins <msc@freeswitch.org>​
Sent: 16 September 2014 23:09
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Problem in getting digits value in Playback application
 

On Tue, Sep 16, 2014 at 9:46 AM, Manish Talwar <manish.talwar@zaristo.com> wrote:

​Hi,


Thanks for quick response, I have already try to use this "play_and_get_digits​" command.  


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 "[ERR] mod_httapi.c:840 Permission Denied!"


I have tried to reset Permission of "execute-apps" in httapi-conf.xml file, but still got same error.


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.

-MC