<div>Ok. That's the easy solution. However, that ain't protected againts IP spoofing problems. Isn't there a way to authenticate using users (with username and password)? So that, when Asterisk send an INVITE do SER, Asterisk should be a normal SER user, like any other user. I am using the following code to see if the invite is trusted or not:
</div>
<div> </div>
<div> log(1, "INVITE not in table trusted\n");<br> if (!radius_www_authorize("ser host")) {<br> log(1, "INVITE not authorized, generating digest\n");
<br> www_challenge("ser host", "0");<br> break;<br> };<br> log(1, "INVITE authorized\n");<br><br>And this way, I think only the users that are in my LDAP database (contacted via radius) and registred to my ser host can make the calls. Am I correct?
</div>
<div> </div>
<div>Jose Simoes<br> </div>
<div><span class="gmail_quote">On 11/25/05, <b class="gmail_sendername">Arek Bekiersz</b> <<a href="mailto:sip@perceval.net">sip@perceval.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You should add following in sip.conf in Asterisk:<br><br>; Proxy server for making calls to SIP or receiving calls from SIP
<br>[your.ser.host]<br>type=friend<br>host=your.ser.host<br>context = your-origin<br>fromdomain=your.domain<br><br><br>In SER, do something like this:<br><br># Authentication for all but your host<br>if( method=="INVITE" && src_ip!=
your.ser.host.ip) {<br> # Authorize here<br>}<br><br><br>--<br>Arek<br><br><br><br>Voipers Portugal wrote:<br>> Hello,<br>><br>> I am trying to authenticate the call redirection between my SER and my<br>> Asterisk server. My idea is to create a User for each Server, but still
<br>> donīt know how to do it. Any ideas?<br>><br>> Regards,<br>><br>> Jose Simoes<br><br>_______________________________________________<br>Serusers mailing list<br><a href="mailto:serusers@lists.iptel.org">Serusers@iptel.org
</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://mail.iptel.org/mailman/listinfo/serusers</a><br></blockquote></div><br>