handle null 'status' passed to 'switch_channel_perform_presence' more gracefully

This commit is contained in:
Michael Jerris 2014-04-28 16:21:45 -04:00
parent a5f680810d
commit 7e2499355a
1 changed files with 1 additions and 0 deletions

View File

@ -721,6 +721,7 @@ SWITCH_DECLARE(void) switch_channel_perform_presence(switch_channel_t *channel,
if (!status) {
type = SWITCH_EVENT_PRESENCE_OUT;
status = "idle";
}
if (!id) {