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@proxy1]# kamcmd dlg.list
{
h_entry: 3753
h_id: 6741
call-id: [email protected]
from_uri: sip:[email protected]:5060
to_uri: sip:[email protected]:5060
state: 2
start_ts: 0
init_ts: 1536671492
timeout: 0
lifetime: 7200
dflags: 512
sflags: 4096
iflags: 32
caller: {
tag: 2750096738
contact: sip:[email protected]:5060
cseq: 2
route_set:
socket: udp:1.1.1.1:5060
}
callee: {
tag:
contact:
cseq:
route_set:
socket:
}
profiles: {
}
variables: {
}
}
[root@proxy1]# kamcmd ul.dump
Info: {
AoR: 1234567890
HashID: 262653578
Contacts: {
Contact: {
Address:
sip:[email protected]:5060
Expires: 1269
Q: -1.000000
Call-ID:
[email protected]
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
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
