cloudwebrtc / go-sip-ua

Go SIP UA library for client/b2bua
Apache License 2.0
215 stars 84 forks source link

Use From tag for matching session on BYE request #97

Closed braams closed 5 months ago

braams commented 1 year ago

Hi! Thanks for this useful project. I am facing the problem of not being able to handle session termination when receiving a BYE request. I found that the CallId + From tag pair is used everywhere to identify a session, but only when processing a BYE request the CallId + To tag pair is used. So it becomes absolutely impossible to associate a BYE request with a session.

This behavior was introduced in https://github.com/cloudwebrtc/go-sip-ua/pull/95 Maybe @UserAd has some comments on this?