Web Sockets VIA header parsing support in OpenSIPs

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Web Sockets VIA header parsing support in OpenSIPs

Muhammad Shahzad
Hi,

Just submitted a patch to OpenSIPs developers list, which allows parsing of WS protocol in VIA header. You can see the thread at,


This patch should work with any OpenSIPs version, trunk or stable 1.6.x, 1.7.x and 1.8.x series without any problem. Once applied and compiled, OpenSIPs can handle any SIP message from WebRTC enabled SIP client such as SIPML5 through intermediate SIP proxy (providing Web Sockets to TCP / UDP transport conversion) such WebRTC2SIP or OverSIP, e.g.

Caller UA (SIPML5 / Any Doubango based UA) -> WebRTC2SIP / OverSIP -> OpenSIPs -> WebRTC2SIP / OverSIP -> Callee UA (SIPML5 / Any Doubango based UA)

Thank you.


--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B92%20334%20422%2040%2088" value="+923344224088" target="_blank">+92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Web Sockets VIA header parsing support in OpenSIPs

SamyGo

Thats a great news. Can we get a small introduction about using this too?

Regards,
Sammy

On Aug 12, 2012 1:49 PM, "Muhammad Shahzad" <[hidden email]> wrote:
Hi,

Just submitted a patch to OpenSIPs developers list, which allows parsing of WS protocol in VIA header. You can see the thread at,


This patch should work with any OpenSIPs version, trunk or stable 1.6.x, 1.7.x and 1.8.x series without any problem. Once applied and compiled, OpenSIPs can handle any SIP message from WebRTC enabled SIP client such as SIPML5 through intermediate SIP proxy (providing Web Sockets to TCP / UDP transport conversion) such WebRTC2SIP or OverSIP, e.g.

Caller UA (SIPML5 / Any Doubango based UA) -> WebRTC2SIP / OverSIP -> OpenSIPs -> WebRTC2SIP / OverSIP -> Callee UA (SIPML5 / Any Doubango based UA)

Thank you.


--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B92%20334%20422%2040%2088" value="+923344224088" target="_blank">+92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Web Sockets VIA header parsing support in OpenSIPs

Muhammad Shahzad
This patch only allows parsing of WS VIA in OpenSIPs, you still need some WS to SIP proxy like OverSIP to receive calls from WebRTC clients. So just setup OverSIP proxy and configure it to forward all traffic from WebRTC clients to OpenSIPs, and then you can do everything that OpenSIPs can do for traffic coming from a SIP end-point.

Thank you.


On Sun, Aug 12, 2012 at 11:22 AM, SamyGo <[hidden email]> wrote:

Thats a great news. Can we get a small introduction about using this too?

Regards,
Sammy

On Aug 12, 2012 1:49 PM, "Muhammad Shahzad" <[hidden email]> wrote:
Hi,

Just submitted a patch to OpenSIPs developers list, which allows parsing of WS protocol in VIA header. You can see the thread at,


This patch should work with any OpenSIPs version, trunk or stable 1.6.x, 1.7.x and 1.8.x series without any problem. Once applied and compiled, OpenSIPs can handle any SIP message from WebRTC enabled SIP client such as SIPML5 through intermediate SIP proxy (providing Web Sockets to TCP / UDP transport conversion) such WebRTC2SIP or OverSIP, e.g.

Caller UA (SIPML5 / Any Doubango based UA) -> WebRTC2SIP / OverSIP -> OpenSIPs -> WebRTC2SIP / OverSIP -> Callee UA (SIPML5 / Any Doubango based UA)

Thank you.


--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B92%20334%20422%2040%2088" value="+923344224088" target="_blank">+92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Web Sockets VIA header parsing support in OpenSIPs

Muhammad Shahzad
Many people have already asked me on how to setup OverSIP, so here is my reply which i posted to Kamailio mailing list about a week ago,

http://lists.sip-router.org/pipermail/sr-dev/2012-August/016112.html 

Feel free to ask if you need further help.

Thank you.


On Sun, Aug 12, 2012 at 5:04 PM, Muhammad Shahzad <[hidden email]> wrote:
This patch only allows parsing of WS VIA in OpenSIPs, you still need some WS to SIP proxy like OverSIP to receive calls from WebRTC clients. So just setup OverSIP proxy and configure it to forward all traffic from WebRTC clients to OpenSIPs, and then you can do everything that OpenSIPs can do for traffic coming from a SIP end-point.

