don't return -1 if zapata.conf is not present (part of the patch from
authorRussell Bryant <russell@russellbryant.com>
Tue, 6 Jun 2006 14:24:59 +0000 (14:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 6 Jun 2006 14:24:59 +0000 (14:24 +0000)
issue #7290, tzafrir)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32545 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index da6132a..d071ab6 100644 (file)
@@ -10250,7 +10250,7 @@ static int setup_zap(int reload)
        /* We *must* have a config file otherwise stop immediately */
        if (!cfg) {
                ast_log(LOG_ERROR, "Unable to load config %s\n", config);
-               return -1;
+               return 0;
        }