diff --git a/conf/vanilla/autoload_configs/verto.conf.xml b/conf/vanilla/autoload_configs/verto.conf.xml index 6d84929baf..12897b0431 100644 --- a/conf/vanilla/autoload_configs/verto.conf.xml +++ b/conf/vanilla/autoload_configs/verto.conf.xml @@ -11,6 +11,8 @@ + + diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 335e3e0c06..61ba82f93b 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -916,6 +916,9 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char * switch_event_destroy(&req_params); } + if (jsock->profile->blind_reg) { + r = SWITCH_TRUE; + } end: @@ -3531,6 +3534,8 @@ static switch_status_t parse_config(const char *cf) profile->inbound_codec_string = switch_core_strdup(profile->pool, val); } else if (!strcasecmp(var, "outbound-codec-string") && !zstr(val)) { profile->outbound_codec_string = switch_core_strdup(profile->pool, val); + } else if (!strcasecmp(var, "blind-reg") && !zstr(val)) { + profile->blind_reg = switch_true(val); } else if (!strcasecmp(var, "userauth") && !zstr(val)) { profile->userauth = switch_core_strdup(profile->pool, val); } else if (!strcasecmp(var, "root-password") && !zstr(val)) { diff --git a/src/mod/endpoints/mod_verto/mod_verto.h b/src/mod/endpoints/mod_verto/mod_verto.h index 84a98649b9..db61cdedd1 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.h +++ b/src/mod/endpoints/mod_verto/mod_verto.h @@ -187,6 +187,7 @@ struct verto_profile_s { int debug; int in_thread; + int blind_reg; char *userauth; char *root_passwd;