<div dir="ltr">Hi,<div><span style="font-size:16.3636px">It would be great to know if some got a solution for termination of python script in hangup_hook().</span><br></div><div><span style="font-size:16.3636px">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.</span></div><div><div>def hangup_hook(session, what):</div><div>   session.consoleLog("info","hangup hook for %s!!\n\n" % what)</div><div>   session.unsetInputCallback()</div><div>   session.hangup("NORMAL_CLEARING")</div><div>   #session.destroy()</div></div><div>logs :</div><div><div>[INFO] switch_cpp.cpp:1293 file location..../usr/local/freeswitch/storage/voicemail/78.wav</div><div>[NOTICE] sofia.c:1012 Hangup sofia/external/14005@x.x.x [CS_EXECUTE] [NORMAL_CLEARING]</div><div>[INFO] switch_cpp.cpp:1293 session:recordFile() = 0</div><div>freeswitch@fscli> show channels </div><div>--shows the channel is active with CS_EXECUTE</div><div><br></div></div></div>