<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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.<br>
<br>
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.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13/03/15 15:52, SamyGo wrote:<br>
</div>
<blockquote
cite="mid:CAJUJwthzTQanO0kfcB-HgWwwkPXfiJKqdDmhhgAop16rK2T+9g@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks Daniel,
<div>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 !</div>
<div><br>
</div>
<div>Best Regards,</div>
<div>Sammy.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Mar 13, 2015 at 4:27 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
you can add:<br>
<br>
listen=tcp:<a moz-do-not-send="true"
href="http://1.2.3.4:8080" target="_blank">1.2.3.4:8080</a><br>
<br>
and handle http requests on that port.<br>
<br>
You can restrict to have only http traffic on that port
adding in the event_route for xhttp:<br>
<br>
if(dst_port!=8080) {<br>
# send forbidden reply<br>
}<br>
<br>
Similar you can add in request_route for sip traffic to be
on port 5060 only.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 12/03/15 19:58, SamyGo wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>I am just trying xhttp_rpc module<br>
<a moz-do-not-send="true"
href="http://www.kamailio.org/docs/modules/4.2.x/modules/xhttp_rpc.html"
target="_blank">http://www.kamailio.org/docs/modules/4.2.x/modules/xhttp_rpc.html</a><br>
<br>
Where can I set/change the port for this module
? currently its only 5060 !?<br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sammy.</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a moz-do-not-send="true" href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>