Cmd AGI(), Maximum Script Time.

Home » Asterisk Users » Cmd AGI(), Maximum Script Time.
Asterisk Users 1 Comment

Hello!

It there way to limit script execution time ?

I did something wrong writing my script yesterday , finally got it working,

but found that there are busy ISDN channels, looks like these are with hang scripts…

Thank you!

One thought on - Cmd AGI(), Maximum Script Time.

  • Set a handler and an alarm:

    // trap SIGALRM — the process is taking too long
    signal(SIGALRM, (void (*)(int))(int)hung_process);

    // set an alarm
    alarm(900);