Dear all, <br><br> I am in the process of implementing an IVR using event outbound socket. In the dial plan I used the following statement.<br> <action application="socket" data="<a href="http://127.0.0.1:5000">127.0.0.1:5000</a> async full"/><br>
<br> I implemented a Perl script which is listening on the dial plan specified IP address and PORT ( In this case 127.0.0.1 and 5000). Whenever the caller is calling 5000 I executed the above dial plan. <br>
Before dialing to the number I executed the Perl script.<br><br> In my Perl script, first I did the following steps.<br> <br> * Accepting the client connection <br>
* Fork a process<br> * Connect with Event Socket Library <br> * Finally send and receive the events to that channel.<br> <br> In the sending part, at first I am sending ($conn->sendRecv("myevents") ) myevents to the freeswitch.It means receive the events from this channel only.<br>
<br> I answer for that call ( $conn->execute("answer") )<br><br> Then I play back three files as<br><br> $conn->execute("playback",$sound_path."ivr/ivr-welcome_to_freeswitch.wav");<br>
$conn->execute("playback",$sound_path."ivr/ivr-this_ivr_will_let_you_test_features.wav");<br> $conn->execute("playback",$sound_path."ivr/ivr-you_may_exit_by_hanging_up.wav");<br>
<br>Here the sound path is /usr/local/freeswitch/sounds/en/us/callie/<br><br> But it is not play backed the sound in order. Why?<br> I know that it is a problem in mode(async, full). Can you please clarify these two keywords?<br>
I have studied from the wiki page. But I was not able to get it.<br><br> I also specified the lock mode after every play back as<br> $conn->SetEventBlock("true");<br><br>But is not working. Could you please solve this issue?<br>
<br> <br><br> <br><br><br clear="all"><br>-- <br>Regards,<br>Thangappan.M<br>