Author Message
MichaelReynolds [Avatar]

Joined: Nov 7, 2013
Messages: 140
Location: South Carolina
Offline
I am attempting to send an event from within the start ccxml. I then want to capture this event and use it as a <transition event=..> trigger. Is the the correct syntax to send the event to itself?

<log expr="'About to trigger LoadModule. The session id is' + session.id"/>
<send name = "LoadModule" target = "session.id"/>

"LoadModule" is the name of the event

Michael Reynolds
mike.reynolds@realpage.com
(864) 272-3541
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
You need a targettype. Something like this:

<send targettype="'ccxml'"
name="'start.dialog'"
target="session.id"
delay="'0s'"/>
Anonymous

Thanks Neil. So I want to send the event "LoadModule" to the CCXML (itself) from the CCXML. Is this about right?

<log expr="'About to trigger LoadModule. The session id is' + session.id"/>
<send targettype="'ccxml'" name="'LoadModule'" target="session.id" delay="'0s'"/>
</transition>


<!-- **************************************************************************
* This section of the code determines which VXML module will be *
* loaded after CRE_CallOpt returns with the caller info. * *
****************************************************************************-->
<transition event="LoadModule">
<log expr="'Caught event LoadModule. The event is:' + objectToString(event$)"/>
MichaelReynolds [Avatar]

Joined: Nov 7, 2013
Messages: 140
Location: South Carolina
Offline
Hey, Neil, That last post was from me but I had forgotten to log in.

Michael Reynolds
mike.reynolds@realpage.com
(864) 272-3541
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
That should do it.
Go to:   
Mobile view