]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
avoid warning if late negotiation is enabled anyway
authorTravis Cross <tc@traviscross.com>
Fri, 1 Jun 2012 21:43:41 +0000 (21:43 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 1 Jun 2012 21:44:21 +0000 (21:44 +0000)
src/mod/endpoints/mod_sofia/sofia.c

index c6ab7dd76a959bb54a5179ce37282a7efddbcc34..658a7f0b0b30191b50f3249cc1259b6c907424bf 100644 (file)
@@ -4813,8 +4813,8 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                        }
                                }
 
-                               if (sofia_test_flag(profile, TFLAG_ZRTP_PASSTHRU)) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "ZRTP Passthru implictly sets inbound-late-negotiation to true.\n"); 
+                               if (sofia_test_flag(profile, TFLAG_ZRTP_PASSTHRU) && !sofia_test_flag(profile, TFLAG_LATE_NEGOTIATION)) {
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "ZRTP passthrough implictly enables inbound-late-negotiation\n");
                                        sofia_set_flag(profile, TFLAG_LATE_NEGOTIATION);
                                }