<DIV>Thanks - that makes sense.</DIV>
<DIV>If I am using a url instead of defining the ip address, e.g. iptel.org, why don't I need to put in the backslash to escape the . character?<BR><BR><B><I>Jan Janak <jan@iptel.org></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">On 14-05 07:47, Amen Holmes wrote:<BR>> I am a newbie to ser and am trying to get ser.cfg working for a specific ip address.<BR>> <BR>> 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)?<BR>> <BR>> Any help would be greatly appreciated.<BR>> <BR>> e.g.<BR>> route{<BR>> <BR>> if (uri=~"^sip:[09][0-9]*@194.xxx.xxx.xxx") {<BR>> ........}<BR><BR>Yes, =~ means "match using regular expression" and the string between<BR>quotes is supposed to be a regular expressions. Therefore you have to<BR>escape . characters with backslash:<BR><BR>if (uri=~"^sip:[09][0-9]*@194\.xxx\.xxx\.xxx") {<BR><BR>Jan.</BLOCKQUOTE><p>
                <hr size=1><font face=arial size=-1>Do you Yahoo!?<br><a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=24311/*http://promo.yahoo.com/sbc/">SBC Yahoo!</a> - Internet access at a great low price.