Skip to content

Commit f715804

Browse files
committed
Expose local/remote uri.
1 parent 679d567 commit f715804

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/session/session.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ func (s *Session) String() string {
8181
return "Local: " + s.localURI.String() + ", Remote: " + s.remoteURI.String()
8282
}
8383

84+
func (s *Session) LocalURI() sip.Address {
85+
return s.localURI
86+
}
87+
88+
func (s *Session) RemoteURI() sip.Address {
89+
return s.remoteURI
90+
}
91+
8492
func (s *Session) LocalSdp() string {
8593
if s.uaType == "UAC" {
8694
return s.offer

0 commit comments

Comments
 (0)