[SR-Users] Faild to add Subscription via WebRTC2SIP websocket GW

Raj Roy Ghandhi roy.gandhi at gmail.com
Thu May 30 10:14:16 CEST 2013


Hi Friends,
I am using Kamailio 4.0 SIP Proxy GW  + WebRTC2SIP 2 web socket GW to
maintain the presence status of SIPMP5 clients.

When I subscriber for presence statue of contact I get the following error
and no record get inserted into the "active_wathcers" table.

 5(7435) WARNING: <core> [msg_translator.c:2499]: TCP/TLS connection (id:
0) for WebSocket could not be found
 5(7435) ERROR: tm [t_msgbuilder.c:1367]: assemble_via: via building failed
 5(7435) ERROR: tm [t_msgbuilder.c:1540]: build_uac_req(): Error while
assembling Via
 5(7435) ERROR: tm [uac.c:338]: t_uac: Error while building message
 5(7435) ERROR: presence [notify.c:1591]: in function tmb.t_request_within
 5(7435) ERROR: presence [subscribe.c:1613]: send Notify not successful
 5(7435) ERROR: presence [subscribe.c:2129]: in function
handle_expired_record
 5(7435) ERROR: presence [subscribe.c:464]: Failed to delete subscription
from memory


Here is the SIPML5 console log for that perticular area

State machine: tsip_dialog_generic_Any_2_InProgress_X_oSubscribe
tsk_utils.js?svn=20:110
SEND: SUBSCRIBE sip:1005 at sip.mysip.com SIP/2.0
Via: SIP/2.0/WS
df7jal23ls0d.invalid;branch=z9hG4bKLmNGlDNlChMuoGqF9qFzMS7dOk5h0E5T;rport
From: <sip:1004 at sip.mysip.com>;tag=FRInEZSEyF7xFFuCHMK3
To: <sip:1005 at sip.mysip.com>
Contact: "undefined"<sip:1004 at df7jal23ls0d.invalid
;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;+audio;language="en,fr"
Call-ID: 1267da78-fbd1-cdcd-ee45-5cde2d2650bf
CSeq: 27396 SUBSCRIBE
Expires: 200
Content-Length: 0
Max-Forwards: 70
Event: presence
Accept: application/pidf+xml

 tsk_utils.js?svn=20:110
session event = type = connecting - description = Connecting...
test_api.html:51
__tsip_transport_ws_onmessage tsk_utils.js?svn=20:110
recv=SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/WS
df7jal23ls0d.invalid;rport=20124;received=192.168.1.55;branch=z9hG4bKLmNGlDNlChMuoGqF9qFzMS7dOk5h0E5T
From: <sip:1004 at sip.mysip.com>;tag=FRInEZSEyF7xFFuCHMK3
To: <sip:1005 at sip.mysip.com>;tag=b01221cac0ed2edd8409481b9ce2d72c.ac8c
Call-ID: 1267da78-fbd1-cdcd-ee45-5cde2d2650bf
CSeq: 27396 SUBSCRIBE
Content-Length: 0
Proxy-Authenticate: Digest realm="sip.mysip.com
",nonce="UaaBx1GmgJtqCoZzmu9Tskw+AmewKCiC",stale=FALSE
Server: kamailio (4.0.1 (x86_64/linux))

 tsk_utils.js?svn=20:110
