[OpenSIPS-Users] Using is_from_gw with incoming-only GWs
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Apr 1 12:10:30 CEST 2010
Hi Takeshi,
To confirm :
1) is_from_gw() check only the dr_gateway table, without checking if the
GW are used by any rules
2) if the dr_rules table is empty, the DR engine will not load any info
(like gws) at all.
Regards,
Bogdan
mayamatakeshi wrote:
>
> On Thu, Apr 1, 2010 at 4:28 PM, mayamatakeshi <mayamatakeshi at gmail.com
> <mailto:mayamatakeshi at gmail.com>> wrote:
>
> While testing with drouting function is_from_gw(), it seems that
> in addition to be present in the dr_gateways table, there must
> also exist at least one entry in dr_rules referencing the GW
> otherwise the function returns false. Is this intentional?
> In my case, I have incoming-only GWs so there are no rules for
> them. For now for each of them I add a rule that never matches
> just to permit to use is_from_gw, but I'm might be overlooking
> something.
>
>
> Sorry,
> please ignore.
> Doing some more tests i realized for is_from_gw to work, dr_rules
> cannot be empty (I was testing with the minimal changes in the db so I
> have not added the records for the other GWs).
>
> regards,
> takeshi
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list