Re: [asterisk-users] conf files vs astdb

2010-05-12 Thread Tzafrir Cohen
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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] conf files vs astdb

2010-05-11 Thread Harel Cohen
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.

Thanks in advance,
Harel
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users