"481 Call/Transaction Does Not Exist" when canceling before call connects

DL
Danyi Lin
Fri, Jul 21, 2017 10:43 PM

My soft phone (built with pjsip) is behind NAT, and FreeSWITCH server with a public IP.

The initial Via value in header as below:

Message Header
Via: SIP/2.0/TCP 192.168.15.243:47975;rport;branch=z9hG4bKPj5562af0e-0b93-48ba-9dc9-f0f8c59d3953;alias
Transport: TCP
Sent-by Address: 192.168.15.243
Sent-by port: 47975

However Via in CANCEL changed:

Via: SIP/2.0/TCP 10.x.x.x:47975;rport;branch=z9hG4bKPj41f72fa2-3aca-4f90-8cd0-480df02d4a55;alias
Transport: TCP
Sent-by Address: 10.x.x.x
Sent-by port: 47975
RPort: rport

10.x.x.x is the public ip of NAT.

How can I fix this issue?

Thanks a lot!

My soft phone (built with pjsip) is behind NAT, and FreeSWITCH server with a public IP. The initial Via value in header as below: ------------------- Message Header Via: SIP/2.0/TCP 192.168.15.243:47975;rport;branch=z9hG4bKPj5562af0e-0b93-48ba-9dc9-f0f8c59d3953;alias Transport: TCP Sent-by Address: 192.168.15.243 Sent-by port: 47975 ------------------- However Via in CANCEL changed: ------------------- Via: SIP/2.0/TCP 10.x.x.x:47975;rport;branch=z9hG4bKPj41f72fa2-3aca-4f90-8cd0-480df02d4a55;alias Transport: TCP Sent-by Address: 10.x.x.x Sent-by port: 47975 RPort: rport ------------------- 10.x.x.x is the public ip of NAT. How can I fix this issue? Thanks a lot!