hello guys
I need to control by IP,port,R-URI who can send calls to our proxy. Looking thru the doc I saw only 1 module that I can use, PERMISSIONS with either Trusted Requests or Address Permissions modes enabled.. Is this the only method or am I missing something? this is for kamailio 1.4.3_no_tls
txs a lot jp
On 03/05/2009 11:35 PM, Juan Perez wrote:
hello guys
I need to control by IP,port,R-URI who can send calls to our proxy. Looking thru the doc I saw only 1 module that I can use, PERMISSIONS with either
permissions allow you to filter by ip and port. For R-URI limitations you can use avps (see avpops).
There are other module that can check the source address, like lcr, dispatcher. Also userblacklist module might be helpful here.
Trusted Requests or Address Permissions modes enabled..
Is this the only method or am I missing something? this is for kamailio 1.4.3_no_tls
With 1.5.o which was just released: http://www.kamailio.org/mos/view/Kamailio-OpenSER-v1.5.0-Release-Notes
you can build won logic using htable and/or sqlops modules. http://kamailio.org/docs/modules/1.5.x/
Cheers, Daniel
txs Daniel, but unfortunately upgrading to the new version is not an option at this time.
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. Can you please provide more info on this?
jp
________________________________ From: Daniel-Constantin Mierla miconda@gmail.com To: Juan Perez jperezsip2008@yahoo.com Cc: users@lists.kamailio.org Sent: Friday, March 6, 2009 4:58:00 AM Subject: Re: [Kamailio-Users] controlling inbound calls
On 03/05/2009 11:35 PM, Juan Perez wrote:
hello guys I need to control by IP,port,R-URI who can send calls to our proxy. Looking thru the doc I saw only 1 module that I can use, PERMISSIONS with either
permissions allow you to filter by ip and port. For R-URI limitations you can use avps (see avpops).
There are other module that can check the source address, like lcr, dispatcher. Also userblacklist module might be helpful here.
Trusted Requests or Address Permissions modes enabled..
Is this the only method or am I missing something? this is for kamailio 1.4.3_no_tls
With 1.5.o which was just released: http://www.kamailio.org/mos/view/Kamailio-OpenSER-v1.5.0-Release-Notes
you can build won logic using htable and/or sqlops modules. http://kamailio.org/docs/modules/1.5.x/
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com
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
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