FSCORE-382

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13774 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-06-15 16:01:45 +00:00
parent 04a965edb3
commit 3ebea4d715
1 changed files with 7 additions and 3 deletions

View File

@ -1395,10 +1395,14 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
sofia_set_flag_locked(tech_pvt, TFLAG_BYE);
}
} else if (code == 302 && !switch_strlen_zero(msg->string_arg)) {
char * p = strchr(msg->string_arg, ' ');
*p++ = '\0';
char *p;
if ((p = strchr(msg->string_arg, ' '))) {
*p = '\0';
msg->string_arg = p;
}
msg->message_id = SWITCH_MESSAGE_INDICATE_REDIRECT;
msg->string_arg = p;
switch_core_session_receive_message(session, msg);
goto end_lock;
} else {