[OpenSIPS-Users] Private IP in registered AOR causing failure

opensipslist at encambio.com opensipslist at encambio.com
Tue Jan 19 18:03:00 CET 2010

Hello list,

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

        AOR:: mylogin-osips
                Contact:: sip:MyLogin-OSIPS at;transport=tls;line=2acy67zm Q=1
                        Expires:: 560
                        Callid:: 2b21cdfae784-av13rj1txbsq
                        Cseq:: 2
                        User-agent:: Bigphone123
                        Received:: sip:;transport=TLS
                        State:: CS_SYNC
                        Flags:: 0
                        Cflag:: 64
                        Socket:: tls:
                        Methods:: 7999

As you see it is quite normal, but I'm wondering about the private
IP 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:MyLogin-OSIPS at;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") {
        if (!has_totag()) {
            if (method=="REGISTER") {
                $avp(s:regrcv) = $source_uri;
                fix_nated_register();  # add Received header
                if (proto==UDP) {
            else if (!is_present_hf("Record-Route")) {
                if (is_method("INVITE")) {
        setbflag(6);    # mark message as NATed

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


More information about the Users mailing list