[SR-Users] Call termination via dialog RPC dlg.end_dlg for the SIP-UA behind NAT
Denys Pozniak
denys.pozniak at gmail.com
Tue Sep 11 16:10:32 CEST 2018
Hello!
When calling RPC command dlg.end_dlg, BYE for leg behind NAT sends
according to the Contact header not to the real ip:port.
RPC ul.dump shows correct address in Received: sip:2.2.2.2:7488, but looks
dialog does not know real address.
How can I force sending to the real address?
[root at proxy1]# kamcmd dlg.list
{
h_entry: 3753
h_id: 6741
call-id: 0_618427980 at 10.10.10.10
from_uri: sip:1234567890 at 1.1.1.1:5060
to_uri: sip:3333333333 at 1.1.1.1:5060
state: 2
start_ts: 0
init_ts: 1536671492
timeout: 0
lifetime: 7200
dflags: 512
sflags: 4096
iflags: 32
caller: {
tag: 2750096738
contact: sip:1234567890 at 10.10.10.10:5060
cseq: 2
route_set:
socket: udp:1.1.1.1:5060
}
callee: {
tag:
contact:
cseq:
route_set:
socket:
}
profiles: {
}
variables: {
}
}
[root at proxy1]# kamcmd ul.dump
Info: {
AoR: 1234567890
HashID: 262653578
Contacts: {
Contact: {
Address:
sip:1234567890 at 10.10.10.10:5060
Expires: 1269
Q: -1.000000
Call-ID:
0_213504837 at 10.10.10.10
CSeq: 8
User-Agent: Yealink
SIP-T21P
Received: sip:
2.2.2.2:7488
Path: [not set]
State: CS_NEW
Flags: 0
CFlags: 65600
Socket: udp:
1.1.1.1:5060
Methods: 16383
Ruid:
uloc-5b97c358-6052-1
Instance: [not set]
Reg-Id: 0
Server-Id: 0
Tcpconn-Id: -1
Keepalive: 1
Last-Keepalive:
1536674159
Last-Modified:
1536674159
}
}
}
--
BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180911/433f9a47/attachment.html>
More information about the sr-users
mailing list