Hello list,

Here's a record I see when I run 'opensipsctl ul show':

        AOR:: mylogin-osips
                Contact:: 
sip:[email protected]:2310;transport=tls;line=2acy67zm Q=1
                        Expires:: 560
                        Callid:: 2b21cdfae784-av13rj1txbsq
                        Cseq:: 2
                        User-agent:: Bigphone123
                        Received:: sip:85.182.68.45:2240;transport=TLS
                        State:: CS_SYNC
                        Flags:: 0
                        Cflag:: 64
                        Socket:: tls:80.200.123.45:5061
                        Methods:: 7999

As you see it is quite normal, but I'm wondering about the private
IP 192.168.0.31. That's indeed the address of the phone.

OpenSIPS is trying to reach the private IP number above from time
to time, and I see this in the logs:

  Jan 19 17:57:20 name.host.tld <error> opensips[23432]: ERROR:tm:t_uac: 
attempt to send to 
'sip:[email protected]:2310;transport=tls;line=2acy67zm' failed

The part of my config which could be causing this problem is:

    # configure NAT keepalives
    if (client_nat_test("3")) {
        if (method=="SUBSCRIBE") {
            nat_keepalive();
        }
        if (!has_totag()) {
            if (method=="REGISTER") {
                $avp(s:regrcv) = $source_uri;
                fix_nated_register();  # add Received header
                if (proto==UDP) {
                    nat_keepalive();
                }
            }
            else if (!is_present_hf("Record-Route")) {
                #fix_nated_contact();
                fix_contact();
                force_rport();
                if (is_method("INVITE")) {
                    fix_nated_sdp("3");
                }
            }
        }
        setbflag(6);    # mark message as NATed
    }

Thanks for any advice on correcting the failed private IP attempts.

Greetings,
Brian

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to