[Devel] Use of 'registered()' while processing REGISTER request

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Sep 13 19:55:51 CEST 2006


Hi Kobi,

use the max_contacts param to limit the number of registrations:
    http://openser.org/docs/modules/1.1.x/registrar.html#AEN233


regards,
bogdan

Kobi Eshun wrote:

> Hi,
>
> I need to determine whether or not a client is currently already 
> registered while processing a REGISTER request from that client. The 
> obvious solution would be to invoke the 'registered()' predicate 
> funciton -- unfortunately, that function only searches for an 
> address-of-record in the R-URI, rather than the To header, and so it 
> does not work as expected. 
>
> a) Does anyone know of a different way to accomplish this query? 
>
> b) Is there a conceptual problem with patching the 'registered()' 
> function to extract the AOR from the To header in the case of REGISTER 
> requests? 
>
> Best regards 
> -- 
> kobi
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Devel mailing list
>Devel at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/devel
>  
>




More information about the Devel mailing list