[Serusers] SER Function

Jan Janak jan at iptel.org
Fri Jul 8 21:11:45 CEST 2005


On 08-07-2005 15:27, Razvan Nemesiu wrote:
> Hi all,
> 
> I want to know please if there is a SER function available to compare the  
> username from teh From field in the sip message with the username  
> resgistered in the database (in the subscriber table).I want to put such a  
> function in order to restrict calls from registered users with modified  
> caller-id.

  Yes there is, it is called check_from. The function would check the
  username in From with the username in digest credentials (which comes
  from subscriber table). So, first you should authenticate the user
  using www_authorize and if it is successful then you can call
  check_from to verify the contents of From header field.

    Jan.




More information about the sr-users mailing list