Yate's PHP library: Difference between revisions

From Yate Documentation
Jump to navigation Jump to search
Created page with " ===libyate.php=== This PHP library implements the basics for writing object oriented, event driven external modules (global or channel) using the PHP language and interprete..."
 
No edit summary
Line 22: Line 22:
*    add Yate::SetLocal("restart",true); to your script to force a restart if your script dies
*    add Yate::SetLocal("restart",true); to your script to force a restart if your script dies
*    Restart your script from rmanager by issuing the following command: 'external restart <your scriptname>.php'
*    Restart your script from rmanager by issuing the following command: 'external restart <your scriptname>.php'
'''See also'''
* [[Rmanager]]
* [[IVR Setup]]

Revision as of 10:11, 16 November 2012

libyate.php

This PHP library implements the basics for writing object oriented, event driven external modules (global or channel) using the PHP language and interpreter.

How it works

  • Connecting to Yate
  • Showing debug output
  • Handling events
  • Sending messages
  • Setting message handlers
  • Accessing local parameters

Other libraries implemented on top of libyate.php

  • libyateivr.php - Object oriented IVR
  • libyatechan.php - Pseudo sequential channel interface

Handy hints when writing your own PHP modules

  • add Yate::SetLocal("restart",true); to your script to force a restart if your script dies
  • Restart your script from rmanager by issuing the following command: 'external restart <your scriptname>.php'


See also