Hi Benny, I also do not have any idea what caused the crash but I think I finally found the workaround, defining SWIG -DSWIG_NO_EXPORT_ITERATOR_METHODS. Could you try it, please? pjsip-apps/src/swig/python/Makefile:25 swig $(SWIG_FLAGS) -python -threads -DSWIG_NO_EXPORT_ITERATOR_METHODS -o pjsua2_wrap.cpp ../pjsua2.i The -DSWIG_NO_EXPORT_ITERATOR_METHODS would fit better to SWIG_FLAGS variable. Cheers, - Vali Dne 13.3.2014 10:23, Benny Prijono napsal(a): > Hi, > > Unfortunately the workaround doesn't work for me (my app is pygui), I > still get the crash. Right now I'm out of ideas about what's the cause > of this. Yes, it would be very handy if it works. > > Re: mailing list problem, there's no interval restriction. I think > that's probably just a glitch in our provider. > > Best regards, > Benny > > > On Thu, Mar 13, 2014 at 2:09 AM, Tom?? Valenta <vali at kamarad.cz > <mailto:vali at kamarad.cz>> wrote: > > Hi, > > merging the discussion with "Threading in Python PJSUA2". > > The workaround is to use > > for i in range(0, len(info.media)): > mi = info.media[i] > > instead of > > for mi in info.media: > > Making the Python wrapper with -threads is very handy otherwise. > Without it, writing a simple console application that does some > initialization and then reacts on events until Enter is pressed (by > sys.stdin.readline()) is possible only by making all PJ calls > (including libCreate and polling) from an extra thread. You cannot > use just a thread for libRegisterWorkerThread(), it blocks console > I/O somehow. > > Best regards, > Vali > > > PS. Often I have problems posting to the list -- is there an > interval I have to wait between posts? > > Reporting-MTA: dns; gmmr7.centrum.cz <http://gmmr7.centrum.cz> > X-Postfix-Queue-ID: 8EA358039ACC > X-Postfix-Sender: rfc822; vali at kamarad.cz <mailto:vali at kamarad.cz> > Arrival-Date: Sun, 9 Mar 2014 16:40:05 +0100 (CET) > > Final-Recipient: rfc822; pjsip at lists.pjsip.org > <mailto:pjsip at lists.pjsip.org> > Original-Recipient: rfc822;pjsip at lists.pjsip.org > <mailto:rfc822%3Bpjsip at lists.pjsip.org> > Action: failed > Status: 4.4.2 > Diagnostic-Code: X-Postfix; conversation with lists.pjsip.org > <http://lists.pjsip.org>[192.151.138.__19] timed out while sending > RCPT TO > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >