cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
56
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 04-03-2005 09:30:20 PM
Hi,

This is my understanding about onEndCall(). Please correct me if I am wrong
  • It is called when caller hangs up, Hang Up element is run or Application Transfer element is run.
  • It runs in the background, so it can be used to run time consuming job.

My application A's onEndCall() takes a long time to run and involves many database updates (> 15 seconds). When I use Application Transfer to go to application B, A's onEndCall() is called twice. The call is disconnected without getting into B.

This is part of A's activity log
[code:1:c2502e64a7]
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:19,Subdialog_Return_Error,element,enter,
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:40,,end,how,application_transfer
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:40,,end,result,normal
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:40,,end,duration,33
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:56,,end,how,app_session_complete
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:56,,end,result,normal
167.209.148.32.1109971567325.2.888,03/04/2005 15:26:56,,end,duration,49
[/code:1:c2502e64a7]
And this is A's error log
[code:1:c2502e64a7]
167.209.148.32.1109970940626.0.888,03/04/2005 15:15:53, SERVER ERROR: A VoiceXML exception occurred: error.badfetch
[/code:1:c2502e64a7]

If I remove the database housekeeping code, it works fine.

Thank you.
Luong.

Subject: RE: OnEndCall issue
Replied by: Michael Bochynski on 09-03-2005 09:21:00 PM
Hi Luong,

The End-Of-Call class does not run in the background. The application should wait for the End-Of-Call to finish and then should perform a transfer.

Could you explain what do you mean by removing a database code? Do you remove the End-Of-Call class in full or just the code accessing a database?

Thanks,
Michael

Subject: RE: OnEndCall issue
Replied by: null on 10-03-2005 10:11:04 PM
[quote:5d323db037]
Could you explain what do you mean by removing a database code? Do you remove the End-Of-Call class in full or just the code accessing a database?
[/quote:5d323db037]
I just remove the code accessing the database

I am looking for a way to perform time consuming job at the end of a call. EndOfCall class works fine if I don't do application transfer. When I transfer to another Audium application, the call is dropped with error. Is there a work around?

Thanks

Subject: RE: OnEndCall issue
Replied by: Michael Bochynski on 19-05-2005 03:51:37 PM
Hi,

The possible workaround would be to spawn another thread with time consuming tasks. This would allow you to perform the application transfer and do the heavy-duty processing in the background.

Regards,
Michael
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links