[Serusers] configuring ser.cfg for ip addresses
Jan Janak
jan at iptel.org
Sun May 16 20:49:34 CEST 2004
On 14-05 07:47, Amen Holmes wrote:
> I am a newbie to ser and am trying to get ser.cfg working for a specific ip address.
>
> I am trying to get ser.cfg to pick up a specific ip address. Do I need anything special when defining the ip address (like \ characters)?
>
> Any help would be greatly appreciated.
>
> e.g.
> route{
>
> if (uri=~"^sip:[09][0-9]*@194.xxx.xxx.xxx") {
> ........}
Yes, =~ means "match using regular expression" and the string between
quotes is supposed to be a regular expressions. Therefore you have to
escape . characters with backslash:
if (uri=~"^sip:[09][0-9]*@194\.xxx\.xxx\.xxx") {
Jan.
More information about the sr-users
mailing list