[Freeswitch-users] Freeswitch Crashes on Call Hangup of IVR Session using mod_python script
Deepika Yadav
deepikay at iiitd.ac.in
Sun Sep 17 11:51:22 UTC 2017
Hi,
I am facing an issue, in my python script whenever user hangs up Freeswitch
crashes with following logs:
7f290a7ee000-7f290a7ef000 r--p 0000d000 08:02 129175424
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.3
7f290a7ef000-7f290a7f0000 rw-p 0000e000 08:02 129175424
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.3
7f290a7f0000-7f290a834000 r-xp 00000000 08:02 129173227
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f290a834000-7f290aa34000 ---p 00044000 08:02 129173227
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f290aa34000-7f290aa35000 r--p 00044000 08:02 129173227
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f290aa35000-7f290aa37000 rw-p 00045000 08:02 129173227
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f290aa37000-7f290aa50000 r-xp 00000000 08:02 129172855
/usr/lib/x86_64-linux-gnu/librtmp.so.0
I am using version - 1.6.15~64bit
My Python Script looks something like this;
def hangup_hook(session, what, args=' '):
freeswitch.consoleLog("INFO", "hangup hook for '%s'\n" % what)
def handler(session, args):
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)
--
Regards,
Deepika
https://deepikay.wixsite.com/deepika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170917/d8405c50/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list