[Kamailio-Users] is avp the best option?

Juan Perez jperezsip2008 at yahoo.com
Mon Jun 29 16:14:28 CEST 2009


thank you a lot Klaus, 
I forgot to mention that I am using version 1.4.3, so htables is not available for me.
Although I will take a look at the shared variables, it looks like what i am looking for, thank you again.

cheers
jp




----- Original Message ----
From: Klaus Darilion <klaus.mailinglists at pernau.at>
To: Juan Perez <jperezsip2008 at yahoo.com>
Cc: kamailio <users at lists.kamailio.org>
Sent: Monday, June 29, 2009 6:41:58 AM
Subject: Re: [Kamailio-Users] is avp the best option?

Yes, You Can! :-)

But actually, as AVPs are related to a transaction. Thus, as I think you want to use this variables in a global context you should take a look at shared variables, which can also be changed over the MI interface during
runtime:
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:devel#shared_variables

Further, the htables module can be interesting too:
http://www.kamailio.org/docs/modules/1.5.x/htable

regards
klaus



Juan Perez schrieb:
> hello
> 
> I need to load into memory a list of ip address associated with an index:
> ex:
> index, IP
> 1, 192.168.1.1
> 2. 192.168.1.2
> 3, 192.168.1.3
> .........
> .........
> n, 192.168.1.n
> 
> then at some point in the config I will call the variable, passing the index as argument and retrieving the IP as result
> can I do it with the avp module?
> 
> cheers
> 
> jp
> 
> 
>      
> 
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users



      





More information about the sr-users mailing list