Programmer's guide

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Javascript)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Yate has 3 major API's to build applications on top of it: C API, Javascript and extmodule (you can use your favorite language like PHP, Python, Ruby, Lisp).
 
Yate has 3 major API's to build applications on top of it: C API, Javascript and extmodule (you can use your favorite language like PHP, Python, Ruby, Lisp).
 +
 
But all Yate API's are quite unified, so all Yate design pages, apply to all API's. Enjoy.
 
But all Yate API's are quite unified, so all Yate design pages, apply to all API's. Enjoy.
  
Line 10: Line 11:
 
* [[Yate Design]]
 
* [[Yate Design]]
 
Yate arhitecture and design.
 
Yate arhitecture and design.
 +
* [http://yate.null.ro/docs/ Yate C++ API]
 +
Documentation for Yate C++ API
 +
 
* [[Messages]]
 
* [[Messages]]
 
Components of messages and how messages are processed by messages handlers.
 
Components of messages and how messages are processed by messages handlers.
Line 24: Line 28:
 
* [[Coding style]]
 
* [[Coding style]]
 
Rules for coding Yate
 
Rules for coding Yate
 
* [http://yate.null.ro/docs/ Yate C++ API]
 
Documentation for Yate C++ API
 
 
* [[YIAX design]]
 
YIAX library in Yate.
 
  
 
* [[Mutexes and locking]]
 
* [[Mutexes and locking]]
Line 41: Line 39:
 
Some noteworthy mutexes that have program-wide implications in Yate code.
 
Some noteworthy mutexes that have program-wide implications in Yate code.
 
|}
 
|}
 +
* [[YIAX design]]
 +
YIAX library in Yate.
 
|}
 
|}
  
Line 59: Line 59:
 
|-
 
|-
 
|class="yate-page-subtitle"|
 
|class="yate-page-subtitle"|
* [[Javascript routing]]
+
* [[Javascript module]]
Configuring Javascript module to use routing scripts.
+
Configuring Javascript module to use routing or global scripts.
 
* [[Including other files]]
 
* [[Including other files]]
 
Language extensions for including other files and libraries.
 
Language extensions for including other files and libraries.

Latest revision as of 11:01, 10 March 2016

Yate has 3 major API's to build applications on top of it: C API, Javascript and extmodule (you can use your favorite language like PHP, Python, Ruby, Lisp).

But all Yate API's are quite unified, so all Yate design pages, apply to all API's. Enjoy.

Contents

[edit] About Yate design and implementation

Yate for programmers

Yate arhitecture and design.

Documentation for Yate C++ API

Components of messages and how messages are processed by messages handlers.

All standard messages in Yate.

Flow messages for an incoming call.

Rules for coding Yate

Yate's implementation provides classes for mutual exclusion and locking.

Provide an overview of problems caused by improper locking and how to troubleshoot them.

Some noteworthy mutexes that have program-wide implications in Yate code.

YIAX library in Yate.

[edit] Scripting languages supported by Yate

[edit] Javascript

Yate for programmers

Yate offers a embedded Javascript implementation.

Configuring Javascript module to use routing or global scripts.

Language extensions for including other files and libraries.

Object construction and prototypal inheritance in Javascript.

Messages in JavaScript

Describes implemented methods that process actions in certain time intervals.

Methods of sharing data between different Javascript instances.

Routing rules written in a script using Yate's Javascript module.

Accessing the database from javascript module.

[edit] PHP

Yate for programmers

The library used by PHP to comunicate with Yate.

How to setup an IVR in Yate.

How to write an IVR.

Test an existing PHP script on Windows.

Test an existing PHP script on Windows.

[edit] Python

Yate for programmers

The library used by Python Module to comunicate with Yate.

How to write a simple IVR in Yate.

How to write a simple IVR with Inline Callbacks in Yate.

How to bridge and then unbridge.

How to bridge and then redirect after a hangup

How to install YAYPM on Windows.

[edit] Debugging

Yate for programmers

How to debug in Yate.

How to enable debug in Yate.

You can use the msgsniff module to investigate the messages in yate.


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers