Skip to content

Commit

Permalink
Add User to recipient.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Mar 29, 2021
1 parent cbe147e commit 4b76b16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func main() {
stack,
)

recipient, err := parser.ParseSipUri("sip:127.0.0.1:5081;transport=wss")
recipient, err := parser.ParseSipUri("sip:100@127.0.0.1:5060;transport=udp")
if err != nil {
logger.Error(err)
}
Expand All @@ -121,6 +121,10 @@ func main() {
logger.Error(err)
}

recipient, err = parser.ParseSipUri("sip:[email protected]:5060;transport=udp")
if err != nil {
logger.Error(err)
}
go ua.Invite(profile, called, recipient, &sdp)

<-stop
Expand Down
2 changes: 1 addition & 1 deletion examples/register/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func main() {
stack,
)

recipient, err := parser.ParseSipUri("sip:127.0.0.1;transport=udp") // this is the remote address
recipient, err := parser.ParseSipUri("sip:100@127.0.0.1;transport=udp") // this is the remote address
if err != nil {
logger.Error(err)
}
Expand Down

0 comments on commit 4b76b16

Please sign in to comment.