Hi, I am wondering if it is possible to turn on 'divert_events' in order to get additional event notifications for things like gtalk and DETECTED_SPEECH over an inbound ESL connection? I have an outbound ESL application that fields calls for a particular number and runs some simple grammars. Here I send 'divert_events on', and I am able to see these additional events no problem. I also have a 'monitor' application setup in inbound mode, which just listens to 'everything'. However this inbound application does not see additional events like DETECTED_SPEECH, although it can see the application calls to play_and_detect_speech. If I try to send 'divert_events on' from the inbound socket I see an error message "ERR not controlling a session", so I guess this is not correct. Is there a way to listen for these additional messages over the inbound socket, or not? Thanks!
Hi, I see that this is solved by setting the "fire_asr_events=true" on the channel via the outbound ESL call handler when a new call comes in. ----------------- conn.execute ("set", "fire_asr_events=true", uuid, function (res) { console.log ("ASR events now visible to inbound observers as well."); }); ----------------- In combination with "divert_events on", this seems to ensure that these events are visible to both inbound, and outbound ESL scripts. The following thread lead me to the solution: - http://freeswitch-users.2379917.n2.nabble.com/What-is-Event-MEDIA-BUG-STOP-t... Best, Joe On Thu, Aug 25, 2016 at 12:53 AM, . <joes.mailing.lists@gmail.com> wrote:
Hi, I am wondering if it is possible to turn on 'divert_events' in order to get additional event notifications for things like gtalk and DETECTED_SPEECH over an inbound ESL connection?
I have an outbound ESL application that fields calls for a particular number and runs some simple grammars. Here I send 'divert_events on', and I am able to see these additional events no problem.
I also have a 'monitor' application setup in inbound mode, which just listens to 'everything'. However this inbound application does not see additional events like DETECTED_SPEECH, although it can see the application calls to play_and_detect_speech. If I try to send 'divert_events on' from the inbound socket I see an error message "ERR not controlling a session", so I guess this is not correct.
Is there a way to listen for these additional messages over the inbound socket, or not?
Thanks!
participants (1)
-
.