catch fails in second script
Posted: Wed Aug 29, 2007 7:56 am
I have two scripts. The first does a recording; it then does a submit to the second script. The second script puts the file away (PHP) and plays a brief thank you.
The first script contains a catch at the document level for the event "connection.disconnect". If the caller hangs up, this catch does a submit (without the recording) to the second script.
The second script also has a document-level catch element in case the call arrives in the disconnected state or in case the caller hangs up in mid-announcement.
However, this second document's catch element is never triggered. Instead, the log shows:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 7
Is this a special counter for disconnect events? I don't include a "count" attribute in my catch element. What is the work around, if any? I can think of one (check the state on arrival) and I'm implementing it, but where would I find this documented?
The first script contains a catch at the document level for the event "connection.disconnect". If the caller hangs up, this catch does a submit (without the recording) to the second script.
The second script also has a document-level catch element in case the call arrives in the disconnected state or in case the caller hangs up in mid-announcement.
However, this second document's catch element is never triggered. Instead, the log shows:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 7
Is this a special counter for disconnect events? I don't include a "count" attribute in my catch element. What is the work around, if any? I can think of one (check the state on arrival) and I'm implementing it, but where would I find this documented?