git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11734
d0543943-73ff-0310-b7d9-
9358b9ac24b2
int tx_page_start;
int tx_page_end;
+
+ int done;
/* UNUSED AT THE MOMENT
int enable_t38_reinvite;
switch_safe_free(tmp);
}
-switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
+ /* switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); */
+
+ pvt->done = 1;
/*
TODO Fire events
/* read new audio frame from the channel */
status = switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);
- if (!SWITCH_READ_ACCEPTABLE(status)) {
+ if (!SWITCH_READ_ACCEPTABLE(status) || pvt->done) {
/* Our duty is over */
goto done;
}