Chapter 11. Web-based Call Control with mod_httapi
The relatively new mod_httapi
module was built to allow you to make your IVRs and other call control applications more dynamic. With it you can generate custom IVRs based on user input. FreeSWITCH's mod_httapi
employs a simple HTTP POST operation to send various bits of information to a web application for a RESTful way to control FreeSWITCH call flows. In this chapter we will discuss:
The syntax of HTTAPI markup
HTTAPI configuration
Basic HTTAPI operation, including the
httapi
Dialplan applicationA sample PHP library that makes HTTAPI applications easier to develop
As you read this chapter, keep in mind that mod_httapi
employs an iterative call handling process; that is, there are repeated HTTP POST requests to the web server for a single phone call. This gives the application developer a great amount of flexibility and power in designing an application. It is not necessary to generate all the possible call flow logic in a single response....