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@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
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to