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

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 13 09:27:19 CET 2015


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 list
> 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/ac5263d8/attachment.html>


More information about the sr-users mailing list