Re: How to setup sipml5 server with websocket sip proxy ?

1,667 views
Skip to first unread message

Mamadou

unread,
Sep 4, 2012, 8:23:18 AM9/4/12
to discuss-doubango
The components to use depend on your server capabilities.
1)If your server supports SIP over websockets then, you don't need a
gateway. Most of open source SIP servers (e.g. Asterisk or kamailio)
are working to add this new transport to their products but I'm not
following the discussion so, cannot say if it works or not. Just
search for [kamailio sipml5] or [Astrisk sipml5] and you will get many
results.
2)To be sure that your solution will work with any SIP server
regardless of the support for websocket, you will need a gateway/proxy
to convert the ws transport to udp, tcp, tls or dtls. Here is where
webrtc2sip (http://code.google.com/p/webrtc2sip/) comes in action. The
home page contains instructions on how to build the source code and
change sipml5 connection information.
If you have any issue build webrtc2sip, please check the thread at
https://groups.google.com/group/doubango/browse_frm/thread/b2b0a2ba11e03f72#

On Sep 4, 12:48 pm, mady09 <madswe...@gmail.com> wrote:
> Hi, I used the iptel.org and sipml5 it was great. How to setup sipml5
> server with websocket sip proxy in my machine ?

mady09

unread,
Sep 5, 2012, 2:54:57 AM9/5/12
to doub...@googlegroups.com
Thank you very much for your suggestions. As they mentioned i am using one of the RH Linux distributions. I have checked out the r9737 Resiprocate source and patch file.
i copied the patch file to Resiprocate folder(having all the source svn checked out files) and ran the following command and further many errors. Is there any Linux distribution should i use and any environment setup in the linux to compile the Resiprocate server?

resiprocate]$ patch -p0 -i ./webrtc2sip.patch

patching file Makefile.am
patching file reSIProcate_9_0.sln
patching file repro/AclStore.cxx
Hunk #1 FAILED at 498.
1 out of 1 hunk FAILED -- saving rejects to file repro/AclStore.cxx.rej
patching file repro/RRDecorator.cxx
patching file repro/ReproRunner.cxx
patching file repro/ReproRunner.hxx
patching file repro/RequestContext.cxx
Hunk #1 FAILED at 148.
Hunk #2 FAILED at 183.
Hunk #3 FAILED at 392.
Hunk #4 FAILED at 638.
4 out of 4 hunks FAILED -- saving rejects to file repro/RequestContext.cxx.rej
patching file repro/monkeys/AmIResponsible.cxx
Hunk #1 FAILED at 118.
1 out of 1 hunk FAILED -- saving rejects to file repro/monkeys/AmIResponsible.cxx.rej
patching file repro/repro.config
Hunk #1 FAILED at 9.
Hunk #2 FAILED at 34.
Hunk #3 FAILED at 106.
Hunk #4 FAILED at 123.
Hunk #5 FAILED at 133.
Hunk #6 FAILED at 243.
Hunk #7 FAILED at 292.
Hunk #8 FAILED at 304.
Hunk #9 FAILED at 390.
9 out of 9 hunks FAILED -- saving rejects to file repro/repro.config.rej
patching file repro/repro_9_0.vcproj
patching file repro/reprolib_9_0.vcproj


................
...............
.....................

Mamadou

unread,
Sep 5, 2012, 3:42:50 AM9/5/12
to doub...@googlegroups.com, mady09
It should work on all Linux distros. I tried on CentOS64, Ubuntu 12.4 and Debian myself.
Your error doesn't look to be related to Resiprocate but concern patching a file. Search for "Hunk #1 FAILED" on google gives many results.
--
 
 

Iwan Budi Kusnanto

unread,
Sep 5, 2012, 6:42:48 AM9/5/12
to doub...@googlegroups.com
On Tue, Sep 4, 2012 at 7:23 PM, Mamadou <diopm...@doubango.org> wrote:
> The components to use depend on your server capabilities.
> 1)If your server supports SIP over websockets then, you don't need a
> gateway. Most of open source SIP servers (e.g. Asterisk or kamailio)
> are working to add this new transport to their products but I'm not
> following the discussion so, cannot say if it works or not. Just
> search for [kamailio sipml5] or [Astrisk sipml5] and you will get many
> results.

