]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add outcall_flags
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 7 May 2012 13:46:04 +0000 (08:46 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 7 May 2012 13:46:04 +0000 (08:46 -0500)
src/mod/applications/mod_conference/mod_conference.c

index 3112a781f43a90eb2dd13d75f0037d53fcf349f1..8f33a6ebe7092598682c42ad06c370d389346089 100644 (file)
@@ -5678,6 +5678,7 @@ static switch_status_t conference_outcall(conference_obj_t *conference,
        char appdata[512];
        int rdlock = 0;
        switch_bool_t have_flags = SWITCH_FALSE;
+       const char *outcall_flags;
 
        *cause = SWITCH_CAUSE_NORMAL_CLEARING;
 
@@ -5763,6 +5764,12 @@ static switch_status_t conference_outcall(conference_obj_t *conference,
                        goto done;
                }
 
+               if ((outcall_flags = switch_channel_get_variable(peer_channel, "outcall_flags"))) {
+                       if (!zstr(outcall_flags)) {
+                               flags = (char *)outcall_flags;
+                       }
+               }
+
                if (flags && strcasecmp(flags, "none")) {
                        have_flags = SWITCH_TRUE;
                }