diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index ca260be05b..2eadd9fe0f 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3718,7 +3718,7 @@ static char *verto_get_dial_string(const char *uid, switch_stream_handle_t *rstr switch_mutex_lock(profile->mutex); for(jsock = profile->jsock_head; jsock; jsock = jsock->next) { - if (!strcmp(uid, jsock->uid)) { + if (!zstr(jsock->uid) && !zstr(uid) && !strcmp(uid, jsock->uid)) { use_stream->write_function(use_stream, "%s/u:%s,", EP_NAME, jsock->uuid_str); hits++; }