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(a)pernau.at>
To: Juan Perez <jperezsip2008(a)yahoo.com>
Cc: kamailio <users(a)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_vari…
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(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users