MODAPP-353
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15161 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
39f93c4eea
commit
836aefce61
|
@ -3053,7 +3053,7 @@ greet_key_press:
|
||||||
if (disk_quota) {
|
if (disk_quota) {
|
||||||
callback_t callback = { 0 };
|
callback_t callback = { 0 };
|
||||||
char sqlstmt[256];
|
char sqlstmt[256];
|
||||||
char disk_usage[256];
|
char disk_usage[256] = "";
|
||||||
|
|
||||||
callback.buf = disk_usage;
|
callback.buf = disk_usage;
|
||||||
callback.len = sizeof(disk_usage);
|
callback.len = sizeof(disk_usage);
|
||||||
|
@ -3061,7 +3061,7 @@ greet_key_press:
|
||||||
switch_snprintf(sqlstmt, sizeof(sqlstmt),
|
switch_snprintf(sqlstmt, sizeof(sqlstmt),
|
||||||
"select sum(message_len) from voicemail_msgs where username='%s' and domain='%s'",
|
"select sum(message_len) from voicemail_msgs where username='%s' and domain='%s'",
|
||||||
id, domain_name);
|
id, domain_name);
|
||||||
vm_execute_sql_callback(profile, profile->mutex, sql, sql2str_callback, &callback);
|
vm_execute_sql_callback(profile, profile->mutex, sqlstmt, sql2str_callback, &callback);
|
||||||
|
|
||||||
if (atoi(disk_usage) >= disk_quota) {
|
if (atoi(disk_usage) >= disk_quota) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Voicemail disk quota is exceeded for %s\n", id);
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Voicemail disk quota is exceeded for %s\n", id);
|
||||||
|
|
Loading…
Reference in New Issue