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. Cheers Andrew
On Mon, 2009-06-22 at 08:51 +0200, Andrew Nowrot wrote:> 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.I'm no expert on Asterisk realtime, but this definitely sounds like a bug to me. Mind opening a bug on the issue tracker (issues.asterisk.org) so that the developers can investigate further? -- Jared Smith Training Manager Digium, Inc.
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090622/790a1014/attachment.pgp