Hi Carlos, Thanks for the help, I've tried the dispatcher module to no avail, this time round I've attached my config gist at https://gist.github.com/steve-ng/d54b2cd14ad6500c1ed0
I followed primarily from https://gist.github.com/jesusprubio/4066845 where I could use JSSIP to talk to another JSSIP user if their sip uri is my address. However if I use the sip trunk end point eg. sip:1...@siptrunk.xxx.com, it wouldn't work. JSSIP would be stuck at the connected status until timeout with the error: *SIP registration error: Request Timeout.* I've followed http://kamailio.org/docs/modules/1.4.x/dispatcher.html the use of dispatcher and at line 473 and 474 with the forward. The file /usr/local/etc/kamailio/dispatcher.list is something like: # proxies 2 sip:siptrunk.xxx.com Any advice? thanks! On Sun, Jun 1, 2014 at 12:05 AM, Carlos Ruiz Díaz <carlos.ruizd...@gmail.com > wrote: > > > > On Sat, May 31, 2014 at 9:45 AM, Steve Ng <steveng.1...@gmail.com> wrote: > >> Hi, >> >> I've managed to set up WS, users with JSSIP can connect to Kamailio after >> reading up on the websocket module documentation. >> >> 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). >> > > I don't know your variables, but setting Kamailio as outbound proxy for > all requests coming from your webrtc UA could make the trick. > > >> >> Do you have any config that do something like this to share? >> > >> > >> Regards >> >> >> On Sat, May 31, 2014 at 10:10 PM, Carlos Ruiz Díaz < >> carlos.ruizd...@gmail.com> wrote: >> >>> 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. >>> >>> 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]. >>> >>> [1] https://github.com/caruizdiaz/kamailio-ws >>> >>> Regards >>> >>> >>> On Sat, May 31, 2014 at 7:43 AM, Steve Ng <steveng.1...@gmail.com> >>> wrote: >>> >>>> Hi, >>>> >>>> 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? >>>> >>>> Is there anyway that I could use Kamailio as the middleman? Is it a >>>> combination of dispatcher module and websocket module? >>>> >>>> Thanks! >>>> >>>> Regards, >>>> Steve >>>> >>>> _______________________________________________ >>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >>>> sr-users@lists.sip-router.org >>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >>>> >>>> >>> >>> >>> -- >>> Carlos >>> http://caruizdiaz.com >>> http://ngvoice.com >>> +52 55 3048 3303 >>> >>> _______________________________________________ >>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >>> sr-users@lists.sip-router.org >>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >>> >>> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users@lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> > > > -- > Carlos > http://caruizdiaz.com > http://ngvoice.com > +52 55 3048 3303 > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > >
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users