[Freeswitch-users] divert_events on inbound ESL server

. joes.mailing.lists at gmail.com
Thu Aug 25 11:42:33 MSD 2016


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:


Best, Joe

On Thu, Aug 25, 2016 at 12:53 AM, . <joes.mailing.lists at 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160825/f04e07f5/attachment.html 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list