<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 31, 2014 at 9:45 AM, Steve Ng <span dir="ltr"><<a href="mailto:steveng.1988@gmail.com" target="_blank">steveng.1988@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I've managed to set up WS, users with JSSIP can connect to Kamailio after reading up on the websocket module documentation. </div>
<div><br></div><div>However, the proxying part of authentication to SIP provider through Kamailio is something that I need advice on (how to set in the config how).</div></div></blockquote><div><br></div><div>I don't know your variables, but setting Kamailio as outbound proxy for all requests coming from your webrtc UA could make the trick.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div><br></div><div>Do you have any config that do something like this to share? </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div> </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Regards</div></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 31, 2014 at 10:10 PM, Carlos Ruiz Díaz <span dir="ltr"><<a href="mailto:carlos.ruizdiaz@gmail.com" target="_blank">carlos.ruizdiaz@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Just proxy the authentication to their SIP providers, and let kamailio put itself in the path so it can bridge between UDP (probably) and WS transport. <div>

<br></div><div>You can use dispatcher, carrierroute, whatever module you want. The only non-ordinary thing here are the UA's communicating via websockets, and this scenario can be handled with websockets module. Maybe this example can suit you [1].</div>


<div><br></div><div>[1] <a href="https://github.com/caruizdiaz/kamailio-ws" target="_blank">https://github.com/caruizdiaz/kamailio-ws</a></div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

<div><div>
On Sat, May 31, 2014 at 7:43 AM, Steve Ng <span dir="ltr"><<a href="mailto:steveng.1988@gmail.com" target="_blank">steveng.1988@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>
<div dir="ltr">Hi,<div><br></div><div>My users are from a web application using JSSIP. They each have a sip trunk account, which could be from any provider.  JSSIP would connect to Kamailio's websocket server passing the SIP trunk credential information and Kamailio will relay it to that specific sip trunk provider?</div>



<div><br></div><div>Is there anyway that I could use Kamailio as the middleman? Is it a combination of dispatcher module and websocket module? <br></div><div><br></div><div>Thanks!</div><div><br></div><div>Regards,</div>


<div>
Steve</div></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Carlos<div><a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a></div><div><a href="http://ngvoice.com" target="_blank">http://ngvoice.com</a></div>


<div><a href="tel:%2B52%2055%203048%203303" value="+525530483303" target="_blank">+52 55 3048 3303</a></div></div>
</font></span></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Carlos<div><a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a></div><div><a href="http://ngvoice.com" target="_blank">http://ngvoice.com</a></div>
<div>+52 55 3048 3303</div></div>
</div></div>