[Kamailio-Users] Problem with secure TLS call

Hemanshu Patel hemanshu.patel at saicare.com
Fri Mar 26 13:43:01 CET 2010


i am still having this problem.
when i use two grandstream phone everything works fine,
i can make calls on TLS and users can talk to each other.

But when i use two eyebream phone, it doesnt work, gives following error

:33 [2875] WARNING:core:init_ssl_ctx_behavior: server verification NOT
activated. Weaker security.
[hemanshu at localhost panreg-tls]$
[hemanshu at localhost panreg-tls]$
[hemanshu at localhost panreg-tls]$ Mar 26 18:11:59 [2889]
ERROR:rr:w_record_route: Double attempt to record-route
Mar 26 18:12:09 [2884] ERROR:core:tcp_blocking_connect: timeout 10 s
elapsed from 10 s
Mar 26 18:12:09 [2884] ERROR:core:tcpconn_connect: tcp_blocking_connect
failed
Mar 26 18:12:09 [2884] ERROR:core:tcp_send: connect failed
Mar 26 18:12:09 [2884] ERROR:core:msg_send: tcp_send failed
Mar 26 18:12:10 [2883] ERROR:core:tcp_blocking_connect: timeout 10 s
elapsed from 10 s
Mar 26 18:12:10 [2883] ERROR:core:tcpconn_connect: tcp_blocking_connect
failed
Mar 26 18:12:10 [2883] ERROR:core:tcp_send: connect failed
Mar 26 18:12:10 [2883] ERROR:core:msg_send: tcp_send failed
Mar 26 18:12:10 [2883] WARNING:core:run_actions: null action list
(rec_level=1)
Mar 26 18:12:11 [2881] ERROR:core:tcp_blocking_connect: timeout 10 s
elapsed from 10 s
Mar 26 18:12:11 [2881] ERROR:core:tcpconn_connect: tcp_blocking_connect
failed
Mar 26 18:12:11 [2881] ERROR:core:tcp_send: connect failed
Mar 26 18:12:11 [2881] ERROR:core:msg_send: tcp_send failed
Mar 26 18:12:13 [2882] ERROR:core:tcp_blocking_connect: timeout 10 s
elapsed from 10 s
Mar 26 18:12:13 [2882] ERROR:core:tcpconn_connect: tcp_blocking_connect
failed
Mar 26 18:12:13 [2882] ERROR:core:tcp_send: connect failed
Mar 26 18:12:13 [2882] ERROR:core:msg_send: tcp_send failed
Mar 26 18:12:19 [2884] ERROR:core:tcp_blocking_connect: timeout 10 s
elapsed from 10 s
Mar 26 18:12:19 [2884] ERROR:core:tcpconn_connect: tcp_blocking_connect
failed
Mar 26 18:12:19 [2884] ERROR:core:tcp_send: connect failed
Mar 26 18:12:19 [2884] ERROR:core:msg_send: tcp_send failed



Any idea? Same configuration works with grandstream, while they cant in
softphone? and gives 477 errot code.

my asterisk log is as below:

26 18:08:09] WARNING[2833]: chan_sip.c:1648 setup_crypto: Hemanshu: 
local_key641 jhbAJ7jFE1p/Ngn4kVxy7qTTmkJpeBiN6W98+gmM len 40
    -- Called kamailio/1003
    -- Got SIP response 477 "Send failed (477/SL)" back from 172.16.16.218
    -- No one is available to answer at this time (1:0/0/0)
    -- Executing [1003 at hemu_default:4] Hangup("SIP/5091-8c001430", "") in
new stack
  == Spawn extension (hemu_default, 1003, 4) exited non-zero on
'SIP/5091-8c001430'
       > ::Disconnected form Oracle, trying to connect again..
       > ::Tried a lot, not getting connected..
    -- Got SIP response 477 "Send failed (477/SL)" back from 172.16.16.218


Any idea what could be the problem?

-- 
Regards,

Hemanshu Patel

M: 09601295238

> Hi,
>
> I am using
>
> kamailio 3.0.1 (x86_64/linux) 0822a9
> flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, DISABLE_NAGLE,
> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC,
> USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
> USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>
> and I am using the client "PhonerLite" (http://www.phonerlite.de).
>
> The phone is registered on my server with TLS.
>
> If I call someone or myself I get an error message. What is wrong with my
> server? (TLS calls with PhonerLite with the provider antisip.com are
> possible without problems!)
>
> With UDP calling myself I get "486:Busy Here" on the phone, this is OK and
> normal.
> With TLS I get "477:Unfortunately error on sending to next hop
> occurred(477/SL)" on the phone and some ERROR messages like the following
> on the kamailio.log (you can see the rest of the log in the attached zip):
>
> Mar 21 20:24:00 vs208140 /usr/local/sbin/kamailio[20013]: DEBUG: <core>
> [msg_translator.c:200]: check_via_address(95.90.205.74, 95.90.205.74, 0)
> Mar 21 20:24:00 vs208140 /usr/local/sbin/kamailio[20013]: DEBUG: <core>
> [tcp_main.c:1786]: tcp_send: no open tcp connection found, opening new one
> Mar 21 20:24:10 vs208140 /usr/local/sbin/kamailio[20013]: ERROR: <core>
> [tcp_main.c:618]: connect 95.90.205.74:5061 failed (timeout)
> Mar 21 20:24:10 vs208140 /usr/local/sbin/kamailio[20013]: ERROR: <core>
> [tcp_main.c:621]: ERROR: tcp_blocking_connect 95.90.205.74:5061: timeout
> 10 s elapsed from 10 s
> Mar 21 20:24:10 vs208140 /usr/local/sbin/kamailio[20013]: ERROR: <core>
> [tcp_main.c:1168]: ERROR: tcp_do_connect: tcp_blocking_connect
> 95.90.205.74:5061 failed
> Mar 21 20:24:10 vs208140 /usr/local/sbin/kamailio[20013]: ERROR: <core>
> [tcp_main.c:1237]: ERROR: tcp_do_connect 95.90.205.74:5061: failed (115)
> Operation now in progress
> Mar 21 20:24:10 vs208140 /usr/local/sbin/kamailio[20013]: ERROR: <core>
> [tcp_main.c:1955]: ERROR: tcp_send 95.90.205.74:5061: connect failed
> Mar 21 20:24:10 vs208140 /usr/local/sbin/kamailio[20013]: ERROR: tm
> [../../forward.h:191]: msg_send: ERROR: tcp_send failed
>
> The kamailio.cfg file is also in the zip attached.
> The PC is connected with the router (I opened the TCP ports 5060-5062)
> that is connected to the Internet. The problem also happens if I disable
> the firewall of the server and of the PC.
>
> Can someone give me help?
>
> Thanks in advance!
>
> Regards
>
> Detlef Pilzecker_______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users






More information about the sr-users mailing list