I just tried what you suggested - it executes the sleep for 10 seconds, then skips down to the hangup, without copying the call file to begin the callback.
However, I then broke the system command into two lines like this: exten =>h,1,System(sleep 10) exten =>h,2,System(cp /etc/asterisk/callback.info /var/spool/asterisk/outgoing) and it worked perfectly. Problem solved. Thanks. On 2/7/07, Yuan LIU <[EMAIL PROTECTED]> wrote:
From: *"Robert DeVries" [EMAIL PROTECTED] I am trying to get called back with a DISA dial tone when I call a trigger number. I got it to work almost the way I want, this is the callback context: [callback] exten=> 501,1,Congestion() exten=> 501,2,Hangup() exten =>h,1,System(cp /etc/asterisk/callback.info /var/spool/asterisk/outgoing) exten =>h,2,Hangup() With the above, the call comes into the trigger number, then the call file is copied and executed, I get the DISA dial tone, and can dial just fine. However, the problem is that the callback is a bit too fast, and sometimes calls back before I can hang up, even if I hang up fast. I want to program in a pause. However, when I do the following: exten=> 501,1,Congestion() exten=> 501,2,Hangup() exten =>h,1,wait (10) exten =>h,2,System(cp /etc/asterisk/callback.info /var/spool/asterisk/outgoing) exten =>h,3,Hangup() the callback never occurs, the execution never gets beyond the wait command. So, two questions - why does it not execute once I insert the wait command, and how do I get a wait before the call file is run. People who know will answer the first question. But the second question has a ready answer: if you are using System(), why not insert a sleep right there? exten =>h,1,System(sleep 10; cp /etc/asterisk/callback.info /var/spool/asterisk/outgoing) Hope this helps. Yuan Liu _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
