Hi, It would be great to know if some got a solution for termination of python script in hangup_hook(). I used session.destroy() at the end of the script which clears the channel, but when i use the same in Hangup_hook(), it restarts the FS server. def hangup_hook(session, what): session.consoleLog("info","hangup hook for %s!!\n\n" % what) session.unsetInputCallback() session.hangup("NORMAL_CLEARING") #session.destroy() logs : [INFO] switch_cpp.cpp:1293 file location..../usr/local/freeswitch/storage/voicemail/78.wav [NOTICE] sofia.c:1012 Hangup sofia/external/14005@x.x.x [CS_EXECUTE] [NORMAL_CLEARING] [INFO] switch_cpp.cpp:1293 session:recordFile() = 0 freeswitch@fscli> show channels --shows the channel is active with CS_EXECUTE