<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I'm trying to switch
from dialogic api to freeswitch/esl. Dealing with inbound calls is easy
(using esl outbound socket), however i have some problems with outbound
calls.<br>
</div>My application is written in C. I create a handle to esl (esl_connect), then issue "bgapi originate ... &socket(<a href="http://127.0.0.1:8084" target="_blank">127.0.0.1:8084</a> async full)" in order to handle this connection just like inbound call. So far so good.<br>
</div>
Here come the problems:<br></div><br>1. esl creates new thread for my call - thats ok, it was expected - but I do not receive any events on this new handle... <br></div><br>2. esl_events fails - here is some strace output:<br>
<br>[pid 31588] send(5, "filter unique-id a88f1268-2c28-11e3-befa-311d1641c437\n\n", 55, 0) = 55<br>[pid 31588] recv(5, "Content-Type: command/reply\nReply-Text: +OK filter added. [unique-id]=[a88f1268-2c28-11e3-befa-311d1641c437]\n\n", 65535, 0) = 110<br>
[pid 31588] send(5, "event plain ALL\n\n", 17, 0) = 17<br>[pid 31588] recv(5, "Content-Type: command/reply\nReply-Text: -ERR command not found\n\n", 65535, 0) = 64<br>[pid 31588] send(5, "linger", 6, 0) = 6<br>
[pid 31588] send(5, "\n\n", 2, 0) = 2<br>[pid 31588] recv(5, "Content-Type: command/reply\nReply-Text: -ERR command not found\n\n", 65535, 0) = 64<br><br></div>3. how can i distinguish, whether this call is successfull or not? <br>
<div><br></div>What am I doing wrong?</div>