O'Reilly logo

FreeSWITCH 1.6 Cookbook by Giovanni Maruzzelli, Michael S Collins, Anthony Minessale II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Launching a call with an inbound event socket connection

Using an inbound event socket connection to launch a call is a common requirement for some applications, such as outbound IVRs. In a case such as this, it is advantageous to handle the generation of calls in a nonblocking manner using the ESL connection object's bgapi() method. This recipe discusses how to use the bgapi() method with the corresponding "Background-Job UUID."

Getting ready

Be sure that you have configured ESL for your system and that you have followed the steps in the Establishing an inbound event socket connection recipe earlier in this chapter. The examples here are written in Perl, but the principles apply to any ESL-enabled language. Of course, you will need a text editor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required