State machine:
tsip_dialog_generic_InProgress_2_InProgress_X_401_407_421_494
tsk_utils.js?svn=20:110
SEND: SUBSCRIBE sip:1005 at sip.mysip.com SIP/2.0
Via: SIP/2.0/WS
df7jal23ls0d.invalid;branch=z9hG4bKpPobVdaUhPHunxtfAuQFOlkfEeGs2ksE;rport
From: <sip:1004 at sip.mysip.com>;tag=FRInEZSEyF7xFFuCHMK3
To: <sip:1005 at sip.mysip.com>
Contact: "undefined"<sip:1004 at df7jal23ls0d.invalid
;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;+audio;language="en,fr"
Call-ID: 1267da78-fbd1-cdcd-ee45-5cde2d2650bf
CSeq: 27397 SUBSCRIBE
Expires: 200
Content-Length: 0
Max-Forwards: 70
Proxy-Authorization: Digest username="1004",realm="sip.mysip.com
",nonce="UaaBx1GmgJtqCoZzmu9Tskw+AmewKCiC",uri="sip:1005 at sip.mysip.com
",response="223e983b8e2de2b04dbcd2ac9fc0b17d",algorithm=MD5
Event: presence
Accept: application/pidf+xml

 tsk_utils.js?svn=20:110
__tsip_transport_ws_onmessage tsk_utils.js?svn=20:110
recv=SIP/2.0 202 OK
Via: SIP/2.0/WS
df7jal23ls0d.invalid;rport=20124;received=192.168.1.55;branch=z9hG4bKpPobVdaUhPHunxtfAuQFOlkfEeGs2ksE
From: <sip:1004 at sip.mysip.com>;tag=FRInEZSEyF7xFFuCHMK3
To: <sip:1005 at sip.mysip.com>;tag=2a2b07acfe8894f890540e2e919abb3e-1594
Contact: <sip:192.168.1.15:8080;transport=ws>
Call-ID: 1267da78-fbd1-cdcd-ee45-5cde2d2650bf
CSeq: 27397 SUBSCRIBE
Expires: 200
Content-Length: 0
Server: kamailio (4.0.1 (x86_64/linux))

 tsk_utils.js?svn=20:110
State machine: tsip_dialog_generic_InProgress_2_Connected_X_2xx
tsk_utils.js?svn=20:110
__tsip_transport_ws_onmessage tsk_utils.js?svn=20:110
recv=NOTIFY sip:1004 at 192.168.1.55:20124;rtcweb-breaker=no;click2call=no;transport=ws
SIP/2.0
Via: SIP/2.0/WS 192.168.1.15:8080
;branch=z9hG4bK4b8a.ab27a051000000000000000000000000.0
From: <sip:1005 at sip.mysip.com>;tag=2a2b07acfe8894f890540e2e919abb3e-1594
To: <sip:1004 at sip.mysip.com>;tag=FRInEZSEyF7xFFuCHMK3
Contact: <sip:192.168.1.15:8080;transport=ws>
Call-ID: 1267da78-fbd1-cdcd-ee45-5cde2d2650bf
CSeq: 2 NOTIFY
Content-Length: 0
User-Agent: kamailio (4.0.1 (x86_64/linux))
Max-Forwards: 70
Event: presence
Subscription-State: active;expires=200

 tsk_utils.js?svn=20:110
State machine: tsip_dialog_generic_Any_2_Any_X_iNotify
tsk_utils.js?svn=20:110
session event = type = i_ao_request - description = OK test_api.html:51
session event = type = connected - description = Connected test_api.html:51
SEND: SIP/2.0 200 OK
Via: SIP/2.0/WS 192.168.1.15:8080
;branch=z9hG4bK4b8a.ab27a051000000000000000000000000.0
From: <sip:1005 at sip.mysip.com>;tag=2a2b07acfe8894f890540e2e919abb3e-1594
To: <sip:1004 at sip.mysip.com>;tag=FRInEZSEyF7xFFuCHMK3
Contact: <sip:1004 at df7jal23ls0d.invalid;transport=ws>
Call-ID: 1267da78-fbd1-cdcd-ee45-5cde2d2650bf
CSeq: 2 NOTIFY
Content-Length: 0

 tsk_utils.js?svn=20:110
session event = type = i_notify - description = Incoming NOTIFY
test_api.html:51
NOTIFY content =  test_api.html:72
NOTIFY content-type = null


Please guide me on this.

Best Regards,
Roy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130530/6bd883c0/attachment.html>


More information about the sr-users mailing list