Comment 2 for bug 695556

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.