sipml5 with Kamailio

1,006 views
Skip to first unread message

Carlos Ruiz Díaz

unread,
Aug 7, 2012, 11:00:04 AM8/7/12
to doub...@googlegroups.com
Hello list,

I'm trying to use sipml5 with Kamailio + websocket module but for now I'm having no luck. What are the steps to follow in order to get it working at least for the SIP signaling?

I downloaded the project and put it accessible via HTTP but when I fill the input boxes with the credentials of my localhost's kamailio, I don't get any TCP or UDP packet captured by Wireshark, in fact, sipml5 reports "Temporarily Unavailable" but apparently, there was no traffic coming out of my browser.

Regards.

Carlos.

Mamadou

unread,
Aug 7, 2012, 12:07:26 PM8/7/12
to Doubango
If you post the javascript console logs we could help.

On Aug 7, 5:00 pm, Carlos Ruiz Díaz <carlos.ruizd...@gmail.com> wrote:
> Hello list,
>
> I'm trying to use sipml5 with Kamailio + websocket module but for now I'm
> having no luck. What are the steps to follow in order to get it working at
> least for the SIP signaling?
>
> I downloaded the project and put it accessible via HTTP but when I fill the
> input boxes with the credentials of my localhost's kamailio, I don't get
> any TCP or UDP packet captured by Wireshark, in fact, sipml5 reports
> "*Temporarily
> Unavailable" *but apparently, there was no traffic coming out of my browser.
>
> Regards.
>
> Carlos.

Carlos Ruiz Díaz

unread,
Aug 7, 2012, 12:21:35 PM8/7/12
to doub...@googlegroups.com
Thank you for answering.

Below is the javascript console output:

SIP stack start: proxy='sipml5.org:5062', realm='<sip:localhost>', impi='2000', impu='<sip:2000@localhost>' /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97
State machine: tsip_dialog_register_Started_2_InProgress_X_oRegister /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97
REGISTER request successfully sent /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97
__tsip_transport_ws_onmessage /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97
State machine: tsip_dialog_register_Any_2_Terminated_X_Error /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97
=== REGISTER Dialog terminated === /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97
Temporarily Unavailable

I noticed the proxy='sipml5.org:5062'. Where can I change that to make it point to my Kamailio proxy?

Regards.

Carlos.


--



Mamadou

unread,
Aug 7, 2012, 12:31:32 PM8/7/12
to Doubango
CTRL+F on 'call.htm' and you will find the string. The log shows
'5062' as destination port but it could change, so, try to hard-code
it.
I don't think 'localhost' will be resolved to the expected IP address.

On Aug 7, 6:21 pm, Carlos Ruiz Díaz <carlos.ruizd...@gmail.com> wrote:
> Thank you for answering.
>
> Below is the javascript console output:
>
> SIP stack start: proxy='sipml5.org:5062', realm='<sip:localhost>',
> impi='2000', impu='<sip:2000@localhost>'/sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> Connecting to 'ws://sipml5.org:5062'
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> Stack starting /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> __tsip_transport_ws_onopen
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> Stack started /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> State machine: tsip_dialog_register_Started_2_InProgress_X_oRegister
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> Connecting... /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> REGISTER request successfully sent
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> __tsip_transport_ws_onmessage
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> State machine: tsip_dialog_register_Any_2_Terminated_X_Error
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>
> === REGISTER Dialog terminated ===
> /sipml5/src/tinySAK/src/tsk_utils.js?svn=5:97<http://localhost/sipml5/src/tinySAK/src/tsk_utils.js?svn=5>

Carlos Ruiz Díaz

unread,
Aug 7, 2012, 3:35:16 PM8/7/12
to doub...@googlegroups.com
That's exactly what was happening. I changed the proxy and I put the actual IP instead of the domain name and now I can see a traffic flow coming out of my browser and entering Kamailio. 

I'll keep testing and I'll write a blog post about this it in order to help others having the same issue.

Thanks a lot for your help!

Carlos.

--



Mamadou

unread,
Aug 8, 2012, 12:37:28 PM8/8/12
to Doubango
Would be happy to add the link in our website

Juan Vasquez

unread,
Sep 5, 2012, 7:16:19 AM9/5/12
to doub...@googlegroups.com
Carlos

were you able to write the blog post? I am going to try the same set up and looking at how you did this would be great

Regards

-Juan

Carlos Ruiz Díaz

unread,
Sep 5, 2012, 7:42:45 AM9/5/12
to doub...@googlegroups.com
Sorry, I wasn't able to get to that part yet. If I remember it right, there was a discussion about this on SR mailing list too, you may find useful information there.

Regards.

Carlos.

--
 
 

Iwan Budi Kusnanto

unread,
Sep 5, 2012, 9:32:02 PM9/5/12
to doub...@googlegroups.com
On Wed, Sep 5, 2012 at 6:16 PM, Juan Vasquez <j...@google.com> wrote:
> Carlos
>
> were you able to write the blog post? I am going to try the same set up and
> looking at how you did this would be great

You can follow the guide on this thread
http://www.mail-archive.com/sr-...@lists.sip-router.org/msg13976.html

>
> Regards
>
> -Juan

--
Iwan Budi Kusnanto
Reply all
Reply to author
Forward
0 new messages