MODAPP-76
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7634 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e33b676d6e
commit
cf56d9f679
|
@ -353,7 +353,7 @@ SWITCH_STANDARD_API(db_api_function)
|
||||||
assert(sql);
|
assert(sql);
|
||||||
limit_execute_sql(sql, NULL);
|
limit_execute_sql(sql, NULL);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
sql = switch_mprintf("insert into db_data values('%q','%q','%q','%q');", globals.hostname, argv[1], argv[2], argv[3]);
|
sql = switch_mprintf("insert into db_data (hostname, realm, data_key, data) values('%q','%q','%q','%q');", globals.hostname, argv[1], argv[2], argv[3]);
|
||||||
assert(sql);
|
assert(sql);
|
||||||
limit_execute_sql(sql, NULL);
|
limit_execute_sql(sql, NULL);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
@ -421,7 +421,7 @@ SWITCH_STANDARD_APP(db_function)
|
||||||
limit_execute_sql(sql, globals.mutex);
|
limit_execute_sql(sql, globals.mutex);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
|
||||||
sql = switch_mprintf("insert into db_data values('%q','%q','%q','%q');", globals.hostname, argv[1], argv[2], argv[3]);
|
sql = switch_mprintf("insert into db_data (hostname, realm, data_key, data) values('%q','%q','%q','%q');", globals.hostname, argv[1], argv[2], argv[3]);
|
||||||
} else if (!strcasecmp(argv[0], "delete")) {
|
} else if (!strcasecmp(argv[0], "delete")) {
|
||||||
sql = switch_mprintf("delete from db_data where realm='%q' and data_key='%q'", argv[1], argv[2]);
|
sql = switch_mprintf("delete from db_data where realm='%q' and data_key='%q'", argv[1], argv[2]);
|
||||||
}
|
}
|
||||||
|
@ -464,7 +464,7 @@ SWITCH_STANDARD_API(group_api_function)
|
||||||
|
|
||||||
limit_execute_sql(sql, NULL);
|
limit_execute_sql(sql, NULL);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
sql = switch_mprintf("insert into group_data values('%q','%q','%q');", globals.hostname, argv[1], argv[2]);
|
sql = switch_mprintf("insert into group_data (hostname, groupname, url) values('%q','%q','%q');", globals.hostname, argv[1], argv[2]);
|
||||||
assert(sql);
|
assert(sql);
|
||||||
limit_execute_sql(sql, NULL);
|
limit_execute_sql(sql, NULL);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
@ -538,7 +538,7 @@ SWITCH_STANDARD_APP(group_function)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(argv[0], "insert")) {
|
if (!strcasecmp(argv[0], "insert")) {
|
||||||
sql = switch_mprintf("insert into group_data values('%q','%q','%q');", globals.hostname, argv[1], argv[2]);
|
sql = switch_mprintf("insert into group_data (hostname, groupname, url) values('%q','%q','%q');", globals.hostname, argv[1], argv[2]);
|
||||||
assert(sql);
|
assert(sql);
|
||||||
limit_execute_sql(sql, globals.mutex);
|
limit_execute_sql(sql, globals.mutex);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
@ -611,7 +611,7 @@ SWITCH_STANDARD_APP(limit_function)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_core_event_hook_add_state_change(session, hanguphook);
|
switch_core_event_hook_add_state_change(session, hanguphook);
|
||||||
sql = switch_mprintf("insert into limit_data values('%q','%q','%q','%q');", globals.hostname, realm, id, switch_core_session_get_uuid(session));
|
sql = switch_mprintf("insert into limit_data (hostname, realm, id, uuid) values('%q','%q','%q','%q');", globals.hostname, realm, id, switch_core_session_get_uuid(session));
|
||||||
limit_execute_sql(sql, NULL);
|
limit_execute_sql(sql, NULL);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue