提交 126e9380 authored 作者: Anthony Minessale's avatar Anthony Minessale

add flush_inbound_reg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6177 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a89f5443
...@@ -1182,6 +1182,12 @@ static switch_status_t cmd_profile(char **argv, int argc, switch_stream_handle_t ...@@ -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 ...@@ -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) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论