Posted: Wed May 27, 2009 10:15 am Post subject: [asterisk-users] AstDB wildcards
Hi All,
I need to use partial matches on the CIDNAME family I have stored in
AstDB. For example, an organisation might have several numbers with
the same area code and the same first few digits:
1234 567890
1234 567889
1234 567824
...
I'd like to store these (e.g.) as CIDNAME/12345678* (where "*" is a
wildcard) so that I can retrieve the organisation name from
extensions.conf with:
Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
Does AstDB support this (I'm using Asterisk 1.4.22.1)?
I know that I can create a function to iterate backwards through the
number until a partial match is met, but I'd rather use built-in
functionality should it exist.
TIA,
--
Geoff
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Wed May 27, 2009 10:24 am Post subject: [asterisk-users] AstDB wildcards
Hi,
On 12:09, Wed 27 May 09, Geoff Lane wrote:
Quote:
Hi All,
I need to use partial matches on the CIDNAME family I have stored in
AstDB. For example, an organisation might have several numbers with
the same area code and the same first few digits:
1234 567890
1234 567889
1234 567824
...
I'd like to store these (e.g.) as CIDNAME/12345678* (where "*" is a
wildcard) so that I can retrieve the organisation name from
extensions.conf with:
Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
Does AstDB support this (I'm using Asterisk 1.4.22.1)?
Nope.
Quote:
I know that I can create a function to iterate backwards through the
number until a partial match is met, but I'd rather use built-in
functionality should it exist.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum