Hi all, I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? ango
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rilawich Ango wrote:> Hi all, > I found that there will be a memory leak if asterisk running day by > day without restart. Is it good to restart asterisk service daily? > What is the better way to restart it daily like apache?What makes you think there is a memory leak? - -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHslNQDQNt8rg0Kp4RAh5TAJ4kchdwiQwLA17fvmHa+W2mBlpRgACghVR2 1UPovp9lK+YedT1OX75b1Mc=/VlE -----END PGP SIGNATURE-----
> I found that there will be a memory leak if asterisk running day by > day without restart. Is it good to restart asterisk service daily? > What is the better way to restart it daily like apache?Probably depends on the version of Asterisk, but I don't restart daily
Ravichandran Rajagopal
2008-Feb-13 05:00 UTC
[asterisk-users] Unable to solve this puzzle when asterisk initates the call
Hi, I am using Asterisk 1.4.13 The call comes in from a Coppercom soft-switch with a private IP of 192.168.104.2. This gets forwarded to a SessionBorderController with public IP of x.x.x.x,. This then gets to our asterisk server with a public IP of 8.7.192.58 and a private IP of 192.168.5.0. This asterisk server is behind a Cisco PIX firewall where we have disabled the SIP and UDP fixups. We have forwarded all the ports 10000 through 20000 and 5060 tcp/udp ports to the private IP of the asterisk server. When I dial 4025901000 the call flows through to the asterisk server where an IVR is played. When the user chooses 6 the asterisk initiates a new outbound call to 4023399500 using the inbound trunk i_sip_trunk. When the user chooses 7 the asterisk initiates a new outbound call to 4023399500 using the outbound trunk o_sip_trunk. The difference between the i_sip_trunk and o_sip_trunk is that the host ip. The i_sip_trunk has the host ip of the public IP of SessionBorderController whereas the o_sip_trunk has the host ip as that of the private ip of the asterisk server. 4023399500 is a test number when I am expecting to hear another IVR "Thank you for calling Ai Software Solutions we apply technology to solutions blah blah blah". Lets find out what happens when the user presses 6 there is extended period of silence. When the user presses 7 there is a fast busy received upon pressing the extension. Any help rendered from your end would be greatly greatly appreciated. I have been breaking my head to resolve this problem for a long time now. Thx Ravi Sip.conf file ; SIP Configuration example for Asterisk [general] context=i_sip_trunk context=o_sip_trunk allowoverlap=no bindport=5060 bindaddr=0.0.0.0 localnet=192.168.5.0/255.255.255.0; private IP of the Cisco PIX 506 firewall externip=8.7.192.58; public IP of the asterisk server srvlookup=yes allow=ulaw allow=alaw [i_sip_trunk] type=peer nat=no canreinvite=no host=x.x.x.x; public IP of the SBC qualify=yes dtmfmode=rfc2833 context=default [o_sip_trunk] type=peer nat=no canreinvite=no host=192.168.5.10; private IP of the asterisk server qualify=yes dtmfmode=rfc2833 context=default extensions.conf [general] static=yes writeprotect=no clearglobalvars=no [default] include => agnosco exten => h,1,Hangup exten => i,1,Congestion exten => i,2,Hangup [agnosco] include => agnosco_mainmenu include => i_sip_trunk include => o_sip_trunk [agnosco_mainmenu] exten => s,1,Answer exten => s,n,Background(agnosco_intro) exten => s,n,WaitExten ;Dial said extensions exten => 6,1,Dial(SIP/4023399500 at i_sip_trunk,30) exten => 7,1,Dial(SIP/4023399500 at o_sip_trunk,30) [i_sip_trunk] exten => 4025901000,1,Goto(1000,1) exten => 1000,1,Goto(agnosco_mainmenu,s,1) [o_sip_trunk] exten => _NXXNXXXXXX, 1,Dial(SIP/${EXTEN}@o_sip_trunk,30) exten => _NXXNXXXXXX, 2, congestion()
On 2/13/08, Rilawich Ango <maillisting at gmail.com> wrote:> Hi all, > I found that there will be a memory leak if asterisk running day by > day without restart. Is it good to restart asterisk service daily? > What is the better way to restart it daily like apache? > ango >I have cron script that restarts daily by /etc/init.d/asterisk restart - that way asterisk is completely stopped and then started again. Long ago, for 1.2 this was helping to reduce crashes on working time. Anyway - i prefer to restart if i have some inactivity time anyway, rather than have a small chance that it will crash while lot's of calls are going trough. So, if you have timeframe when you know for sure that there won't be any calls, you can restart by initscript. Otherwise, if you have low call volume in night-time, you may modify safe_asterisk script to start asterisk anyway (even if it returns ok exit stats that means shutdown), and then stop asterisk by "stop when convenient") Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835
which distribution do you use? Maybe a Fedora 7???? greez patrick -----Urspr?ngliche Nachricht----- Von: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] Im Auftrag von Tzafrir Cohen Gesendet: Mittwoch, 13. Februar 2008 14:46 An: asterisk-users at lists.digium.com Betreff: Re: [asterisk-users] restart asterisk daily [senderbase] On Wed, Feb 13, 2008 at 02:31:11PM +0100, randulo wrote:> On Feb 13, 2008 9:29 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> > wrote: > > Gee, I only have 7 MB free! I must reboot to free some memory! And > > that Asterisk is using so much memory! > > Do I detect a tiny bit of sarcasm here? Someone from Digium (or > elsewhere) might be able to jump in and explain the asterisk memory > strategy and why it doesn't have any detrimental effects on anything > else running on the same system.Sarcastic indeed. Indeed all those assertions were false. Off-Topic: The big memory consumer I have on my system is $GECKO_BROWSER. I currently have iceape (seamonkey), after just one day of operation: tzafrir 8186 1.1 53.1 763016 264008 ? Ssl Feb12 19:23 /usr/lib/iceape/iceape-bin Iceweasel (firefox), epiphany and kazehakase don't seem to be much different. So I have no issues with the little copy of Asterisk on my desktop system... -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Wed, Feb 13, 2008 at 03:02:23PM +0100, Haan Patrick wrote:> which distribution do you use? > Maybe a Fedora 7????Debian Testing here. -- 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