[OpenSIPS-Users] Opensips 1.11 Error: bearer capability not authorized
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jul 18 11:42:07 CEST 2014
Hi,
My question was not about your OpenSIPS having TCP support, but about
the IP mentioned in this log:
Jul 16 11:27:35 kalahari
/usr/local/opensips_1.11/sbin/opensips[1009]:
ERROR:core:tcp_blocking_connect: failed to retrieve SO_ERROR
[server=80.x.x.x:5060] (111) Connection refused
Who is that 80.x.x.x:5060 ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 16.07.2014 22:28, mimicafe at gmail.com wrote:
> Yes, the TCP is enabled (see below); besides, it does not work with
> UDP either.
>
> listen=udp:192.168.18.95:5060 <http://192.168.18.95:5060> # CUSTOMIZE ME
>
> disable_tcp=no
> listen=tcp:192.168.18.95:5060 <http://192.168.18.95:5060> # CUSTOMIZE ME
>
>
> A second look below shows that although the client (UA) indicated it
> successfully registered, in reality the registration is failing from
> outside my LAN. Could this because I am using NAT?
>
> kalahari.sip > 119.25.x.x.39893: [bad udp cksum 5cb5!] SIP, length: 456
> SIP/2.0 403 Rely forbidden
> Via: SIP/2.0/UDP
> 119.25.x.x:63445;received=119.25.x.x;branch=z9hG4bK-d8754z-d25f99b680bb4bb5-1---d8754z-;rport=39893
> To:
> "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=cd2066e24f03c06d9551847de38fddf4.d222
> From: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=034aca76
> Server: OpenSIPS (1.11.2-notls (x86_64/linux))
> 119.25.x.x.39893 > kalahari.sip: [udp sum ok] SIP, length: 737
> SUBSCRIBE sip:Waili225 at 80.x.x.x;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP
> 119.25.x.x:63445;branch=z9hG4bK-d8754z-247b924ea39c6115-1---d8754z-;rport
> Contact: <sip:Waili225 at 119.25.x.x:23639;transport=UDP>
> To: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>
> From: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=5556e437
> kalahari.sip > 119.25.x.x.39893: [bad udp cksum d03f!] SIP,
> length: 458
> SIP/2.0 403 Rely forbidden
> Via: SIP/2.0/UDP
> 119.25.x.x:63445;received=119.25.x.x;branch=z9hG4bK-d8754z-247b924ea39c6115-1---d8754z-;rport=39893
> To:
> "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=cd2066e24f03c06d9551847de38fddf4.fc05
> From: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=5556e437
> Server: OpenSIPS (1.11.2-notls (x86_64/linux))
> 119.25.x.x.39893 > kalahari.sip: [udp sum ok] SIP, length: 692
> REGISTER sip:80.x.x.x;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP
> 119.25.x.x:63445;branch=z9hG4bK-d8754z-37226e3c04281d72-1---d8754z-;rport
> Contact:
> <sip:Waili225 at 119.25.x.x:23739;rinstance=00727a7508743429;transport=UDP>
> To: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>
> From: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=07ea154f
> 119.25.x.x.39893 > kalahari.sip: [udp sum ok] SIP, length: 692
> REGISTER sip:80.x.x.x;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP
> 119.25.x.x:63445;branch=z9hG4bK-d8754z-37226e3c04281d72-1---d8754z-;rport
> Contact:
> <sip:Waili225 at 119.25.x.x:23741;rinstance=00727a7508743429;transport=UDP>
> To: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>
> From: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=07ea154f
> kalahari.sip > 79-77-161-61.static.dsl.as9105.com.sip: [bad udp
> cksum e632!] SIP, length: 807
> REGISTER sip:80.x.x.x;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP 192.168.18.95:5060;branch=z9hG4bK4763.8c801dd3.0
> Via: SIP/2.0/UDP
> 119.25.x.x:63445;received=119.25.x.x;branch=z9hG4bK-d8754z-37226e3c04281d72-1---d8754z-;rport=39893
> Contact:
> <sip:Waili225 at 119.25.x.x:23739;rinstance=00727a7508743429;transport=UDP>
> To: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>
> From: "225"<sip:Waili225 at 80.x.x.x;transport=UDP>;tag=07ea154f
> 79-77-161-61.static.dsl.as9105.com.56005 > kalahari.sip: [udp sum
> ok] SIP, length: 437
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 192.168.18.95:5060;branch=z9hG4bK4763.8c801dd3.0
> Via: SIP/2.0/UDP 119.25.x.x:63445;received=149.2
>
>
>
> On 16 July 2014 13:44, Bogdan-Andrei Iancu <bogdan at opensips.org
> <mailto:bogdan at opensips.org>> wrote:
>
> Hi,
>
> The logs show your OpenSIPS trying to connect via TCP to the
> 80.x.x.x IP, but not connection accepted. Is that destination
> supposed to accept TCP conns ??
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 16.07.2014 14:27, mimicafe at gmail.com
> <mailto:mimicafe at gmail.com> wrote:
>>
>>
>> My OpenSips version 1.11 has two domains (192.168.x.x and
>> 80.x.x.x ) configured. and I can call devices within my LAN,
>> however I am unable to make calls from a device connected outside
>> my LAN. The error message I receive in SIP client (zoiper) says
>> "bearer capability not authorized"
>>
>> Captured from tcpdump
>> =================
>>
>> To: "225"<sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>
>> From: "225"<sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>;tag=a9cb7912
>> 79-77-161-61.static.com.56005 > kalahari.sip: [udp sum ok]
>> SIP, length: 437
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP
>> 192.168.18.95:5060;branch=z9hG4bKad43.07e1d524.0
>> Via: SIP/2.0/UDP
>> 119.25.x.x:65301;received=119.25.x.x;branch=z9hG4bK-d8754z-bc834ff08b6c2390-1---d8754z-;rport=65301
>> From: "225" <sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>;tag=a9cb7912
>> To: "225" <sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>
>> kalahari.sip > 119.25.x.x.65301: [bad udp cksum 7cf9!] SIP,
>> length: 370
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP
>> 119.25.x.x:65301;received=119.25.x.x;branch=z9hG4bK-d8754z-bc834ff08b6c2390-1---d8754z-;rport=65301
>> From: "225" <sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>;tag=a9cb7912
>> To: "225" <sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>
>> 192.168.18.90.51422 > kalahari.sip: [udp sum ok] SIP, length: 4
>>
>> 119.25.x.x.48917 > kalahari.sip: [udp sum ok] SIP, length: 947
>> INVITE sip:118 at 80.x.x.x;transport=UDP
>> <mailto:sip:118 at 80.x.x.x;transport=UDP> SIP/2.0
>> Via: SIP/2.0/UDP
>> 119.25.x.x:48917;branch=z9hG4bK-d8754z-215889e426d83ce1-1---d8754z-;rport
>> Contact: <sip:mark at 119.25.x.x:58101;transport=UDP>
>> <mailto:sip:mark at 119.25.x.x:58101;transport=UDP>
>> To: <sip:118 at 80.x.x.x;transport=UDP>
>> <mailto:sip:118 at 80.x.x.x;transport=UDP>
>> From: "225"<sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>;tag=9723c429
>> kalahari.sip > 119.25.x.x.48917: [bad udp cksum 7744!] SIP,
>> length: 445
>> SIP/2.0 403 Rely forbidden
>> Via: SIP/2.0/UDP
>> 119.25.x.x:48917;received=119.25.x.x;branch=z9hG4bK-d8754z-215889e426d83ce1-1---d8754z-;rport=48917
>> To: <sip:118 at 80.x.x.x;transport=UDP>
>> <mailto:sip:118 at 80.x.x.x;transport=UDP>;tag=cd2066e24f03c06d9551847de38fddf4.85c4
>> From: "225"<sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>;tag=9723c429
>> Server: OpenSIPS (1.11.2-notls (x86_64/linux))
>> 119.25.x.x.48917 > kalahari.sip: [udp sum ok] SIP, length: 402
>> ACK sip:118 at 80.x.x.x;transport=UDP
>> <mailto:sip:118 at 80.x.x.x;transport=UDP> SIP/2.0
>> Via: SIP/2.0/UDP
>> 119.25.x.x:48917;branch=z9hG4bK-d8754z-215889e426d83ce1-1---d8754z-;rport
>> To: <sip:118 at 80.x.x.x;transport=UDP>
>> <mailto:sip:118 at 80.x.x.x;transport=UDP>;tag=cd2066e24f03c06d9551847de38fddf4.85c4
>> From: "225"<sip:mark at 80.x.x.x;transport=UDP>
>> <mailto:sip:mark at 80.x.x.x;transport=UDP>;tag=9723c429
>> 119.25.x.x.48917 > kalahari.sip: [udp sum ok] SIP, length: 1000
>> PUBLISH sip:mimi2025 at 80.x.x.x;transport=UDP
>> <mailto:sip:mimi2025 at 80.x.x.x;transport=UDP> SIP/2.0
>> Via: SIP/2.0/UDP
>> 119.25.x.x:48917;branch=z9hG4bK-d8754z-d29d6b2a15a8a5cd-1---d8754z-;rport
>> Contact: <sip:mimi2025 at 119.25.x.x:58124;transport=UDP>
>> <mailto:sip:mimi2025 at 119.25.x.x:58124;transport=UDP>
>> To: "2025"<sip:mimi2025 at 80.x.x.x;transport=UDP>
>> <mailto:sip:mimi2025 at 80.x.x.x;transport=UDP>
>> From: "2025"<sip:mimi2025 at 80.x.x.x;transport=UDP>
>> <mailto:sip:mimi2025 at 80.x.x.x;transport=UDP>;tag=b92a7026
>> entity="sip:mimi2025 at 80.x.x.x;transport=UDP"
>> <mailto:sip:mimi2025 at 80.x.x.x;transport=UDP>>
>> kalahari.sip > 119.25.x.x.48917: [bad udp cksum 2c31!] SIP,
>> length: 458
>> SIP/2.0 403 Rely forbidden
>> Via: SIP/2.0/UDP
>> 119.25.x.x:48917;received=119.25.x.x;branch=z9hG4bK-d8754z-d29d6b2a15a8a5cd-1---d8754z-;rport=48917
>> To: "2025"<sip:mimi2025 at 80.x.x.x;transport=UDP>
>> <mailto:sip:mimi2025 at 80.x.x.x;transport=UDP>;tag=cd2066e24f03c06d9551847de38fddf4.1763
>> From: "2025"<sip:mimi2025 at 80.x.x.x;transport=UDP>
>> <mailto:sip:mimi2025 at 80.x.x.x;transport=UDP>;tag=b92a7026
>> Server: OpenSIPS (1.11.2-notls (x86_64/linux))
>>
>>
>> In addition, I noticed the following errors in my opensip log. I
>> removed the 80.x.x.x domain earlier on from OpenSIPS CP and
>> verified in the database that it was gone, but th error continue
>> to appear in the log.
>>
>>
>> l 16 11:27:26 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcp_blocking_connect: failed to retrieve SO_ERROR
>> [server=80.x.x.x:5060] (111) Connection refused
>> Jul 16 11:27:26 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcpconn_connect: tcp_blocking_connect failed
>> Jul 16 11:27:26 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcp_send: connect failed
>> Jul 16 11:27:26 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]: ERROR:tm:msg_send:
>> tcp_send failed
>> Jul 16 11:27:26 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:tm:t_forward_nonack: sending request failed
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> INFO:core:probe_max_sock_buff: using snd buffer of 244 kb
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcp_blocking_connect: poll error: flags 24 - 4 8 16 32
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcp_blocking_connect: failed to retrieve SO_ERROR
>> [server=80.x.x.x:5060] (111) Connection refused
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcpconn_connect: tcp_blocking_connect failed
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:core:tcp_send: connect failed
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]: ERROR:tm:msg_send:
>> tcp_send failed
>> Jul 16 11:27:35 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1009]:
>> ERROR:tm:t_forward_nonack: sending request failed
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]: new branch at
>> sip:test173 at 80.25.30.125:51422;rinstance=52fefdca37453185;transport=TCP
>> <mailto:sip:test173 at 80.25.30.125:51422;rinstance=52fefdca37453185;transport=TCP>
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> INFO:core:probe_max_sock_buff: using snd buffer of 244 kb
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> ERROR:core:tcp_blocking_connect: poll error: flags 24 - 4 8 16 32
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> ERROR:core:tcp_blocking_connect: failed to retrieve SO_ERROR
>> [server=80.x.x.x:51422] (111) Connection refused
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> ERROR:core:tcpconn_connect: tcp_blocking_connect failed
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> ERROR:core:tcp_send: connect failed
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]: ERROR:tm:msg_send:
>> tcp_send failed
>> Jul 16 11:28:53 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]:
>> ERROR:tm:t_forward_nonack: sending request failed
>> Jul 16 11:30:43 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1006]: new branch at
>> sip:test173 at 80.25.30.125:51422;rinstance=8a88a3fada65af33;transport=UDP
>> <mailto:sip:test173 at 80.25.30.125:51422;rinstance=8a88a3fada65af33;transport=UDP>
>> Jul 16 11:30:43 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1001]: incoming reply
>> Jul 16 11:30:44 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1004]: incoming reply
>> Jul 16 11:30:54 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1001]: incoming reply
>> Jul 16 11:32:28 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1014]:
>> INFO:core:probe_max_sock_buff: using snd buffer of 244 kb
>> Jul 16 11:32:28 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1014]:
>> INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket
>> Jul 16 11:32:47 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1014]:
>> INFO:core:probe_max_sock_buff: using snd buffer of 244 kb
>> Jul 16 11:32:47 kalahari
>> /usr/local/opensips_1.11/sbin/opensips[1014]:
>> INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <mailto: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/20140718/bed7d0b6/attachment-0001.htm>
More information about the Users
mailing list