]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
handle null 'status' passed to 'switch_channel_perform_presence' more gracefully
authorMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:21:45 +0000 (16:21 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:21:45 +0000 (16:21 -0400)
src/switch_channel.c

index 5176cb87a935698901265ea14a9a4a5a04c3f650..d26fd919d205ba1d1e79aeeb15f79ace36d8ec11 100644 (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) {