Skip to content

Commit

Permalink
Expose local/remote uri.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Nov 7, 2021
1 parent 679d567 commit f715804
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ func (s *Session) String() string {
return "Local: " + s.localURI.String() + ", Remote: " + s.remoteURI.String()
}

func (s *Session) LocalURI() sip.Address {
return s.localURI
}

func (s *Session) RemoteURI() sip.Address {
return s.remoteURI
}

func (s *Session) LocalSdp() string {
if s.uaType == "UAC" {
return s.offer
Expand Down

0 comments on commit f715804

Please sign in to comment.