[Serusers] How to return a string value of an exported functions from a module to be used in ser.cfg?

Miklos Tirpak miklos at iptel.org
Thu Apr 3 10:52:17 CEST 2008


Hi,

On 04/02/2008 11:23 PM, lin9k at yahoo.com wrote:
> Hi,
> 
> I am thinking to write a module and export a function to be called from ser.cfg. I need the exported function to return a string value to be used by another function in ser.cfg. How do I do that in ser.cfg?
> 
> For example:
> 
> in ser.cfg:
> function1(my_function());

my_function() should create an AVP that can be used by another function:

my_function("$tmp");	# $tmp is set
function1("$tmp");	# $tmp is read

Read the thread "Module Developer Question" on serdev mailing list archive.

Regards,
Miklos

> 
> in my_module:
> str *my_function(){
> ...
> return my_string;
> }
> 
> 
> 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