]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
refactor error
authorMathieu Rene <mrene@avgs.ca>
Wed, 25 Jul 2012 23:34:15 +0000 (19:34 -0400)
committerMathieu Rene <mrene@avgs.ca>
Wed, 25 Jul 2012 23:34:15 +0000 (19:34 -0400)
src/mod/endpoints/mod_media_gateway/media_gateway.c

index fe2804d2120a56cfa835d9778881385c66a58c4e..70d31e6f553662b6addf2947b04c9b8b43d4ac0c 100644 (file)
@@ -133,7 +133,7 @@ switch_status_t megaco_activate_termination(mg_termination_t *term)
         term->uuid = NULL;
     }
     
-    if (!zstr(term->uuid)) {    
+    if (zstr(term->uuid)) {    
         if (switch_ivr_originate(NULL, &session, &cause, dialstring, 0, NULL, NULL, NULL, NULL, var_event, 0, NULL) != SWITCH_CAUSE_SUCCESS) {
             switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to instanciate termination [%s]: %s\n", term->name, switch_channel_cause2str(cause));   
             status = SWITCH_STATUS_FALSE;