Hi Elf, I would suggest using Wireshark and comparing the UDP packet traces of a successful and unsuccessful call. Guessing it's the SIP provider or the modified script isn't handling a missing tag or two. Could it be a Russian unicode character somewhere in the username maybe?? (clutching at straws I know...) Cheers, Oliver 2009/1/28 Elf <elf2001 at gmail.com>: > Hello. I'm using python bindings to pjsip to make my own calling station. > I'm using sipnet.ru as SIP-provider to call to Russia numbers. > Sometimes all working fine, but sometimes (about 50% chance) my script > (slightly modified version of tutorials's script) freezes at > MyAccountCallback.wait() method. Enabling debug shows me following: > > > 14:31:12.034 sip_transport. Error processing 468 bytes packet from > UDP 212.53.40.40:5060 : PJSIP syntax error exception when parsing '' > header on line 7 col 24: > SIP/2.0 401 Authentication required > Via: SIP/2.0/UDP > 10.10.10.48:5080;rport=5080;branch=********************************************** > From: <sip:*******@sipnet.ru>;tag=5e33f54f-225c-4274-*******-************ > To: <sip:danikp at sipnet.ru>;tag=************** > Call-ID: f2fc18fd-3eca-4be1-b685-************************* > CSeq: 57058 REGISTER > WWW-Authenticate: NTLM > realm="etc.tario.ru",qop="auth",targetname="etc.tario.ru",opaque="********69-212.53.***.***" > Server: RTC/3.0 > Content-Length: 0 > > > -- end of packet. > > It's bug in library, not mine code, am I right? > > P.S. Is there pjsim bugtracker? I can't found one... > > > > -- > ---------------- > Best regards > Elf > mailto:elf2001 at gmail.com > > _______________________________________________ > 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 >