[Spce-user] Websockets in CE 3.0

Nicholas Papadakos panic at umbrela.org
Sat Aug 24 14:43:05 EDT 2013


Thx , that fixed it.
I managed to register but now I can't make calls

I get :

Aug 24 20:39:27 spce proxy[5116]: ERROR: permissions [trusted.c:554]: allow_trusted_2(): unknown protocol ws 

On the kamailio-lb.log

And 

Aug 24 20:30:04 spce lb[21745]: NOTICE: <script>: Reply from Outbound - S=488 - Not Acceptable Here M=INVITE IP=udp:192.168.0.70:5060 ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1

On kamailio-proxy.log

Any help ?:)

Again ?:)



Full logs :


Aug 24 20:13:46 spce proxy[5114]: NOTICE: <script>: New request - M=REGISTER R=sip:192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:102 at 192.168.0.75 IP=192.168.0.2:11399 (127.0.0.1:5060) ID=015e5584-7008-ad2b-300e-83df7dac2649
Aug 24 20:13:46 spce proxy[5114]: NOTICE: <script>: Authentication failed, no credentials - R=sip:192.168.0.75 ID=015e5584-7008-ad2b-300e-83df7dac2649
Aug 24 20:13:46 spce proxy[5115]: NOTICE: <script>: New request - M=REGISTER R=sip:192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:102 at 192.168.0.75 IP=192.168.0.2:11399 (127.0.0.1:5060) ID=015e5584-7008-ad2b-300e-83df7dac2649
Aug 24 20:13:46 spce proxy[5115]: NOTICE: <script>: Contacts successfully updated, expires in 1800s - R=sip:192.168.0.75 ID=015e5584-7008-ad2b-300e-83df7dac2649
Aug 24 20:14:00 spce proxy[5118]: NOTICE: <script>: New request - M=INVITE R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=192.168.0.2:11399 (127.0.0.1:5060) ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5118]: ERROR: permissions [trusted.c:554]: allow_trusted_2(): unknown protocol ws
Aug 24 20:14:00 spce proxy[5118]: NOTICE: <script>: Authentication failed, no credentials - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: New request - M=INVITE R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=192.168.0.2:11399 (127.0.0.1:5060) ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: ERROR: permissions [trusted.c:554]: allow_trusted_2(): unknown protocol ws
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: User-Provided CLI '102' taken from From-User - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: User-provided CLI '102' rejected, using network-provided CLI '302109317387' - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting '302109317387 at 192.168.0.75' as initiating user-provided CLI - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting '302109317387 at 192.168.0.75' as initiating network-provided CLI - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Callee is local, uuid='4dc8af9b-e10c-4c8f-982c-05e627ee870b' - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '302109317387 at 192.168.0.75' for upn - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting From to '<sip:302109317387 at 192.168.0.75>' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '302109317387 at 192.168.0.75' for npn - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting PAI to '<sip:302109317387 at 192.168.0.75>' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Setting P-Called-Party-ID '<sip:101 at 192.168.0.75>' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Appending P-D-URI 'sip:lb at 127.0.0.1;lr;received=sip:192.168.0.70:5060;socket=sip:192.168.0.75:5060' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Forcing request via B2BUA 'sip:127.0.0.1:5080' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5117]: NOTICE: <script>: Request leaving server, D-URI='sip:127.0.0.1:5080' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5113]: NOTICE: <script>: NAT-Reply - S=100 - Connecting M=INVITE IP=192.168.0.2:11399 (127.0.0.1:5080) ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5114]: NOTICE: <script>: NAT-Reply - S=488 - Not Acceptable Here M=INVITE IP=192.168.0.2:11399 (127.0.0.1:5080) ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5114]: NOTICE: <script>: Failure route for local call - R=sip:101 at 192.168.0.75 ID=c0e9a95a-058e-5d10-639f-5d179d82a168
Aug 24 20:14:00 spce proxy[5115]: NOTICE: <script>: New request - M=ACK R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=192.168.0.2:11399 (127.0.0.1:5060) ID=c0e9a95a-058e-5d10-639f-5d179d82a168












