[SR-Users] 408 Request Timeout

2015-09-03 Thread vamsi
I am an web developer and want to create a WEBRTC application. My knowledge
level in SIP is beginner. I want my application to talk to kamailio and in
process of setting up kamailio by following the below articles.

http://nil.uniza.sk/sip/kamailio/configuring-kamailio-4x-websocket
http://kamailio.org/docs/modules/4.3.x/modules/websocket.html

I was able to connect (using try.jssp.net) to kamailio as multiple clients
for initial setup and successfully able to get voice and video working.

But I'm unable to send messages between clients and receive "408 Request
Timeout" error.
I have the presence and presence_xml modules loaded and have the
# - mi_fifo params -
modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")

# - ctl params -
modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl")

Below is the log.  Any help is appreciated.

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_conn.c:382]: wsconn_put(): wsconn_put start for [0x7f06a2a76298] refcnt
[2]

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_conn.c:415]: wsconn_put(): wsconn_put end for [0x7f06a2a76298] refcnt
[1]

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: exec: ***
cfgtrace:request_route=[AUTH] c=[/usr/local/etc/kamailio/kamailio.cfg]
l=825 a=2 n=exit

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[usr_avp.c:631]: destroy_avp_list(): destroying list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[xavp.c:446]: xavp_destroy_list(): destroying xavp list (nil)

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[receive.c:278]: receive_msg(): cleaning up

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: 
[tcp_read.c:1153]: ws_process_msg(): WebSocket Message:
[[>>>#012??#002?E?<<<]]

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_conn.c:429]: wsconn_get(): wsconn_get for id [2]

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_conn.c:437]: wsconn_get(): wsconn_get returns wsc [0x7f06a2a76298]
refcnt [2]

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_frame.c:415]: decode_and_validate_ws_frame(): decoding WebSocket frame

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_frame.c:456]: decode_and_validate_ws_frame(): supported non-control
frame: 0x1

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_frame.c:555]: decode_and_validate_ws_frame(): Rx (decoded): MESSAGE
sip:abc...@ip-205-64-10.dqa.capitalone.com SIP/2.0#015#012Via: SIP/2.0/WS
kjh0uotuqma6.invalid;branch=z9hG4bK9552000#015#012Max-Forwards:
69#015#012To: #015#012From:
"xyz987" ;tag=c1joq54vne#015#012Call-ID:
orel8as144p4ebuuf96n#015#012CSeq: 1977 MESSAGE#015#012Proxy-Authorization:
Digest algorithm=MD5, username="xyz987", realm="ip-205-64-10.test.com",
nonce="Vee3iFXntlzqK/kDTxUAIxwI55RzH/ll", uri="
sip:abc...@ip-205-64-10.test.com",
response="0d513943ed7a0234b7016c5f4546b0b7"#015#012Content-Type:
text/plain#015#012Allow:
INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER#015#012Supported:
outbound#015#012User-Agent: JsSIP 0.7.4#015#012Content-Length:
13#015#012#015#012samplemsgwork

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_frame.c:659]: ws_frame_receive(): Rx SIP message:#012MESSAGE
sip:abc...@ip-10-255-54-20.test.com SIP/2.0#015#012Via: SIP/2.0/WS
kjh0uotuqma6.invalid;branch=z9hG4bK9552000#015#012Max-Forwards:
69#015#012To: #015#012From: "xyz987" <
sip:xyz...@ip-10-255-54-20.test.com:8088>;tag=c1joq54vne#015#012Call-ID:
orel8as144p4ebuuf96n#015#012CSeq: 1977 MESSAGE#015#012Proxy-Authorization:
Digest algorithm=MD5, username="xyz987", realm="ip-10-255-54-20.test.com",
nonce="Vee3iFXntlzqK/kDTxUAIxwI55RzH/ll", uri="
sip:abc...@ip-10-255-54-20.test.com",
response="0d513943ed7a0234b7016c5f4546b0b7"#015#012Content-Type:
text/plain#015#012Allow:
INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER#015#012Supported:
outbound#015#012User-Agent: JsSIP 0.7.4#015#012Content-Length:
13#015#012#015#012samplemsgwork

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_conn.c:382]: wsconn_put(): wsconn_put start for [0x7f06a2a76298] refcnt
[2]

Sep  2 22:54:20 ip-10-255-54-20 kamailio[10177]: DEBUG: websocket
[ws_conn.c:415]: 

Re: [SR-Users] 408 Request Timeout

2015-09-03 Thread Daniel-Constantin Mierla
Hello,

the log messages don't show that you change the r-uri of the MESSAGE --
e.g., no lookup("location").

By that I assume the request is not forwarded to the other user, but
attempted to be forwarded back to the server, which is not possible via
webscoket.

Be sure that you do location lookup for that request before forwarding.

Cheers,
Daniel

On 03/09/15 05:15, vamsi wrote:
>
> I am an web developer and want to create a WEBRTC application. My
> knowledge level in SIP is beginner. I want my application to talk to
> kamailio and in process of setting up kamailio by following the below
> articles.
>
> http://nil.uniza.sk/sip/kamailio/configuring-kamailio-4x-websockethttp://kamailio.org/docs/modules/4.3.x/modules/websocket.html
>
> I was able to connect (using try.jssp.net ) to
> kamailio as multiple clients for initial setup and successfully able
> to get voice and video working. 
>
> But I'm unable to send messages between clients and receive "408
> Request Timeout" error.  
> I have the presence and presence_xml modules loaded and have the 
> # - mi_fifo params - 
> modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo") 
>
> # - ctl params - 
> modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl") 
>
> Below is the log.  Any help is appreciated.
>
...

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users