Add onHold value to sip show inuse as well.
authorJoshua Colp <jcolp@digium.com>
Fri, 2 Feb 2007 18:21:46 +0000 (18:21 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 2 Feb 2007 18:21:46 +0000 (18:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53125 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0cf2215..d0d3dd0 100644 (file)
@@ -9553,7 +9553,7 @@ static int sip_show_inuse(int fd, int argc, char *argv[])
                        snprintf(ilimits, sizeof(ilimits), "%d", iterator->call_limit);
                else 
                        ast_copy_string(ilimits, "N/A", sizeof(ilimits));
                        snprintf(ilimits, sizeof(ilimits), "%d", iterator->call_limit);
                else 
                        ast_copy_string(ilimits, "N/A", sizeof(ilimits));
-               snprintf(iused, sizeof(iused), "%d/%d", iterator->inUse, iterator->inRinging);
+               snprintf(iused, sizeof(iused), "%d/%d/%d", iterator->inUse, iterator->inRinging, iterator->onHold);
                if (showall || iterator->call_limit)
                        ast_cli(fd, FORMAT2, iterator->name, iused, ilimits);
                ASTOBJ_UNLOCK(iterator);
                if (showall || iterator->call_limit)
                        ast_cli(fd, FORMAT2, iterator->name, iused, ilimits);
                ASTOBJ_UNLOCK(iterator);