[Home]

Summary:ASTERISK-05444: Stops after a couple of system commands
Reporter:Schneur (rosenbergs)Labels:
Date Opened:2005-11-04 00:55:46.000-0600Date Closed:2011-06-07 14:02:42
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I used this code

exten => _NXXNXXXXXX,1,system(echo channel: Local/${EXTEN}@internal > /call)exten => _NXXNXXXXXX,2,system(echo MaxRetries: 1 >> /call)
exten => _NXXNXXXXXX,3,system(echo RetryTime: 60 >> /call)
exten => _NXXNXXXXXX,4,system(echo WaitTime: 30 >> /call)
exten => _NXXNXXXXXX,5,system(echo Context: internal >> /call)
exten => _NXXNXXXXXX,6,system(echo Extension: 17326202065 >> /call)
exten => _NXXNXXXXXX,7,system(echo Priority: 1 >> /call)
exten => _NXXNXXXXXX,8,system(mv /call /var/spool/asterisk/outgoing)

But it got stuck after the 6th system call

I went around the problom by creating a file called /callte with:
MaxRetries: 3
RetryTime: 15
WaitTime: 30
Context: callbacktrunk
Extension: s

and in my extensions.conf i did as follows:

exten => _NXXNXXXXXX,1,system(echo channel: Local/${EXTEN}@internal > /call)
exten => _NXXNXXXXXX,2,system(cat /callte  >> /call)
exten => _NXXNXXXXXX,3,system(mv /call /var/spool/asterisk/outgoing)

which cut it down to only 3 system calls, but this might not work for everybody so please try to fix the bug
Comments:By: Jason Parker (jparker) 2005-11-04 01:46:29.000-0600

Please read the bug guidelines.  This is most certainly not a "major" bug.

http://www.digium.com/index.php?menu=bugguidelines

By: BJ Weschke (bweschke) 2005-11-04 10:00:23.000-0600

There are better ways to accomplish what you're looking to do. The quickest solution that comes to mind is an AGI script instead of all your system calls.