If you are comfortable with modifying the code, you could create your own "registered_from" function ... Take a look at the module usrloc (or is it registrar?), where the function "registered" comes from. The file lookup.c contains the definition of the function ... just change the header taken (instead of the ruri, take the From header ... or the To ... or the Contact ... or ... ) and voila! I did it for my test lab ... it works.
Regards,
Cesc
On 12/12/05, Leo Papadopoulos leo@telecomcto.com wrote:
Dear SerUsers:
I am running SER 0.9.4 and have just finished reading all the README's of all the modules, but cannot find what I am trying to do.
I want to check all incoming messages to see if the SIP URI in the "From:" field is presently registered. I am using MySQL for registration and authentication. If the SIP URI is the "From:" field is NOT registerd I want to return a "403 Forbidden" message. I know that From: fields can be spoofed, but I want to do this anyway.
Does anyone know of an existing module that can help with this? Or of anyway to do this?
Leo P.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers