Any ideas on how to block some user agents to register and make calls through my sip server?
I think is a task for the textops module but have no clue on how to parse user-agent string
many thanks
something like :
1.3. Exported Functions 1.3.1. search(re) Searches for the re in the message.
Meaning of the parameters is as follows:
re - Regular expression.
Example 1-1. search usage
... if ( search("[Ss][Ee][Rr]" ) { /*....*/ }; ...
you then search after the client you wanna block.
- Atle
* Jimmy Montano jmontano@gmail.com [041012 00:05]:
Any ideas on how to block some user agents to register and make calls through my sip server?
I think is a task for the textops module but have no clue on how to parse user-agent string
many thanks
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi Jimmy,
you can use the "search" function from the textops module : search("^(User-Agent): name_of_the_ua")
Best regards, Marian Dumitru
Jimmy Montano wrote:
Any ideas on how to block some user agents to register and make calls through my sip server?
I think is a task for the textops module but have no clue on how to parse user-agent string
many thanks
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers