sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.44k stars 438 forks source link

SipRegistrationUserAgent not responding to OPTIONS requests from server #1089

Open mnik17 opened 6 months ago

mnik17 commented 6 months ago

Hello @sipsorcery,

I noticed that after the initial registration Asterisk is sending (by default) OPTIONS requests to check if the endpoint is still there. However, the SIPRegistrationUserAgent is not responding to these requests. Consequently, the extension in Asterisk is marked as unavailable and it is not possible to call it.

I checked the Wireshark capture and the port seems to be correct. I don't know if it's a problem, but I'm using the same SIPTransport for the SIPUserAgent and the SIPRegistrationUserAgent.

Then I checked the documentation and the code of the SIPRegistrationUserAgent and I didn't notice any method taking care of that. Is this really the case or am I missing something?