Versions in this module Expand all Collapse all v0 v0.1.6 Sep 23, 2022 v0.1.5 Aug 16, 2022 v0.1.4 Aug 16, 2022 Changes in this version + func GenerateBranchID() string + func GenerateNewCallID() string + func MessageDetails(data *SipMsg) string + func ParseSipAuth(v []byte, out *SipAuth) + func ParseSipContact(v []byte, out *SipContact) + func ParseSipCseq(v []byte, out *SipCseq) + func ParseSipFrom(v []byte, out *SipFrom) + func ParseSipReq(v []byte, out *SipReq) + func ParseSipTo(v []byte, out *SipTo) + func ParseSipVia(v []byte, out *SipVia) + type SipAuth struct + Algorithm []byte + CNonce []byte + Nc []byte + Nonce []byte + QoP []byte + Realm []byte + Response []byte + Src []byte + URI []byte + Username []byte + func (sa *SipAuth) GetAlgorithm() string + func (sa *SipAuth) GetCNonce() string + func (sa *SipAuth) GetNc() string + func (sa *SipAuth) GetNonce() string + func (sa *SipAuth) GetQoP() string + func (sa *SipAuth) GetRealm() string + func (sa *SipAuth) GetResponse() string + func (sa *SipAuth) GetURI() string + func (sa *SipAuth) GetUsername() string + func (sa *SipAuth) SetAlgorithm(value string) + func (sa *SipAuth) SetCNonce(value string) + func (sa *SipAuth) SetNc(value string) + func (sa *SipAuth) SetNonce(value string) + func (sa *SipAuth) SetQoP(value string) + func (sa *SipAuth) SetRealm(value string) + func (sa *SipAuth) SetResponse(value string) + func (sa *SipAuth) SetURI(value string) + func (sa *SipAuth) SetUsername(value string) + func (sa *SipAuth) String() string + type SipContact struct + Expires []byte + Host []byte + Name []byte + Port []byte + Qval []byte + Src []byte + Tran []byte + UriType string + User []byte + func NewContactHeader(uriType string, user string, host string) *SipContact + func (sc *SipContact) SetHost(host string) + func (sc *SipContact) SetName(name string) + func (sc *SipContact) SetPort(port string) + func (sc *SipContact) SetUriType(uriType string) + func (sc *SipContact) SetUser(user string) + func (sc *SipContact) String() string + type SipCseq struct + ID []byte + Method []byte + Src []byte + func NewCSeq(id string, method string) *SipCseq + func (sc *SipCseq) SetID(id string) + func (sc *SipCseq) SetMethod(method string) + func (sc *SipCseq) String() string + type SipFrom struct + Host []byte + Name []byte + Port []byte + Src []byte + Tag []byte + UriType string + User []byte + UserType []byte + func NewFromHeader(user string, uriType string, host string, port string) *SipFrom + func (sf *SipFrom) SetHost(host string) + func (sf *SipFrom) SetPort(port string) + func (sf *SipFrom) SetTag(tag string) + func (sf *SipFrom) SetUriType(uriType string) + func (sf *SipFrom) SetUser(user string) + func (sf *SipFrom) SetUserType(userType string) + func (sf *SipFrom) String() string + type SipMsg struct + Auth SipAuth + Body []byte + CallID SipVal + ContLen SipVal + ContType SipVal + Contact SipContact + Cseq SipCseq + Exp SipVal + From SipFrom + MaxFwd SipVal + Req SipReq + Sdp sdp.SdpMsg + Src []byte + To SipTo + Ua SipVal + Via []SipVia + func NewRequest(request *SipReq, via *SipVia, to *SipTo, from *SipFrom, contact *SipContact, ...) *SipMsg + func NewResponse(request *SipReq, via *SipVia, to *SipTo, from *SipFrom, callID *SipVal, ...) *SipMsg + func Parse(v []byte) (output SipMsg) + func (sm *SipMsg) CopyHeaders(msg *SipMsg) + func (sm *SipMsg) CopySdp(msg *SipMsg) + func (sm *SipMsg) GetStatusCode() int + func (sm *SipMsg) SetAuthHeader(auth *SipAuth) + func (sm *SipMsg) String() string + type SipReq struct + Host []byte + Method []byte + Port []byte + Src []byte + StatusCode []byte + StatusDesc []byte + UriType string + User []byte + UserType []byte + func NewRequestLine(method string, uriType string, user string, host string, port string) *SipReq + func NewResponseLine(statuscode int, statusdesc string) *SipReq + func (sr *SipReq) SetHost(host string) + func (sr *SipReq) SetMethod(method string) + func (sr *SipReq) SetPort(port string) + func (sr *SipReq) SetStatusCode(code int) + func (sr *SipReq) SetStatusDesc(desc string) + func (sr *SipReq) SetUriType(uriType string) + func (sr *SipReq) SetUser(user string) + func (sr *SipReq) SetUserType(userType string) + func (sr *SipReq) String() string + type SipTo struct + Host []byte + Name []byte + Port []byte + Src []byte + Tag []byte + UriType string + User []byte + UserType []byte + func NewToHeader(user string, uriType string, host string, port string) *SipTo + func (sf *SipTo) SetHost(host string) + func (sf *SipTo) SetPort(port string) + func (sf *SipTo) SetTag(tag string) + func (sf *SipTo) SetUriType(uriType string) + func (sf *SipTo) SetUser(user string) + func (sf *SipTo) SetUserType(userType string) + func (sf *SipTo) String() string + type SipVal struct + Src []byte + Value []byte + func NewCallID(value string) *SipVal + func NewContentLength(value string) *SipVal + func NewMaxForwards(value string) *SipVal + func (sv *SipVal) SetValue(value string) + func (sv *SipVal) String() string + type SipVia struct + Branch []byte + Host []byte + Maddr []byte + Port []byte + Rcvd []byte + Rport []byte + Src []byte + Trans string + Ttl []byte + func NewViaHeader(transport string, host string, port string) *SipVia + func (sv *SipVia) SetBranch(value string) + func (sv *SipVia) SetHost(value string) + func (sv *SipVia) SetPort(value string) + func (sv *SipVia) SetTransport(trans string) + func (sv *SipVia) String() string