Skinny: previous commit was incomplete
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16795 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1b988b2267
commit
32565f50f5
|
@ -63,7 +63,7 @@ static char buttons_sql[] =
|
|||
"CREATE TABLE skinny_buttons (\n"
|
||||
" device_name VARCHAR(16),\n"
|
||||
" position INTEGER,\n"
|
||||
" type INTEGER,\n"
|
||||
" type INTEGER,\n"
|
||||
" label VARCHAR(40),\n"
|
||||
" value VARCHAR(24),\n"
|
||||
" settings VARCHAR(44)\n"
|
||||
|
|
|
@ -1223,13 +1223,13 @@ switch_status_t skinny_handle_config_stat_request(listener_t *listener, skinny_m
|
|||
|
||||
if ((sql = switch_mprintf(
|
||||
"SELECT name, user_id, instance, '' AS user_name, '' AS server_name, "
|
||||
"(SELECT COUNT(*) FROM skinny_buttons WHERE device_name='%s' AND type='%s') AS number_lines, "
|
||||
"(SELECT COUNT(*) FROM skinny_buttons WHERE device_name='%s' AND type='%s') AS number_speed_dials "
|
||||
"(SELECT COUNT(*) FROM skinny_buttons WHERE device_name='%s' AND type=%d) AS number_lines, "
|
||||
"(SELECT COUNT(*) FROM skinny_buttons WHERE device_name='%s' AND type=%d) AS number_speed_dials "
|
||||
"FROM skinny_devices WHERE name='%s' ",
|
||||
listener->device_name,
|
||||
skinny_button2str(SKINNY_BUTTON_LINE),
|
||||
SKINNY_BUTTON_LINE,
|
||||
listener->device_name,
|
||||
skinny_button2str(SKINNY_BUTTON_SPEED_DIAL),
|
||||
SKINNY_BUTTON_SPEED_DIAL,
|
||||
listener->device_name
|
||||
))) {
|
||||
skinny_execute_sql_callback(profile, profile->listener_mutex, sql, skinny_config_stat_res_callback, message);
|
||||
|
|
Loading…
Reference in New Issue