[Users] allow_trusted
OT geomatics
ot at geomatics.be
Mon Nov 7 11:15:39 CET 2005
I need a way to trust calls coming from a dynamic IP but with a domain-name.
In fact, it's an asterisk on a dynamic IP with a dynamic dns.
allow_trusted just permit to consider an IP as trustable, is there another
way to do that with a domain name?
Olivier
-----Message d'origine-----
De : users-bounces at openser.org [mailto:users-bounces at openser.org] De la part
de Brandon Price
Envoyé : vendredi 4 novembre 2005 16:42
À : users at openser.org
Objet : [Users] Call executing multiple blocks of code
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 <http://www.dacrib.net/dump/currenterror> here . 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--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20051107/6897531d/attachment.htm
More information about the Users
mailing list