[Serusers] How to set a global variable in ser.cfg and use it in following route() functions?

Miklos Tirpak miklos at iptel.org
Fri Apr 4 12:32:39 CEST 2008


On 04/02/2008 11:13 PM, lin9k at yahoo.com wrote:
> Hi,
> 
> Is ser.cfg allow such feature? I'm thinking to use it to hold some variable that can be used for the life of ser.cfg.

yes, you have several options:

If the config parameter is related to your new module, store it in the 
module, and you can set it via modparam in the script. Search for 
param_export_t in any module.

In 2.1, I suggest using the configuration framework, if the parameter is 
allowed to be changed runtime, read doc/cfg.txt

If your variable is not related to the module, declare a custom variable 
in the script (only in SER 2.1), search for session_timer.default in 
etc/ser-oob.cfg. Or use global/domain AVPs.

Miklos


> 
> Thanks in advance,
> Ling
> 
> 
> 
> 
>       ____________________________________________________________________________________
> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 
> 
>       ____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers



More information about the sr-users mailing list