Hi Brandon,
what you are saying is that "*12" is matching "sip:1[0-9]{10}@.*")?
are
you sure that the first block doesn't change the RURI from "*12" to
something else? to be sure just print (use xlog) the RURI value just
before the check.
best regards,
bodgan
Brandon Price wrote:
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
if (method =~ "INVITE" && uri =~ "sip:\*12.*") { ...
do some stuff
};
and another like
if (method=="INVITE" && uri =~ "sip:1[0-9]{10}@.*"){ ...
do some stuff
};
see full block here <http://www.dacrib.net/dump/currenterror>. 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.
--Sorry if this is a repost--
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users