[asterisk-users] conf files vs astdb
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Wed May 12 06:11:47 CDT 2010
On Tue, May 11, 2010 at 04:48:30PM +0200, Harel Cohen wrote:
> Hi all,
> Could someone please tell me what is the relative "cost" in using conf files oppose to the astdb? Basically I need to match a name to a phone number in order to have all users registered by name and not by number (which I understood is not a good practice). I have 2000 users and a complex dial-plan and server resources become an issue.
> I could implement this via a context in my extensions.conf:
> exten => <number>,1,Dial(SIP/<name>) ; obviously I would need to hard-code this for every extension
> - or I could do it via astdb:
> exten => _XXX,1,Dial(SIP/${DB(Names/${EXTEN})})
> Which method would consume fewer resources (put aside other pro's & con's)?
> Is there any better way of implementing this?
> Would 'hints' help me out here? If yes, I would appreciate a detailed explanation how to use it.
How often do you update? With configuration files access is cheaper but
updating is more expensive.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list