]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_commands: Add 'presence_data' field to 'show channels like xxx' list of fields...
authorMichael S Collins <msc@freeswitch.org>
Fri, 9 Sep 2011 19:09:05 +0000 (12:09 -0700)
committerMichael S Collins <msc@freeswitch.org>
Fri, 9 Sep 2011 19:09:05 +0000 (12:09 -0700)
src/mod/applications/mod_commands/mod_commands.c

index 8d28e3bea2d0df6d4bd0e3b762fec2ddf3d6ec7f..c1f5fe5940a66811c1152cc64f1192e6ecff9bcd 100644 (file)
@@ -4020,12 +4020,12 @@ SWITCH_STANDARD_API(show_function)
                        }
                        if (strchr(argv[2], '%')) {
                                sprintf(sql,
-                                               "select * from channels where hostname='%s' and uuid like '%s' or name like '%s' or cid_name like '%s' or cid_num like '%s' order by created_epoch",
-                                               hostname, argv[2], argv[2], argv[2], argv[2]);
+                                               "select * from channels where hostname='%s' and uuid like '%s' or name like '%s' or cid_name like '%s' or cid_num like '%s' or presence_data like '%s' order by created_epoch",
+                                               hostname, argv[2], argv[2], argv[2], argv[2], argv[2]);
                        } else {
                                sprintf(sql,
-                                               "select * from channels where hostname='%s' and uuid like '%%%s%%' or name like '%%%s%%' or cid_name like '%%%s%%' or cid_num like '%%%s%%' order by created_epoch",
-                                               hostname, argv[2], argv[2], argv[2], argv[2]);
+                                               "select * from channels where hostname='%s' and uuid like '%%%s%%' or name like '%%%s%%' or cid_name like '%%%s%%' or cid_num like '%%%s%%' or presence_data like '%%%s%%' order by created_epoch",
+                                               hostname, argv[2], argv[2], argv[2], argv[2], argv[2]);
 
                        }