fix small att_xfer issue from mailing list

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8461 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-05-19 14:30:39 +00:00
parent 7daa751f1e
commit 0ba45ead64
2 changed files with 6 additions and 7 deletions

View File

@@ -279,8 +279,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
if (lead_frames) {
switch_frame_t *read_frame;
int frame_count = atoi(lead_frames);
while(frame_count > 0) {
int max_frames = frame_count * 2;
while(frame_count > 0 && --max_frames > 0) {
status = switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);
if (!SWITCH_READ_ACCEPTABLE(status)) {
goto done;