<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
Hello,
<div><br>
</div>
<div>I was wondering if anyone used Siremis GUI to setup IP based Auth. Also once that is done how would I route those to my AST machine. Right now In test I  have OUTSIDE -> Kamailio -> AST Box ...  I would like to do this though the SIREMIS Webpage so does
 anyone have any idea? I would like to try this before I need to install Asterisk just for that reason.. I am only using Kamailio for routing/Ip based Auth while my AST box handles all Calls/Voicemail/IVR.</div>
<div><br>
</div>
<div>Thanks for the help <br>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.sip-router.org> on behalf of Ryan Holbein <rtholbein@hotmail.com><br>
<b>Sent:</b> Saturday, November 7, 2015 4:36 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Examples</font>
<div> </div>
</div>
<div>
<div>Thank you Sammy! I will have to give this a try and follow your rules. Looks likes. Great start!! Is there a way of doing this though the siremis webpage or has to be done via kamialio config file?<br>
<br>
Sent from my iPhone</div>
<div><br>
On Nov 6, 2015, at 5:51 PM, SamyGo <<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Hi Ryan,
<div>Where are your trunks !?</div>
<div><br>
</div>
<div>if your provider can just send calls to your IP address then just do IP based authentication in Kamailio and once provider is authenticated relay the call to the Internal PBX.</div>
<div>so with reference to the code here: <a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb" title="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
Ctrl+Click or tap to follow the link">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a>
 I will try to guide you.</div>
<div><br>
</div>
<div>1 - allow IP AUTHENTICATION by adding line <br>
#define WITH_IPAUTH</div>
<div>after the line saying "#define WITH_AUTH"<br>
<br>
2 - Put the IP address plus port of the provider in "permission" database table and restart Kamailio (for first time only) for next time you make changes in that table execute this command</div>
<div>Linux:~#kamctl address reload</div>
<div><br>
</div>
<div>3 - Now everytime your provider sends a call it will be accepted BUT the call still needs to be routed to the internal PBX.</div>
<div><br>
</div>
<div>4 - since WITH_ASTERISK is defined on top as well so Kamailio will check the IP address of your internal PBX from this:</div>
<div>
<pre class="" style="margin-top:0px; margin-bottom:1.4em; padding:0.7em 1em; font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace; font-size:14px; direction:ltr; color:rgb(51,51,51); border-radius:2px; overflow:auto; word-wrap:normal; border:1px solid rgb(204,204,204); line-height:19.6px; background-color:rgb(251,250,249)">asterisk.<span class="" style="color:rgb(0,102,0)">bindip</span> <span class="" style="color:rgb(102,204,102)">=</span> <span class="" style="color:rgb(255,0,0)">"192.168.178.25"</span> desc <span class="" style="color:rgb(255,0,0)">"Asterisk IP Address"</span>
asterisk.<span class="" style="color:rgb(0,102,0)">bindport</span> <span class="" style="color:rgb(102,204,102)">=</span> <span class="" style="color:rgb(255,0,0)">"5080"</span> desc <span class="" style="color:rgb(255,0,0)">"Asterisk Port"</span></pre>
</div>
<div>If you want to have a different criteria to route call to internal PBX like Load-Balancing or decide based on DID the calls goes to  a specific server, or based on accound it routes to a specific PBX then thats your logic and should be handled inside the
 route[TOASTERISK] - similarly route[FROMASTERISK] needs changes to allow calls coming back from Internal PBXs.</div>
<div><br>
</div>
<div><br>
</div>
<div>I hope it just gives you some idea of what to do next.</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sammy</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Nov 6, 2015 at 12:25 PM, Ryan Holbein <span dir="ltr">
<<a href="mailto:rtholbein@hotmail.com" target="_blank">rtholbein@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>I have everything setup and installed... Does anyone have a good link or could tell me the steps of how to connect my trunks to phone provider and then another one would be how to route the calls to the internal PBX system.</p>
<p><br>
</p>
<p><br>
</p>
<p>Thank you</p>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</span><br>
<span><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></span><br>
<span><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>