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

SamyGo govoiper at gmail.com
Fri Mar 13 15:52:04 CET 2015


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
> wrote:

>  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 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/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
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150313/a56e1dc5/attachment.html>


More information about the sr-users mailing list