From 4aca5fc0eb50a9d966727041b3f0328d10b828d4 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 6 Jan 2008 22:56:10 +0000 Subject: [PATCH] cleanup. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7114 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../applications/mod_conference/mod_conference.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index dd5ed80a7b..e9a7351caf 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -3913,36 +3913,29 @@ static void set_mflags(char *flags, member_flag_t * f) SWITCH_STANDARD_APP(conference_auto_function) { - switch_channel_t *channel = NULL; + switch_channel_t *channel = switch_core_session_get_channel(session); call_list_t *call_list, *np; - char *addition = (char *) data; - channel = switch_core_session_get_channel(session); switch_assert(channel != NULL); call_list = switch_channel_get_private(channel, "_conference_autocall_list_"); - if (switch_strlen_zero(addition)) { + if (switch_strlen_zero(data)) { call_list = NULL; } else { np = switch_core_session_alloc(session, sizeof(*np)); switch_assert(np != NULL); - np->string = switch_core_session_strdup(session, addition); + np->string = switch_core_session_strdup(session, data); if (call_list) { np->next = call_list; np->itteration = call_list->itteration + 1; } else { np->itteration = 1; } - call_list = np; - } - switch_channel_set_private(channel, "_conference_autocall_list_", call_list); - - } /* Application interface function that is called from the dialplan to join the channel to a conference */