brainsnorkel.com

Manifesto-driven development. Eclectic thoughts.
  • rss
  • Home
  • Tech
    • Getting wireless WPA-PSK working under Ubuntu Linux on a Dell Inspiron with Netgear WG511
    • Troubleshooting
      • iTunes freezes up randomly
    • VoIP + Networks
      • Installation
      • FreeBSD box
      • Router
      • OzTell
      • Configuration
      • Requirements
      • Sipura SPA-3000
      • References
      • Using Asterisk
      • WRT54GP2 and iiNet VoIP
  • Development
  • Writing
    • Australian Republic
      • Chapter I - Introduction
      • Chapter II - Historical Background to Australian Republicansim
      • Chapter III - Republicanism as a Political Issue in Modern Australia
      • Chapter IV - Multiculturalism as a Basis for Republicanism
      • Chapter V - Conclusion
      • End Notes and Bibliography
    • Miscellaneous Pages
      • Requirements Matrix: Julian vs Flickr
  • Games
    • Follower
    • myphatlewt.sh
    • Flash Asteroids (for IE)
  • About

Using Asterisk

This is a place where I can describe my use of Asterisk, and note any incidents along the way.

Incidents

3-December-2005: I messed with the QoS settings on the router (changed from TCP and UDP for IAX QoS to just UDP) then tried to place a softphone and a hardphone call. Both were not registering. I set SIP debug to on, and reset the Sipura box and restarted the softphone. Nothing was registering with Asterisk. The Sipura was showing that it was unable to register, and the softphone was stuck at the “logging in…” step.

After a few reloads and a sanity check of the configuration files I rebooted the BSD box and everything came back up.

I’ll have to check some of the pages on reliability.

8-December-2006: Found Asterisk running at close to 100% CPU:


40 processes: 2 running, 38 sleeping
CPU states: 62.3% user, 0.0% nice, 37.7% system, 0.0% interrupt, 0.0% idle
Mem: 18M Active, 252M Inact, 85M Wired, 160K Cache, 57M Buf, 108M Free
Swap: 935M Total, 935M Free

PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
42942 root 132 0 3536K 2528K RUN 17.4H 94.78% 94.78% asterisk
240 root 96 0 1788K 1336K select 0:40 0.00% 0.00% dhclient
435 root 96 0 3384K 2532K select 0:09 0.00% 0.00% sshd
452 root 8 0 1364K 1052K nanslp 0:03 0.00% 0.00% cron

I can still call and leave messages, but 100% CPU doesn’t look healthy. Connected with asterisk -vvvvvr and issued a stop gracefully and now asterisk is at 98% CPU and asterisk -vvvvvr connections are getting a Unable to connect to remote asterisk response.

sudo kill 42942 did the trick. Restarted Asterisk and everything is sane again.

I have read some recommendations that Asterisk be restarted occasionally. That wouldn’t help with availability and reliability metrics at all, but might be ok for my purposes. I’ll see if I can dig up the reference.

Comments rss
Comments rss
Trackback
Trackback

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Navigation

  • Tech
    • Getting wireless WPA-PSK working under Ubuntu Linux on a Dell Inspiron with Netgear WG511
    • Troubleshooting
      • iTunes freezes up randomly
    • VoIP + Networks
      • Configuration
      • FreeBSD box
      • Installation
      • OzTell
      • References
      • Requirements
      • Router
      • Sipura SPA-3000
      • Using Asterisk
      • WRT54GP2 and iiNet VoIP
  • Development
  • Writing
    • Australian Republic
      • Chapter I - Introduction
      • Chapter II - Historical Background to Australian Republicansim
      • Chapter III - Republicanism as a Political Issue in Modern Australia
      • Chapter IV - Multiculturalism as a Basis for Republicanism
      • Chapter V - Conclusion
      • End Notes and Bibliography
    • Miscellaneous Pages
      • Requirements Matrix: Julian vs Flickr
  • Games
    • Flash Asteroids (for IE)
    • Follower
    • myphatlewt.sh
  • About

From Google Reader

Recent Posts

  • Fossilized Amiga bones
  • Is Optus making iTunes Music Store usage unmetered?
  • The Truth Eho The Eyes Met Before
  • Annual KLF Wikipedia article linkpimp
  • Not dead, just busy

Shameless Advertising

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox