Browse Source

fix: use real port to request and add go.mod

pull/9/head
chaslin 6 years ago
committed by Justine Tunney
parent
commit
af5db1b5f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sip/route.go

+ 1
- 1
sip/route.go View File

@ -83,7 +83,7 @@ func RouteMessage(via *Via, contact *Addr, msg *Msg) (host string, port uint16,
// we should use rport as real port in request-line
if rport := msg.Via.Param.Get("rport"); rport != nil && len(rport.Value) > 0 {
i, err := strconv.ParseInt(rport.Value, 10, 16)
i, err := strconv.Atoi(rport.Value)
if err != nil {
return "", 0, err
}


Loading…
Cancel
Save