mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -249,7 +249,7 @@ int iax_provision_version(unsigned int *version, const char *template, int force
|
||||
if (sscanf(tmp, "v%x", version) != 1) {
|
||||
if (strcmp(tmp, "u")) {
|
||||
ret = iax_provision_build(&ied, version, template, force);
|
||||
if (ret)
|
||||
if (ret && option_debug)
|
||||
ast_log(LOG_DEBUG, "Unable to create provisioning packet for '%s'\n", template);
|
||||
} else
|
||||
ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user