since echo canceler parameters in Zaptel are now signed integers, allow them during...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 23 Jan 2008 17:27:05 +0000 (17:27 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 23 Jan 2008 17:27:05 +0000 (17:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99920 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index bce608c..1bb4955 100644 (file)
@@ -13100,7 +13100,7 @@ static void process_echocancel(struct zt_chan_conf *confp, const char *data, uns
                strcpy(confp->chan.echocancel.params[confp->chan.echocancel.head.param_count].name, param.name);
 
                if (param.value) {
-                       if (sscanf(param.value, "%ud", &confp->chan.echocancel.params[confp->chan.echocancel.head.param_count].value) != 1) {
+                       if (sscanf(param.value, "%d", &confp->chan.echocancel.params[confp->chan.echocancel.head.param_count].value) != 1) {
                                ast_log(LOG_WARNING, "Invalid echocancel parameter value supplied at line %d: '%s'\n", line, param.value);
                                continue;
                        }