<div dir="ltr"><div><div><div>I run a python script that keeps on running until user presses * in while loop and it works fine with *.<br><br>def handler(session, args):<br>        session.answer()<br>        digits=session.read(1, 1, "<a href="http://localhost/dtmf/dtmf.wav">http://localhost/dtmf/dtmf.wav</a>", 300, "#")<br>
        session.execute("curl","<a href="http://127.0.0.1/info.php">http://127.0.0.1/info.php</a> post lang=%s" %digits)<br>        cur=session.getVariable("curl_response_data")<br>        rec='';<br>
        if (digits!='0'):<br>                while True:<br>                        session.execute("curl","<a href="http://127.0.0.1/info2.php">http://127.0.0.1/info2.php</a> post currentshout=%s" %rec)<br>
                        rec=session.getVariable("curl_response_data")<br>                        ex=session.read(1, 1, "<a href="http://localhost/reciters//%s.mp3">http://localhost/reciters//%s.mp3</a>" %rec, 1, "#")<br>
                        if (ex=='*'):<br>                                break<br>                        ex=session.read(1, 1, "<a href="http://localhost/languages/%s/%s.mp3">http://localhost/languages/%s/%s.mp3</a>" %(cur,rec), 1, "#")<br>
                        if (ex=='*'):<br>                                 break<br><br></div>But in while loop ig user hangup call(channel hangup) i keep getting this error.<br><br></div>"channel is hangup and curl does not have zombie exec flag."<br>
<br></div><div>how can i terminate session on channel hangup.?<br></div><div><br></div>Any help in this regard would be appreciated.<br><div><div><br></div><div>Thanks<br></div></div></div>