shouldn't it be like 

if(is_method("REGISTER"))

and the next thing you're requiring is always in the sample configuration file just search ofr the code area where REGISTERs are handled.

save("location"); is the function which saves the authenticated user in openser DB.



On Thu, Mar 15, 2012 at 7:59 PM, Marwan Idriss <marwan.idriss@gmail.com> wrote:
Greeting,

I want to do the following :

if (method=="REGISTER") {

then save the message received in  the ser database

}

Regards

Marwan

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users