]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert 13269
authorMathieu Rene <mrene@avgs.ca>
Mon, 11 May 2009 04:07:01 +0000 (04:07 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 11 May 2009 04:07:01 +0000 (04:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13273 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index da619b7361e2ad79dad2df66dcda06a120a97208..9f02e5cdcae1464fae1f072c448859d975a5c944 100644 (file)
@@ -2043,14 +2043,6 @@ static switch_status_t cmd_profile(char **argv, int argc, switch_stream_handle_t
                        sofia_glue_del_gateway(gateway_ptr);
                        sofia_reg_release_gateway(gateway_ptr);
                        stream->write_function(stream, "+OK gateway marked for deletion.\n");
-                       
-                       if (argc > 3 && !strcasecmp(argv[3], "rescan")) {
-                               if (reconfig_sofia(profile) == SWITCH_STATUS_SUCCESS) {
-                                       stream->write_function(stream, "+OK scan complete\n");
-                               } else {
-                                       stream->write_function(stream, "-ERR cannot find config for profile %s\n", profile->name);
-                               }
-                       }
                } else {
                        stream->write_function(stream, "-ERR no such gateway.\n");
                }