]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3879 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Feb 2012 18:02:48 +0000 (12:02 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Feb 2012 18:02:48 +0000 (12:02 -0600)
src/mod/endpoints/mod_sofia/sofia_glue.c

index c8422e1eeb2728e6e74ba55f80851e04edd8bdc3..ab68e108be3b9378ce295d55c7db87d2465b2b1d 100644 (file)
@@ -4398,9 +4398,12 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
                        continue;
                }
 
-               if (!strcasecmp(attr->a_name, "sendonly") || !strcasecmp(attr->a_name, "inactive")) {
+               if (!strcasecmp(attr->a_name, "sendonly")) {
                        sendonly = 1;
                        switch_channel_set_variable(tech_pvt->channel, "media_audio_mode", "recvonly");
+               } else if (!strcasecmp(attr->a_name, "inactive")) {
+                       sendonly = 1;
+                       switch_channel_set_variable(tech_pvt->channel, "media_audio_mode", "inactive");
                } else if (!strcasecmp(attr->a_name, "recvonly")) {
                        switch_channel_set_variable(tech_pvt->channel, "media_audio_mode", "sendonly");
                        recvonly = 1;