Closed chumvan closed 1 year ago
bye, err := sip.NewRequestBuilder().
SetMethod("BYE").
SetContact(contact).
SetFrom(from).
SetTo(to).
SetCallID(callID).
SetUserAgent(userAgent).
SetBody("").
Build()
if err != nil {
// ...
}
if err := s.Send(bye); err != nil {
// ...
}
Thank you, @oogali. I guess we need to extend the ua
package to add this new feature.
Hi, Could anyone share how to send a SIP BYE to a SIP Server using this package? From the example and
ua
in thepkg
, I can only see the Invite and Register implemented. Thanks for your help.