SIP Authentication In Mobicents
I would like to integrate Mobicents with my database. For a given user, I've password stored in the database. I would like to authenticate the SIP requests (REGISTER and INVITE). Following is what I plan to do.
* Configure login-config.xml as mentioned in http://www.mobicents.org/security.html
* Introduce a new SIP servlet and skip processing the request if the Authorization header is missing in the request.
* Upon receiving SIP request with Authorization header, generate the response using MessageDigestResponseAlgorithm.calculateResponse and compare with the the one from Authorization header.
Is this the best way or have any other suggestion?