[OpenSIPS-Devel] [PATCH] add find_udomain() to usrloc API

John Khvatov ivaxer at dev.sgu.ru
Fri Apr 10 23:09:22 CEST 2009


Hi Bogdan,

On Fri, Apr 10, 2009 at 07:18:06PM +0300, Bogdan-Andrei Iancu wrote:
> Hi John,
>
> why do you need this function to be exported in order to add/remove  
> contacts from other module?

I do need to get a pointer to udomain_t structure of existing domain (just as
in mi_usrloc_add() function at ul_mi.c) before to add/remove contacts.

> The registrar module is doing this kind of ops with contacts and it does  
> not require it.

The registrar module gets udomain_t pointer using register_udomain(), right?
Ok, this way for me as well, thanks. But I'm confused by the fact that usrloc's
mi functions do not use this way.

Btw, mi_find_domain() from ul_mi.c duplicated with find_domain() from
dlist.c. May be fix it?

Thanks.
-- 
John Khvatov



More information about the Devel mailing list