<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=468311210-07112005>I need
a way to trust calls coming from a dynamic IP but with a
domain-name.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=468311210-07112005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=468311210-07112005>In
fact, it's an asterisk on a dynamic IP with a dynamic dns.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=468311210-07112005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=468311210-07112005>allow_trusted just permit to consider an IP as
trustable, is there another way to do that with a domain
name?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=468311210-07112005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=468311210-07112005>Olivier</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left><FONT face=Tahoma
size=2>-----Message d'origine-----<BR><B>De :</B>
users-bounces@openser.org [mailto:users-bounces@openser.org] <B>De la part
de</B> Brandon Price<BR><B>Envoyé :</B> vendredi 4 novembre 2005
16:42<BR><B>À :</B> users@openser.org<BR><B>Objet :</B> [Users] Call
executing multiple blocks of code<BR><BR></FONT></DIV>
<DIV style="MARGIN: 0px">I am having a problem with calls matching a certain
pattern executing more than one block of code. I have a block of code that
looks like </DIV>
<DIV style="MARGIN: 0px"> if (method =~ "INVITE" && uri =~
"sip:\*12.*") { ...</DIV>
<DIV style="MARGIN: 0px">do some stuff</DIV>
<DIV style="MARGIN: 0px">};</DIV>
<DIV style="MARGIN: 0px"><BR class=khtml-block-placeholder></DIV>
<DIV style="MARGIN: 0px">and another like</DIV>
<DIV style="MARGIN: 0px"> </DIV>
<DIV style="MARGIN: 0px"> if (method=="INVITE" && uri =~
"sip:1[0-9]{10}@.*"){ ...</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica">do some
stuff<BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica">};</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica"><BR
class=khtml-block-placeholder></DIV>
<DIV style="MARGIN: 0px">see full block <A
href="http://www.dacrib.net/dump/currenterror"><FONT class=Apple-style-span
color=#001ddc>here </FONT></A>. The problem is that whenever *12 is
dialed it executes both blocks, I thought the pattern matching is just wrong
but when a number matching the second pattern is dialed then it doesn't
execute the 1st block. Can someone please explain this behavior to
me. </DIV>
<DIV style="MARGIN: 0px"><BR class=khtml-block-placeholder></DIV>
<DIV style="MARGIN: 0px">--Sorry if this is a repost--</DIV>
<DIV style="MARGIN: 0px"><BR class=khtml-block-placeholder></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px; FONT: 12px Helvetica"><BR
class=khtml-block-placeholder></DIV></BLOCKQUOTE></BODY></HTML>