[asterisk-users] Realtime extensions

Danny Nicholas danny at debsinc.com
Mon Jun 22 11:24:56 CDT 2009


You can prove this by switching the order of the two filters in
extensions.conf.  IMO these evaluate the same given the number you are
testing with.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Carlos Chavez
Sent: Monday, June 22, 2009 11:17 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Realtime extensions

On Mon, 2009-06-22 at 08:51 +0200, Andrew Nowrot wrote:
> Hi
> 
> I am having a problem with extension matching in asterisk (I am using
> asterisk 1.6.0.6). Is there a difference between extensions matching
> in realtime architecture and extensions matching in extensions.conf
> file.
> 
> For example when I have these two extensions:
> 
> -- _0699[134]XXXXX
> -- _06[069]XXXXXXX
> 
> that are in the database and number 0699123123 comes in asterisk will
> always choose exten _06[069]XXXXXXX
> and when they are in the extensions.conf file asterisk always choose
> exten _0699[134]XXXXX.
> 
> My question is why? Is it my misconfiguration or that's how it works.
> 
	It probably has to do with the way your database is sorting the
dialplan.  In extensions.conf you have complete control over the order
of the dialplan, in realtime the database sorts the dialplan depending
on the query so one rule may appear before another.


-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001




More information about the asterisk-users mailing list