You can’t use time.sleep. I solved it by using the loop listed below. # Non blocking delayLoop def delayLoop (delay, delta=100): start_time = time.time() while time.time()- start_time < delay: self.ep.libHandleEvents(delta) Any event that happens will be processed even if your main loop (calling this delayLoop) will be paused. libHandleEvents can return at any point so you can’t use that command as a predictable delay. / Mats From: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> On Behalf Of
Mike Taylor via pjsip Greetings, I have read about the threading issues with using Python but I don’t quite understand call then no seg fault. But with it I get a seg fault. … acc = Account(); acc.create(acfg); # Here we don't have anything else to do.. time.sleep(10); The preceding works causes a seg fault But the following does not and all works wonderfully: acc = Account(); acc.create(acfg); # Here we don't have anything else to do.. # time.sleep(10); Thanks, Mike This email may contain information which is privileged or protected against unauthorized disclosure or communication. If you are not the intended recipient, please notify the sender and delete this message and any attachments from your system without producing, distributing or retaining copies thereof or disclosing its contents to any other person. Telia Company processes emails and other files that may contain personal data in accordance with Telia Company’s Privacy Policy. |
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org