Kamailio with their websocket module is working fine with sipml5.
But, you need to download the source code from git repo.

--
Iwan Budi Kusnanto

Muhammad Shahzad

unread,
Sep 5, 2012, 6:03:38 PM9/5/12
to doub...@googlegroups.com
I have similar error too, but its happening only on three locations. Here is the output of patch command on my debian 605.

patching file Makefile.am
patching file reSIProcate_9_0.sln
patching file repro/AclStore.cxx
patching file repro/RRDecorator.cxx
patching file repro/ReproRunner.cxx
patching file repro/ReproRunner.hxx
patching file repro/RequestContext.cxx
patching file repro/monkeys/AmIResponsible.cxx
patching file repro/repro.config
patching file repro/repro_9_0.vcproj
patching file repro/reprolib_9_0.vcproj
patching file resip/dum/dum_9_0.vcproj
patching file resip/stack/Connection.cxx
patching file resip/stack/ConnectionBase.cxx
patching file resip/stack/ConnectionBase.hxx
patching file resip/stack/DnsInterface.cxx
patching file resip/stack/DnsResult.cxx
patching file resip/stack/EnableFlowTimer.hxx
patching file resip/stack/HeaderHash.cxx
patching file resip/stack/HeaderHash.gperf
patching file resip/stack/HeaderTypes.hxx
patching file resip/stack/Headers.cxx
patching file resip/stack/Headers.hxx
patching file resip/stack/KeepAlivePong.hxx
patching file resip/stack/Makefile
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 165.
Hunk #3 FAILED at 218.
3 out of 3 hunks FAILED -- saving rejects to file resip/stack/Makefile.rej
patching file resip/stack/Makefile.am
patching file resip/stack/MessageFilterRule.cxx
patching file resip/stack/MethodHash.cxx
patching file resip/stack/ParameterHash.cxx
patching file resip/stack/ParameterHash.gperf
patching file resip/stack/ParameterTypeEnums.hxx
patching file resip/stack/ParameterTypes.cxx
patching file resip/stack/ParameterTypes.hxx
patching file resip/stack/SipMessage.cxx
patching file resip/stack/SipMessage.hxx
patching file resip/stack/SipStack.cxx
patching file resip/stack/Symbols.cxx
patching file resip/stack/Symbols.hxx
patching file resip/stack/TerminateFlow.hxx
patching file resip/stack/TransactionState.cxx
patching file resip/stack/TransportSelector.cxx
patching file resip/stack/Uri.cxx
patching file resip/stack/Uri.hxx
patching file resip/stack/WsDecorator.cxx
patching file resip/stack/WsDecorator.hxx
patching file resip/stack/WsTransport.cxx
patching file resip/stack/WsTransport.hxx
patching file resip/stack/gperf_w32.bat
patching file resip/stack/resiprocate_10_0.vcxproj
patching file resip/stack/resiprocate_10_0.vcxproj.filters
patching file resip/stack/resiprocate_8_0.vcproj
patching file resip/stack/resiprocate_9_0.vcproj
patching file rutil/TransportType.cxx
patching file rutil/TransportType.hxx
patching file rutil/dns/RRCache.cxx
patching file rutil/rutil_9_0.vcproj

Any help on that please?

Thank you.


--
 
 



--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari...@hotmail.com
Email: shahe...@googlemail.com

Mamadou

unread,
Sep 6, 2012, 4:43:49 AM9/6/12
to doub...@googlegroups.com, Muhammad Shahzad
I have updated the patch and removed "Makefile".
--
 
 

Muhammad Shahzad

unread,
Sep 6, 2012, 5:34:51 AM9/6/12
to doub...@googlegroups.com
Thanks, let me try it.

Thank you.

mady09

unread,
Sep 7, 2012, 2:19:24 AM9/7/12
to doub...@googlegroups.com, mady09
Hi Mamadou ,

         Thanks a lot for your help ... i ran it on mac osx 10.6.8 ... by "compiling" BDB source for mac and then resiprocate source .. !!!  :)
Reply all
Reply to author
Forward
0 new messages