add patch to fix stun issue

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4418 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-03-01 16:11:08 +00:00
parent 4a2940d81b
commit c612d4226b
2 changed files with 14 additions and 6 deletions

View File

@@ -2795,7 +2795,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
valid_channels++;
state = switch_channel_get_state(peer_channels[i]);
if (state >= CS_RING) {
if (state >= CS_HANGUP) {
goto notready;
} else if (state >= CS_RING) {
goto endfor1;
}