I saw that function, but I do not see the relation between the origination IP and any other parameter that you would configure on the module itself.
The idea is to have a table with a list of IPs and R-URIs to receive. If a request comes from an authorized IP and the R-URI matches any of those assigned to that IP then we accept the call. If a call comes from an IP not found in the table then we reject the call. Something like that is what I would like to implement, I think the PERMISSIONS module allows that fucntionality but I would like to kow whethere there is another method for my version 1.4.3 txs a lot jp
________________________________ From: Juha Heinanen jh@tutpro.com To: Juan Perez jperezsip2008@yahoo.com Cc: Daniel-Constantin Mierla miconda@gmail.com; users@lists.kamailio.org Sent: Friday, March 6, 2009 3:34:19 PM Subject: Re: [Kamailio-Users] controlling inbound calls
Juan Perez writes:
I am kind of confused now with trying to use Dispatcher or LCR to filter the inbound request, although they provide with functions to check the origination IPI thought that their use was mainly to know where to route the calls to.
For LCR module, how would it work for filtering by IP? I thought that the GWs on the GW table are used to send calls to.
lcr module has from_gw function that can be used to check if request came from a gw. if you want to general purpose filtering, then permissions module might better better idea.
-- juha