Asterisk "locks up" the system when an external process is called from the 'h' extension with a lower priority than Asterisk

Bug #695556 reported by Fabian Schmidt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
asterisk (Ubuntu)
Fix Released
Medium
Unassigned
Lucid
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: asterisk

The Bug has been identified, analyzed and fixed upstream.
Upstream Bug report:
https://issues.asterisk.org/view.php?id=17564

Patch from upstream:
http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/autoservice.c?view=patch&r1=273719&r2=273718&pathrev=273719

I would love to see this patch included in the asterisk source package.
Its really simple an only adds one 'usleep' to the code.

Tags: patch
Revision history for this message
Dave Walker (davewalker) wrote :

Apologies this has taken so long for someone to look at this bug. I haven't quite understood the importance of this bug, i've currently set it as Medium as it doesn't seem it has a valid work around.

It would be most useful if a minimal test case could be documented on how to encounter this bug, as the one documented upstream seems unclear to me.

It would seem that this is resolved in the current Ubuntu development version Oneiric, so marking the main task as Fix Released and opening a task for Lucid. If it affects other releases, please propose for the relevant versions.

Thanks.

Changed in asterisk (Ubuntu):
status: New → Fix Released
importance: Undecided → Medium
Changed in asterisk (Ubuntu Lucid):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Fabian Schmidt (databus23) wrote :

The problem always arises if I try to execute a skript in the 'h' extension.
In my case i wanted to sent out an email when somone called and nobody picked up the phone:

h => {
  if ( "${DIALSTATUS}" == "CANCEL" ) {
    System(/etc/asterisk/scripts/mail-missed.sh "${CALLERID(name)}" "${CALLERID(num)}" "${CALLEDNUMBER}");
  };
};

This totally locks up my system as the asterisk process gets in a busy loop until the external process finishes.
Sometimes the system recovers after several minutes with asterisk at 100% cpu usage, sometimes i have to reboot to regain control of the system.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in asterisk (Ubuntu Lucid):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.