Proxy :

Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: New request - M=INVITE R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=ws:192.168.0.2:11970 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: Relaying request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' - R=sip:101 at 192.168.0.75 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21754]: NOTICE: <script>: Reply from Inbound - S=100 - Trying M=INVITE IP=udp:127.0.0.1:5062 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21754]: NOTICE: <script>: Sending reply, fs='tcp:192.168.0.75:80' - ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21755]: NOTICE: <script>: Reply from Inbound - S=407 - Proxy Authentication Required M=INVITE IP=udp:127.0.0.1:5062 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21755]: NOTICE: <script>: Sending reply, fs='tcp:192.168.0.75:80' - ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: New request - M=ACK R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=ws:192.168.0.2:11970 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: Relaying request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' - R=sip:101 at 192.168.0.75 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: New request - M=INVITE R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=ws:192.168.0.2:11970 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: Relaying request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' - R=sip:101 at 192.168.0.75 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21756]: NOTICE: <script>: Reply from Inbound - S=100 - Trying M=INVITE IP=udp:127.0.0.1:5062 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21756]: NOTICE: <script>: Sending reply, fs='tcp:192.168.0.75:80' - ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21751]: NOTICE: <script>: Reply from Inbound - S=101 - Connecting M=INVITE IP=udp:127.0.0.1:5062 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21750]: NOTICE: <script>: New request - M=INVITE R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp F=sip:302109317387 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=udp:127.0.0.1:5080 ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1
Aug 24 20:30:04 spce lb[21750]: NOTICE: <script>: Relaying request, du='sip:192.168.0.70:5060', fs='udp:192.168.0.75:5060' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1
Aug 24 20:30:04 spce lb[21745]: NOTICE: <script>: Reply from Outbound - S=488 - Not Acceptable Here M=INVITE IP=udp:192.168.0.70:5060 ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1
Aug 24 20:30:04 spce lb[21745]: NOTICE: <script>: Sending reply, fs='udp:127.0.0.1:5060' - ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1
Aug 24 20:30:04 spce lb[21749]: NOTICE: <script>: New request - M=ACK R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp F=sip:302109317387 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=udp:127.0.0.1:5080 ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1
Aug 24 20:30:04 spce lb[21749]: NOTICE: <script>: Relaying request, du='sip:192.168.0.70:5060', fs='udp:192.168.0.75:5060' - R=sip:101 at 192.168.0.70:5060;user=phone;transport=udp ID=f3127433-09c3-52a6-b7f5-818eeb333e05_b2b-1
Aug 24 20:30:04 spce lb[21752]: NOTICE: <script>: Reply from Inbound - S=488 - Not Acceptable Here M=INVITE IP=udp:127.0.0.1:5062 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21752]: NOTICE: <script>: Sending reply, fs='tcp:192.168.0.75:80' - ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: New request - M=ACK R=sip:101 at 192.168.0.75 F=sip:102 at 192.168.0.75 T=sip:101 at 192.168.0.75 IP=ws:192.168.0.2:11970 ID=f3127433-09c3-52a6-b7f5-818eeb333e05
Aug 24 20:30:04 spce lb[21762]: NOTICE: <script>: Relaying request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' - R=sip:101 at 192.168.0.75 ID=f3127433-09c3-52a6-b7f5-818eeb333e05







Kind regards,

Nicholas Papadakos




-----Original Message-----
From: spce-user-bounces at lists.sipwise.com [mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Andreas Granig
Sent: Saturday, August 24, 2013 12:06 PM
To: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] Websockets in CE 3.0

Hi,

Looks like the lb config is missing the tcp_accept_no_cl option by default.

Add the line

tcp_accept_no_cl=yes

to your /etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.tt2 file somewhere near the top.

We'll push a fixed template soon.

Andreas

On 08/24/2013 05:02 AM, Nicholas Papadakos wrote:
> Anyone on this ?
>
> Have the same problem.
>
> *From:*spce-user-bounces at lists.sipwise.com
> [mailto:spce-user-bounces at lists.sipwise.com] *On Behalf Of *Bartel 
> Verkruijssen
> *Sent:* Monday, August 19, 2013 4:58 PM
> *To:* spce-user at lists.sipwise.com
> *Subject:* [Spce-user] Websockets in CE 3.0
>
>
>
> Hi,
>
> I’m running CE 3.0 ,
>
> It supposed to support websockets, I went true the kamailio.cfg and 
> compared with my standalone  kamailio config that works with websockets.
> All looks good.
>
> I tried to changed the Kamailio listen port for;
>
>   ‘listen tcp:xxx.xxx.xxx.xxx:80’
>
> To 
> /etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.customtt.tt2
>
> (changed apache port)
>
> I’m testing with sipML5
>
> Websockets server URL : ws://xxx.xxx.xxx.xxx/ws
>
> And then standard SIP credentials,
>
> Tcpdump give nothing back; Just an incoming request
>
> Tcpdump port 80 –w dump.txt ;
>
> ^D     o GET /ws HTTP/1.1
>
> Upgrade: websocket
>
> Connection: Upgrade
>
> Host: XXX.XXX.com
>
> Origin: http://XXX.com
>
> Sec-WebSocket-Protocol: sip
>
> Pragma: no-cache
>
> Cache-Control: no-cache
>
> Sec-WebSocket-Key: //rdNFnQhrRH8tPfLBUGGg==
>
> Sec-WebSocket-Version: 13
>
> Sec-WebSocket-Extensions: x-webkit-deflate-frame
>
> User-Agent: Mozilla/5.0 (Macintos
>
> In what direction do I have to look?
>
> Bartel
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>

_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/listinfo/spce-user





More information about the Spce-user mailing list