Hello Deepika, 

As per my experience playandGetDigits is channel  variable so we can use it with session only. I don't think it will work with ESL. You can use mod_perl for same..

On Thu, 14 Sep 2017 at 9:10 PM, Deepika Yadav <deepikay@iiitd.ac.in> wrote:
Hi

I need to originate calls to Indian mobile numbers from my python ESL script. I used to use service from a company for sending calls from Freeswitch to GSM network for which I set up external SIP profile. 

But recently I bought my own GOIP hardware, though I am able to make calls but DTMF events are not getting captured on Freeswitch, API like playandGetDigits does not work and there are no logs on Freeswitch console.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org