session.setHangupHook(hangup_hook) session.setInputCallback(input_callback) print('session object value is ', str(session))callerid = session.getVariable('caller_id_number') call_uuid = session.getVariable('uuid')phone_number = callerid[len(callerid)-10:]initial_greeting(session, phone_number, call_uuid)
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:______________________________HiI 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
____________________________________________________________ _____________
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