[OpenSIPS-Users] TCP CONNECT ERROR;

Premalatha Kuppan premalatha at ngintech.com
Wed Jul 28 12:47:45 CEST 2010


Hi,

Have you seen my cfg file ? I have tried fix_nat_contact() and
fix_nat_register also...:(

Am i missing anything ?

/* uncomment the next line to disable TCP (default on) */
disable_tcp=no
tcp_children=10
tcp_connect_timeout=1
tcp_send_timeout=3
tcp_accept_aliases=1

# ----- registrar params -----
/* uncomment the next line not to allow more than 10 contacts per AOR */
#modparam("registrar", "max_contacts", 10)
modparam("registrar","tcp_persistent_flag",7)
modparam("registrar", "received_avp", "$avp(s:rcv)")

#-------nathelper params ------
modparam("nathelper", "received_avp", "$avp(s:rcv)")

Routing Logic:

if (client_nat_test("3")) {
        xlog("CLIENT BEHIND NAT\n");
        if (method=="SUBSCRIBE")
        nat_keepalive();
        if (!has_totag()) {
        if (method=="REGISTER") {
        if (proto==UDP)
        nat_keepalive();
        else
        setflag(7);
        $avp(s:regrcv) = $source_uri;
        fix_nated_register();
        }
        else if (method=="INVITE") {
        nat_keepalive();
        fix_nated_contact();
        fix_nated_sdp("3");
        }
        }
        }

if (is_method("REGISTER"))
        {
                xlog("REGISTER MESSAGE\n");
                xlog("$mb\n");
                # authenticate the REGISTER requests (uncomment to enable
auth)
                if (!www_authorize("xxxxxxx", "subscriber"))
                {
                        www_challenge("xxxxxx", "0");
                        exit;
                }

    ###TCP ENABLED CLIENTS
                 if(proto==TCP)
                 {
                       xlog("the SIP message was received over TCP\n");
                       xlog("$(tu{uri.user})\n");
                       force_tcp_alias();
                 }


Thanks,
Prem


On Wed, Jul 28, 2010 at 2:44 PM, Premalatha Kuppan
<premalatha at ngintech.com>wrote:

> Yes, i have checked. Have you seen my config file. Probably can you guide
> me where its going wrong ?
>
> On Wed, Jul 28, 2010 at 2:36 PM, Anca Vamanu <anca at opensips.org> wrote:
>
>>  Hi,
>>
>> Have you  checked all the things that I told you in the first reply?
>> Probably one of that is not matched and this is why it is not working.
>>
>>
>> Regards,
>>
>> --
>> Anca Vamanuwww.voice-system.ro
>>
>>
>>
>> On 07/28/2010 10:01 AM, Premalatha Kuppan wrote:
>>
>> Can anyone please help me...
>>
>> On Wed, Jul 28, 2010 at 11:16 AM, Premalatha Kuppan <
>> premalatha at ngintech.com> wrote:
>>
>>> Sorry forgot to attach the cfg file..attached now.
>>>
>>>
>>> On Wed, Jul 28, 2010 at 11:15 AM, Premalatha Kuppan <
>>> premalatha at ngintech.com> wrote:
>>>
>>>> Still call fails to TC P enabled clients.
>>>>
>>>> Please find my config file attached. I dono where iam doing mistake
>>>> :(..please help
>>>>
>>>>
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: REGISTER
>>>> MESSAGE
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: REGISTER sips:PUBLIC
>>>> IP <http://204.12.57.221:5061>SIP/2. From: <
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>>;tag=14097453-6b37-4f1d-bb14-43
>>>> Authorization: Digest username="4081112222", realm="PUBLIC IP",
>>>> nonce="4c4fbe85000000013046f7331a315fdc29e6f14851cbedd9", uri="sips:PUBLIC
>>>> IP:5061 <http://204.12.57.221:5061>",
>>>> response="64375192e261bc5f3213bc6f56  ontent-Length:  0
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: ---- contact
>>>> expire=<null> ;  header expire =300; contact uri=
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 209.242.149.98:57086;transport=tls
>>>>
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: ----This is
>>>> register, parsing values - 588aa6e4-2af1-4fc0-ad67-6e5c16681e771000;
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>;
>>>>
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]:
>>>> NORMAL-REGISTRATION
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: CLIENT BEHIND
>>>> NAT
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: contact before
>>>> update <
>>>> <sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 209.242.149.98:47043;transport=tls>>
>>>>
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: via before
>>>> update <SIP/2.0/TLS 10.11.11.181:57086
>>>> ;rport;branch=z9hG4bKPj48764d96-c980-4584-aba4-2af5c6273165>
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: REGISTER
>>>> MESSAGE
>>>> Jul 28 01:21:43 204548-4 /usr/local/sbin/opensips[21528]: REGISTER sips:
>>>> 204.12.57.221:5061 SIP/2. From: <
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>>;tag=9428c49e-e3bb-4241-b3da-8e
>>>> ontent-Length:
>>>> 0a6e4-2af1-4fc0-ad67-6e5c16681e771000 at 209.242.149.98:47043;transport=tls
>>>> >
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: REGISTER
>>>> MESSAGE
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: REGISTER sips:PUBLIC
>>>> IP:5061 <http://204.12.57.221:5061> SIP/2. From: <
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>>;tag=12a8089f-2955-480f-affb-6f
>>>> ontent-Length:
>>>> 0a6e4-2af1-4fc0-ad67-6e5c16681e771000 at 209.242.149.98:57086;transport=tls
>>>> >
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: REGISTER
>>>> MESSAGE
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: REGISTER sips:
>>>> PUBLIC:IP <http://204.12.57.221:5061> SIP/2. From: <
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>>;tag=9428c49e-e3bb-4241-b3da-8e
>>>> Authorization: Digest username="4081112222", realm="PUBLIC IP",
>>>> nonce="4c4fbe85000000025275d997ab9c99b5ab5e0eac036575d0", uri="sips:PUBLIC
>>>> IP <http://204.12.57.221:5061>", response="a81e038b357fb069199bb83f32
>>>> ontent-Length:  0
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: ---- contact
>>>> expire=<null> ;  header expire =0; contact uri=
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 209.242.149.98:47043;transport=tls
>>>>
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: This is
>>>> de-registration
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]:
>>>> ----De-register DONE - 588aa6e4-2af1-4fc0-ad67-6e5c16681e771000
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: REGISTER
>>>> MESSAGE
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: REGISTER sips:PUBLIC
>>>> IP:5061 <http://204.12.57.221:5061> SIP/2. From: <
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>>;tag=12a8089f-2955-480f-affb-6f
>>>> Authorization: Digest username="4081112222", realm="PUBLIC IP",
>>>> nonce="4c4fbe86000000034f58d23302892e98458c1907863d4951", uri="sips:
>>>> 204.12.57.221:5061", response="df102121f9df50a2e205cd144a
>>>> ontent-Length:  0
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: ---- contact
>>>> expire=<null> ;  header expire =300; contact uri=
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 209.242.149.98:57086;transport=tls
>>>>
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]: ----This is
>>>> register, parsing values - 588aa6e4-2af1-4fc0-ad67-6e5c16681e771000;
>>>> sip:588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181<sip%3A588aa6e4-2af1-4fc0-ad67-6e5c16681e771000 at 10.11.11.181>;
>>>>
>>>> Jul 28 01:21:44 204548-4 /usr/local/sbin/opensips[21528]:
>>>> NORMAL-REGISTRATION
>>>> Jul 28 01:23:48 204548-4 /usr/local/sbin/opensips[21523]: new branch at
>>>> sip:123450 at 209.242.149.98:1025;transport=TCP
>>>> Jul 28 01:23:49 204548-4 /usr/local/sbin/opensips[21523]:
>>>> ERROR:core:tcp_blocking_connect: timeout 1 s elapsed from 1 s
>>>> Jul 28 01:23:49 204548-4 /usr/local/sbin/opensips[21523]:
>>>> ERROR:core:tcpconn_connect: tcp_blocking_connect failed
>>>> Jul 28 01:23:49 204548-4 /usr/local/sbin/opensips[21523]:
>>>> ERROR:core:tcp_send: connect failed
>>>> Jul 28 01:23:49 204548-4 /usr/local/sbin/opensips[21523]:
>>>> ERROR:tm:msg_send: tcp_send failed
>>>> Jul 28 01:23:49 204548-4 /usr/local/sbin/opensips[21523]:
>>>> ERROR:tm:t_forward_nonack: sending request failed
>>>> Jul 28 01:23:50 204548-4 /usr/local/sbin/opensips[21523]: ACC: call
>>>> missed:
>>>> timestamp=1280294630;method=INVITE;from_tag=588744142;to_tag=;call_id=
>>>> 77A4FDFA-2F28-69A0-4508-62C20778D044 at 122.183.196.26;code=477;reason=Request
>>>> Failure
>>>>
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100728/701a138f/attachment.htm 


More information about the Users mailing list