[OpenSIPS-Users] Problem with registrar mcontact_avp
Dragomir Haralambiev
goup2010 at gmail.com
Thu Sep 5 09:53:30 EDT 2019
Hello,
I try to store the real IP in the location table.
I make the following:
a. specify a mcontact_avp[1] in my script:
modparam("registrar", "mcontact_avp", "$avp(register)")
b. after fix_nated_contact() I store the changed contact in that AVP:
fix_nated_contact();
$avp(register) = $ct.fields(uri);
$avp(register) I have the following
sip:33341656 at 39.121.145.121:50445;transport=TLS;ob
Save location:
save("location","c1","$fu")
opensipsctl ul show
AOR:: 33341656
Contact:: sip: 33341656 @192.168.1.106:50443;transport=TLS;ob
Q=
Expires:: 260
Callid:: 554fdfd6ee794451942f693e40fbe362
Cseq:: 31813
User-agent:: MicroSIP/3.19.18
Received:: sip:39.121.145.121:50445;transport=TLS
State:: CS_SYNC
Flags:: 0
Cflags:: TLS RM_ONTO_FLAG SIP_PING_BFLAG NAT_BFLAG
Socket:: tls:83.21.101.114:5062
Methods:: 8063
SIP_instance::
<urn:uuid:00000000-0000-0000-0000-0000a350d2d0>
Where is problem?
Why the real IP did not store in the location table?
Regards;
Dragomir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190905/e6434b92/attachment-0001.html>
More information about the Users
mailing list