<div dir="ltr">Hi Carlos,<div><br></div><div>Thanks for the help, I've tried the dispatcher module to no avail, this time round I've attached my config gist at <a href="https://gist.github.com/steve-ng/d54b2cd14ad6500c1ed0">https://gist.github.com/steve-ng/d54b2cd14ad6500c1ed0</a> </div>
<div><br></div><div>I followed primarily from <a href="https://gist.github.com/jesusprubio/4066845">https://gist.github.com/jesusprubio/4066845</a> where I could use JSSIP to talk to another JSSIP user if their sip uri is my address. </div>
<div><br></div><div>However if I use the sip trunk end point eg. <a href="mailto:sip%3A1001@siptrunk.xxx.com">sip:1001@siptrunk.xxx.com</a>, it wouldn't work. JSSIP would be stuck at the connected status until timeout with the error: <i>SIP registration error: Request Timeout.</i></div>
<div><br></div><div>I've followed <a href="http://kamailio.org/docs/modules/1.4.x/dispatcher.html">http://kamailio.org/docs/modules/1.4.x/dispatcher.html</a> the use of dispatcher and at line 473 and 474 with the forward. </div>
<div><br></div><div>The file <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">/usr/local/etc/kamailio/dispatcher.list</span> is something like: </div>
<div><font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="font-size:12px;line-height:16.799999237060547px;white-space:pre"># proxies
2 sip:<a href="http://siptrunk.xxx.com">siptrunk.xxx.com</a></span></font><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">
</span></div><div><font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="font-size:12px;line-height:16.799999237060547px;white-space:pre"><br></span></font></div><div>Any advice? thanks! <font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="font-size:12px;line-height:16.799999237060547px;white-space:pre"><br>
</span></font></div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre"><br></span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jun 1, 2014 at 12:05 AM, 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"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">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>

</div><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 class=""><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></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 class="h5">
<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><div>
<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" 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></div></div><div><div class="h5"><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>
</div></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></div>