[Serdev] Question about the Register Modul

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Sat Jul 10 11:10:54 UTC 2004


for detailes about usrloc statistics, please take a look at the
	static int print_ul_stats(FILE *reply_file)
function in modules/usrloc/ul_fifo.c and to
	struct udomain
definition in modules/usrloc/udomain.h


Stefan Wagner wrote:
> Thanks  Andrei for  your reply,
> I know the ser monitor script, i use the ser snmp modul
> and try too insert a few new export functions . I know that this modul
> isn't supported .
> One of these export funktions is a derecrement and increment funktion of a
> current usercounter. That why i asked about the concrete funktion
> in the register sources.
> Is there a global variable defined for current users ?
> Thanks for your help
> Stefan
> Andrei Pelinescu-Onciul wrote:
>> On Jul 07, 2004 at 17:55, Stefan Wagner <Quenton_help at gmx.de> wrote:
>>> Hi,
>>> i searching for the position (funktion) in the Register modul sources 
>>> where a new user is
>>> added or delete. My intension is that i will increment/decrement an 
>>> currentuser
>>> counter at this place to monitor the number of current users.
>> This is already done. To see how many users are currently registered 
>> use 'serctl moni'  and look at "Usrloc Stats" under "location".
>> A new user is added when you use the save() function from the script =>
>> registrar/save.c save_real(...). However in fact usrloc keeps track of
>> the current registered users. At some point registrar will end up
>> calling usrloc's insert_urecord function which will call
>> mem_insert_urecord (this is for a new users which was not already
>> registered). Here the number of registered users is incremented.
>> When an users is deleted, the usrloc mem_delete_urecord is called (in
>> the end). This function also decrements the number of registered users.
>> Andrei
> _______________________________________________
> Serdev mailing list
> serdev at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev

More information about the Serdev mailing list