I can confirm,
commands after Wait() are never executed in 'h' extension
and wait seconds argument in wait() is completely ignored
it's bug or "feature"?  ;-)


 h => {
   NoOP(before ${EXTEN});
   Wait(5);
   NoOP(after ${EXTEN});
 }


-- Executing [EMAIL PROTECTED]:1] NoOp("IAX2/bill-gw-10", "before h") in new stack -- Executing [EMAIL PROTECTED]:2] Wait("IAX2/bill-gw-10", "5") in new stack == Spawn extension (testservices, h, 2) exited non-zero on 'IAX2/bill-gw-10'
   -- Hungup 'IAX2/bill-gw-10'







Robert DeVries wrote:
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.

------------------------------------------------------------------------

_______________________________________________
--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

Reply via email to