mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 05:40:52 +00:00
Show the interface name on error, if it is not found.
If the smdiport specified is not found, show the interface name instead of '(null)'. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@200875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1048,7 +1048,7 @@ static int smdi_load(int reload)
|
|||||||
ASTOBJ_UNREF(iface, ast_smdi_interface_destroy);
|
ASTOBJ_UNREF(iface, ast_smdi_interface_destroy);
|
||||||
|
|
||||||
if (!(iface = ASTOBJ_CONTAINER_FIND(&smdi_ifaces, v->value))) {
|
if (!(iface = ASTOBJ_CONTAINER_FIND(&smdi_ifaces, v->value))) {
|
||||||
ast_log(LOG_NOTICE, "SMDI interface %s not found\n", iface->name);
|
ast_log(LOG_NOTICE, "SMDI interface %s not found\n", v->value);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(v->name, "pollinginterval")) {
|
} else if (!strcasecmp(v->name, "pollinginterval")) {
|
||||||
|
Reference in New Issue
Block a user