Thank you.


On Sun, Aug 12, 2012 at 11:22 AM, SamyGo <[hidden email]> wrote:

Thats a great news. Can we get a small introduction about using this too?

Regards,
Sammy

On Aug 12, 2012 1:49 PM, "Muhammad Shahzad" <[hidden email]> wrote:
Hi,

Just submitted a patch to OpenSIPs developers list, which allows parsing of WS protocol in VIA header. You can see the thread at,


This patch should work with any OpenSIPs version, trunk or stable 1.6.x, 1.7.x and 1.8.x series without any problem. Once applied and compiled, OpenSIPs can handle any SIP message from WebRTC enabled SIP client such as SIPML5 through intermediate SIP proxy (providing Web Sockets to TCP / UDP transport conversion) such WebRTC2SIP or OverSIP, e.g.

Caller UA (SIPML5 / Any Doubango based UA) -> WebRTC2SIP / OverSIP -> OpenSIPs -> WebRTC2SIP / OverSIP -> Callee UA (SIPML5 / Any Doubango based UA)

Thank you.


--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B92%20334%20422%2040%2088" value="+923344224088" target="_blank">+92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B92%20334%20422%2040%2088" value="+923344224088" target="_blank">+92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]



--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Web Sockets VIA header parsing support in OpenSIPs

Hadi Ams
In reply to this post by Muhammad Shahzad
Dear Muhammad ,
Can you please briefly explain how to forward the traffic from Oversip to OpenSips ?
I am not exactly sure what to change in oversip.conf (or should I try something with proxies.conf ) and how to play with incoming traffic settings in OpenSips .
At the moment in outgoing "REGISTER" messages, OverSip uses the private IP address of the server in "PATH" and "VIA" headers, therefore I am not able to receive responses from the REGISTRAR.
I am using sipml5 ==> OverSips =??=> OpenSips

your help is much appreciated.


On Sunday, August 12, 2012 5:04:27 PM UTC+2, Muhammad Shahzad wrote:
This patch only allows parsing of WS VIA in OpenSIPs, you still need some WS to SIP proxy like OverSIP to receive calls from WebRTC clients. So just setup OverSIP proxy and configure it to forward all traffic from WebRTC clients to OpenSIPs, and then you can do everything that OpenSIPs can do for traffic coming from a SIP end-point.

Thank you.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Web Sockets VIA header parsing support in OpenSIPs

Muhammad Shahzad
You don't need to change anything in OverSIP, just install it with default configuration and in SIPML5, change websockets server IP and port to where OverSIP is running and then from browser open the call.htm page and give account details for your OpenSIPs, as if you are connecting to OpenSIPs from a soft phone. OverSIP will handle the rest. It will receive request from SIPML5 over Websocket and forward it OpenSIPs after adding appropriate PATH and VIA headers.

On OpenSIPs end, you need the patch mentioned in this email thread and recompile opensips with it. Then you can receive SIP requests from OverSIPs and you can process them whatever way you want as if the requests are coming from SIP client through an intermediate SIP proxy.

Thank you.


On Thu, Aug 23, 2012 at 1:06 PM, Hadi Ams <[hidden email]> wrote:
Dear Muhammad ,
Can you please briefly explain how to forward the traffic from Oversip to OpenSips ?
I am not exactly sure what to change in oversip.conf (or should I try something with proxies.conf ) and how to play with incoming traffic settings in OpenSips .
At the moment in outgoing "REGISTER" messages, OverSip uses the private IP address of the server in "PATH" and "VIA" headers, therefore I am not able to receive responses from the REGISTRAR.
I am using sipml5 ==> OverSips =??=> OpenSips

your help is much appreciated.


On Sunday, August 12, 2012 5:04:27 PM UTC+2, Muhammad Shahzad wrote:
This patch only allows parsing of WS VIA in OpenSIPs, you still need some WS to SIP proxy like OverSIP to receive calls from WebRTC clients. So just setup OverSIP proxy and configure it to forward all traffic from WebRTC clients to OpenSIPs, and then you can do everything that OpenSIPs can do for traffic coming from a SIP end-point.

Thank you.



--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users