Hello! I have a problem with unregistring properly from SIP server. To unregister from SIP server pjsip send REGISTER message with expire=0 attribute. In my case SIP server wants auth info and sends back 401 error code. But pjsip ignores this error code and thinking that unregistration completed. SIP server expected another REGISTER message with auth/Digest info and only after that unregistering will be finished on server. Without auth/Digest info session becomes ghostly on SIP server and causing problems. Can anyone help me with with issue? P.S. I found similar question in the maillist arhive - http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2012-December/015573.html ============= Begin of quote ============= Hi It seems that I cannot manage to make pjsip log off properly on my server (freeswitch here) After having looked within SIP captures and code, it looks like pjsip loggs of by updating registration info with a REGISTER message, but with an Expire attribute set to 0 (seconds), thus letting know the server the session expires immediately. However, the server answers a 401 Unauthorized message (and there is no auth/Digest info in the register header). Therefore the session expiration is not modified on the server and the session becomes ghost (since the client has left) I have noticed that testing with another client (Qutecom, which use oSIP library), it also sends a REGISTER/Expire=0 message and receives a 401 unauthorized, but then it send another REGISTER/Expire=0 message, but with this time the auth/Digest info, which is finally accepted by the server. is this any known issue with PJSIP ? (or perhaps more with my server) ============= End of quote ============= But this mail has no answer... -- С уважением, Александр Анцев _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org