ladendirekt / pjsip4net

A wrapper library exposing the pjsip library to the .NET world in a OO-friendly way.
71 stars 42 forks source link

Registration stuck at "In Progress" #105

Open rndthoughts opened 5 years ago

rndthoughts commented 5 years ago

Occasionally when registering a SIP account, the Account State will change to "In Progress" and then timeout. The internet connection is up and the server is reachable by other users on the same network. Repeated attempts to connect suffer the same problem. Eventually, after not running for a period of 30 mins or so they will be able to connect.

Is there a requirement to "Unregister" in this case - we are already doing that when the application exits? Or anything else that needs to be done to "unblock" the user? If the user starts another client such as "X-Lite" they connect immediately.

bkraut commented 4 years ago

Maybe this is connected With Unregister. If you Register with AccountManager - AccountStateChanged Event is fired. But when you call Unregister on an Account no AccountStateChanged Event is fired. If you Register again, the user is registered twice. This of course can lead to unresponsive system.