You'd better Wait()

Sometimes just mindlessly browsing though the online CLI help will teach you something:

asterisk*CLI>show application wait
  -= Info about application 'Wait' =-

Waits for some time

  Wait(seconds): Waits for a specified number of seconds, then returns 0.
seconds can be passed with fractions of a second. (eg: 1.5 = 1.5 seconds)


So far I'd never seen an example which used franctions of a second. I've been wanting to do something about that, because waiting for a whole second is often way too long. Fortunately Wait() already has the functionality I needed.


Comments powered by Disqus