limit_hash_usage - no session in api
This commit is contained in:
parent
c61a119572
commit
cf9ddfa807
|
@ -4283,9 +4283,12 @@ end:
|
||||||
SWITCH_STANDARD_API(limit_hash_usage_function)
|
SWITCH_STANDARD_API(limit_hash_usage_function)
|
||||||
{
|
{
|
||||||
char *mydata = NULL;
|
char *mydata = NULL;
|
||||||
|
switch_status_t ret = SWITCH_STATUS_SUCCESS;
|
||||||
if (!zstr(cmd)) {
|
if (!zstr(cmd)) {
|
||||||
mydata = switch_core_session_sprintf(session, "hash %s", cmd);
|
mydata = switch_mprintf("hash %s", cmd);
|
||||||
return limit_usage_function(mydata, session, stream);
|
ret = limit_usage_function(mydata, session, stream);
|
||||||
|
switch_safe_free(mydata);
|
||||||
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "USAGE: limit_hash_usage %s\n", LIMIT_HASH_USAGE_USAGE);
|
stream->write_function(stream, "USAGE: limit_hash_usage %s\n", LIMIT_HASH_USAGE_USAGE);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue