-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
15 lines (11 loc) · 740 Bytes
/
Copy pathREADME
File metadata and controls
15 lines (11 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Extensionparser is a PHP class for parsing Asterisk extension.conf files.
The parser reads the dial plan file and produces events for each dialplan
"component" (extension number, priority, application, etc) it encounters.
This is similar to the SAX event model of XML parsing.
This library also contains "Builder" classes that consume the parser events
and classes that represent dial plan objects: Contexts, Extensions,
Applications and Menus. This could be seen as similar to a DOM XML parser
which returns a finished data structure.
The examples show the interaction between "Builder" classes that consume parser
events and build PHP data structures from them.
License information: All code here is licensed under the BSD license.