Using an inbound event socket connection to launch a call is a common requirement for some applications, such as outbound IVRs. In a case like this it is advantageous to handle the generating of the calls in a non-blocking manner using the ESL connection object's
bgapi() method. This recipe discusses how to use the
bgapi() method with the corresponding "Background-Job UUID".
Be sure that you have configured ESL for your system and that you have followed the steps in Establishing an inbound event socket connection 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 and a SIP ...