mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 17:41:53 +00:00
add flush_inbound_reg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6177 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a89f5443f1
commit
126e9380c6
@ -1182,6 +1182,12 @@ static switch_status_t cmd_profile(char **argv, int argc, switch_stream_handle_t
|
|||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcasecmp(argv[1], "flush_inbound_reg")) {
|
||||||
|
sofia_reg_check_expire(profile, 0);
|
||||||
|
stream->write_function(stream, "+OK\n");
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (!strcasecmp(argv[1], "register")) {
|
if (!strcasecmp(argv[1], "register")) {
|
||||||
char *gname = argv[2];
|
char *gname = argv[2];
|
||||||
sofia_gateway_t *gateway_ptr;
|
sofia_gateway_t *gateway_ptr;
|
||||||
@ -1263,8 +1269,12 @@ static switch_status_t cmd_profile(char **argv, int argc, switch_stream_handle_t
|
|||||||
stream->write_function(stream, "restarting: %s", profile->name);
|
stream->write_function(stream, "restarting: %s", profile->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stream->write_function(stream, "-ERR Unknown command!\n");
|
||||||
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
if (profile) {
|
if (profile) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user