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

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 13 16:55:28 CET 2015


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
authentication in xhttp event route as you do for sip in request_route.

Cheers,
Daniel

On 13/03/15 15:52, SamyGo wrote:
> 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 Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     you can add:
>
>     listen=tcp:1.2.3.4:8080 <http://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
>     5060 only.
>
>     Cheers,
>     Daniel
>
>
>     On 12/03/15 19:58, SamyGo wrote:
>>     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) - sr-users mailing list
>>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>     -- 
>     Daniel-Constantin Mierla
>     http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>     Kamailio World Conference, May 27-29, 2015
>     Berlin, Germany - http://www.kamailioworld.com
>
>
>     _______________________________________________
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>     list
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150313/52604f4d/attachment.html>


More information about the sr-users mailing list