Author Message
psathaye.avaya.com
Joined: Mar 12, 2020
Messages: 17
Offline
Hello,

I am developing a CC project and trying to write CCXML file where I am using createcall and provided timeout as 20s.

When I run this application, user receives call. If user does not picks up the call, it resulted in timeout and it triggers connection.failed event.
In connection.failed event I am calling dialogterminate as shown below.



<transition event="connection.failed" state="callpart">
<log expr="'-- ' + event$.name +' -- [' + state +']'"/>
<log expr="' eventdata... \n' + objectToString(event$)"/>
<log expr="'INSIDE CONNECTION FAILEd CALLPART'" />
<!-- Participant did not answer let the host know -->
<dialogterminate dialogid="holddialogid"/>
<assign name="state" expr="'waitterm'"/>
<assign name="message" expr="event$.reason"/>
<log expr="'END OF TRANSITION ' + state" />
</transition>

The issue is event [dialog.exit] does not get triggered.
I have checked the state variable and it has correct value but dialog.exit does not gets called.
Can you please help me on this?
psathaye.avaya.com
Joined: Mar 12, 2020
Messages: 17
Offline
I am able to resolve the issue,
Somehow I figured out that, my dialog gets exited before the createcall timeout.
Now I have added more prompts in the dialog so that it kept running till createcall timeout ends.
Its working now.

Is my understanding correct?
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Yes, ccxml is a event driven state machine. The dialog runs parallel with this other functions.
Go to:   
Mobile view