[Kamailio-Users] i want to stop second registration request if user already registered

arif.zaman arif.zaman at brotecs.com
Thu Oct 23 16:59:45 CEST 2008



Mian M Asif wrote:
> 
> if (method=="REGISTER") {
> if (registered("location") ) {
>                 xlog("L_NOTICE","Asif: lookup(location) Passed\n");
>                 sl_send_reply("699", "User Not Found");
>                 return;
> }
> 

Use "exit;" instead of "return;".

Cheers,
ARIF


-- 
View this message in context: http://www.nabble.com/i-want-to-stop-second-registration-request-if-user-already-registered-tp20132564p20132764.html
Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.





More information about the sr-users mailing list