Re: [SR-Users] using xHTTP module, bind port?

2015-03-13 Thread Daniel-Constantin Mierla
Hello, you can add: listen=tcp:1.2.3.4:8080 and handle http requests on that port. You can restrict to have only http traffic on that port adding in the event_route for xhttp: if(dst_port!=8080) { # send forbidden reply } Similar you can add in request_route for sip traffic to be on port

Re: [SR-Users] using xHTTP module, bind port?

2015-03-13 Thread SamyGo
Thanks Daniel, Thats really simple solution, the other thing I was wondering was Authentication since the interface was all open. Maybe I should put in similiar kind on configurations checks to verify users from DB etc ! Best Regards, Sammy. On Fri, Mar 13, 2015 at 4:27 AM, Daniel-Constantin

Re: [SR-Users] using xHTTP module, bind port?

2015-03-13 Thread Daniel-Constantin Mierla
You can use permissions module in event_route if you want to limit the access as well as user authentication with auth_check() (like for sip requests). Of course, alternative is to set rules in firewall for that port. In other words, you should be able to do pretty much the same things for

[SR-Users] using xHTTP module, bind port?

2015-03-12 Thread SamyGo
Hi All, I am just trying xhttp_rpc module http://www.kamailio.org/docs/modules/4.2.x/modules/xhttp_rpc.html Where can I set/change the port for this module ? currently its only 5060 !? Thanks, Sammy. ___ SIP Express Router (SER) and Kamailio (OpenSER)