<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I think what I am going to do is use a combination of:<br><br>1. Whitelist my gateway IPs.<br><br>2. Any initial INVITES from non-gateway IPs will be authorized and the dialog be added to a simple htable based on callid<br><br>3. Any in-dialog will do a lookup on the htable so that authorization isn't required on bye and the like.<br><br>Does this seem a reasonable course of action?<br><br>One question, what is the best way to whitelist a few (3) gateways?<br>I'd rather not do if($si == "ip1" || $si == "ip2" || $si == "ip3"){<br>Is there any sort of if(in_array($si,"whitelist")){ functionality or a way to iterate through an array of whitelisted ips? (I do not want to configure database support if possible)<br><br>Thanks for the help so far!<br>-Eric<br><br>&gt; Date: Mon, 11 Apr 2011 13:18:10 -0400<br>&gt; From: abalashov@evaristesys.com<br>&gt; To: sr-users@lists.sip-router.org<br>&gt; Subject: Re: [SR-Users] loose_route security<br>&gt; <br>&gt; On 04/11/2011 01:10 PM, Henning Westerholt wrote:<br>&gt; <br>&gt; &gt; Hi Klaus,<br>&gt; &gt;<br>&gt; &gt; sure, there are issues. But we're using the dialog module since now<br>&gt; &gt; since some time in our production setup and it works fine for this<br>&gt; &gt; particular feature set.<br>&gt; <br>&gt; Oh, yeah.  I'm a happy and extensive long-time user of the dialog <br>&gt; module too.<br>&gt; <br>&gt; -- <br>&gt; Alex Balashov - Principal<br>&gt; Evariste Systems LLC<br>&gt; 260 Peachtree Street NW<br>&gt; Suite 2200<br>&gt; Atlanta, GA 30303<br>&gt; Tel: +1-678-954-0670<br>&gt; Fax: +1-404-961-1892<br>&gt; Web: http://www.evaristesys.com/<br>&gt; <br>&gt; _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; sr-users@lists.sip-router.org<br>&gt; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>                                               </body>
</html>