Callback function
From Wildix
Contents |
[edit]
What is a call back function
A callback function is useful when you want to Hang Up a call and create another call to call with a delay.
[edit]
How to implement callback
- Create a bash script named callback in /rw2/var/www/agi. (see image 1)
- adjust permissions:
- "chown wms:wms callback"
- "chmod 775 callback"
- Create a Macro called macro-callback (see image 2)
[edit]
How to call macro-callback
The use is easy. Here are parameters explained.
Macro(callback,from-context,from-extension,to-context,to-extension,delayinseconds)
Where:
- from-context: source context
- from-extension: source extension
- to-context: destination context
- to-extension: destination extension
- delayinseconds: delay in seconds
[edit]
