Hey Guys! Just recently i come to know about this option CONFIG_HZ=1000 in kernel is this important for asterisk application ? we have ubuntu with CONFIG_HZ=100 should i think about this option ? root at shirley:/boot# cat config-2.6.32-30-server | grep CONFIG_HZ_ CONFIG_HZ_100=y # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set # CONFIG_HZ_1000 is not set Can anybody explain me about this option and important in asterisk point of view. -S -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/e3ff3240/attachment-0001.htm>
_____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of satish patel Sent: Monday, April 11, 2011 9:45 AM To: asterisk-users Subject: [asterisk-users] Asterisk kernel CONFIG_HZ=1000 Hey Guys! Just recently i come to know about this option CONFIG_HZ=1000 in kernel is this important for asterisk application ? we have ubuntu with CONFIG_HZ=100 should i think about this option ? root at shirley:/boot# cat config-2.6.32-30-server | grep CONFIG_HZ_ CONFIG_HZ_100=y # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set # CONFIG_HZ_1000 is not set Can anybody explain me about this option and important in asterisk point of view. -S [Danny Nicholas] #1 yes - http://ubuntuforums.org/showthread.php?t=467605 #2 google first, post later -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/a9794616/attachment.htm>
Believe me i went through all google pages and read every possible post. But i
just wanted to know from asterisk point of view.
-S
From: danny at debsinc.com
To: asterisk-users at lists.digium.com
Date: Mon, 11 Apr 2011 09:50:36 -0500
Subject: Re: [asterisk-users] Asterisk kernel CONFIG_HZ=1000
From:
asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of satish patel
Sent: Monday, April 11, 2011 9:45
AM
To: asterisk-users
Subject: [asterisk-users] Asterisk
kernel CONFIG_HZ=1000
 
Hey Guys! 
Just recently i come to know about this option CONFIG_HZ=1000 in kernel is this
important for asterisk application ?  we have ubuntu with
CONFIG_HZ=100  should i think about this option ?
root at shirley:/boot# cat config-2.6.32-30-server | grep CONFIG_HZ_
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
Can anybody explain me about this option and important in asterisk point of
view.
-S
[Danny Nicholas] 
#1 yes - http://ubuntuforums.org/showthread.php?t=467605
#2 google first, post later
--
_____________________________________________________________________
-- 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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/0064cf33/attachment.htm>
_____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of satish patel Sent: Monday, April 11, 2011 9:58 AM To: asterisk-users Subject: Re: [asterisk-users] Asterisk kernel CONFIG_HZ=1000 Believe me i went through all google pages and read every possible post. But i just wanted to know from asterisk point of view. -S _____ From: danny at debsinc.com To: asterisk-users at lists.digium.com Date: Mon, 11 Apr 2011 09:50:36 -0500 Subject: Re: [asterisk-users] Asterisk kernel CONFIG_HZ=1000 _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of satish patel Sent: Monday, April 11, 2011 9:45 AM To: asterisk-users Subject: [asterisk-users] Asterisk kernel CONFIG_HZ=1000 Hey Guys! Just recently i come to know about this option CONFIG_HZ=1000 in kernel is this important for asterisk application ? we have ubuntu with CONFIG_HZ=100 should i think about this option ? root at shirley:/boot# cat config-2.6.32-30-server | grep CONFIG_HZ_ CONFIG_HZ_100=y # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set # CONFIG_HZ_1000 is not set Can anybody explain me about this option and important in asterisk point of view. -S [Danny Nicholas] #1 yes - http://ubuntuforums.org/showthread.php?t=467605 #2 google first, post later [Danny Nicholas] Since Latency can be a major pain with Asterisk, this is well worth the attempt (IMO - not a ubuntu-er, so just going by what I read). -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/5ed3bace/attachment.htm>
On Mon, Apr 11, 2011 at 02:44:54PM +0000, satish patel wrote:> > Hey Guys! > > Just recently i come to know about this option CONFIG_HZ=1000 in kernel is this important for asterisk application ? we have ubuntu with CONFIG_HZ=100 should i think about this option ? > > root at shirley:/boot# cat config-2.6.32-30-server | grep CONFIG_HZ_ > CONFIG_HZ_100=y > # CONFIG_HZ_250 is not set > # CONFIG_HZ_300 is not setNo. It is not needed (at least not for any fairly recent version). CONFIG_HIGH_RES_TIMERS=y should come in handy, though. -- 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
I have install ubuntu kernel 2.6.32-30-preempt to have 1000Hz timing.> Date: Mon, 11 Apr 2011 18:28:36 +0300 > From: tzafrir.cohen at xorcom.com > To: asterisk-users at lists.digium.com > Subject: Re: [asterisk-users] Asterisk kernel CONFIG_HZ=1000 > > On Mon, Apr 11, 2011 at 02:44:54PM +0000, satish patel wrote: > > > > Hey Guys! > > > > Just recently i come to know about this option CONFIG_HZ=1000 in kernel is this important for asterisk application ? we have ubuntu with CONFIG_HZ=100 should i think about this option ? > > > > root at shirley:/boot# cat config-2.6.32-30-server | grep CONFIG_HZ_ > > CONFIG_HZ_100=y > > # CONFIG_HZ_250 is not set > > # CONFIG_HZ_300 is not set > > No. It is not needed (at least not for any fairly recent version). > > CONFIG_HIGH_RES_TIMERS=y should come in handy, though. > > -- > 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 > > -- > _____________________________________________________________________ > -- 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-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/29495902/attachment.htm>
Daniel Knoll
2011-Apr-16  11:13 UTC
[asterisk-users] write system command output into a variable
Hey Guys,
i would like to write the output from my bash script into a Variable, that is
readable by Asterisk
Using this:
Set(var1=${FILE(/dev/shm/tempfile.txt,0,6)})
is not very helpful because this command reading fixed character length. If i
read 6 characters and in the file only 3 i get  "123   "
Can anyone help me ?
Thanx a lot for help
Daniel
Daniel Knoll
2011-Apr-16  15:55 UTC
[asterisk-users] Fwd: write system command output into a variable
I found a solution that works fine for me 
Set(var1=${SHELL(shellcommand)})
Bye Daniel
> Von: Daniel Knoll <daniel at danielknoll.de>
> Datum: 16. April 2011 13:13:28 MESZ
> An: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users at lists.digium.com>
> Betreff: write system command output into a variable
> 
> Hey Guys,
> 
> i would like to write the output from my bash script into a Variable, that
is readable by Asterisk
> 
> Using this:
> Set(var1=${FILE(/dev/shm/tempfile.txt,0,6)})
> 
> is not very helpful because this command reading fixed character length. If
i read 6 characters and in the file only 3 i get  "123   "
> Can anyone help me ?
> 
> Thanx a lot for help
> 
> Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20110416/a1036d06/attachment.htm>