Callback function

From Wildix

Jump to: navigation, search

Contents

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.

How to implement callback

  1. Create a bash script named callback in /rw2/var/www/agi. (see image 1)
  2. adjust permissions:
  3. "chown wms:wms callback"
  4. "chmod 775 callback"
  5. Create a Macro called macro-callback (see image 2)

Image:callback1.PNG

Image:callback2.PNG

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:

  1. from-context: source context
  2. from-extension: source extension
  3. to-context: destination context
  4. to-extension: destination extension
  5. delayinseconds: delay in seconds

Example

Image:callback3.PNG

Personal tools
VoIP operators
System services: