FS-6090 --resolve

This commit is contained in:
Raymond Chandler 2014-01-15 10:56:15 -05:00
parent dd145edc8c
commit 8e0d2ee982
1 changed files with 7 additions and 3 deletions

View File

@ -191,9 +191,13 @@ static const char *do_cid(switch_memory_pool_t *pool, const char *cid, const cha
src++;
/* break on first / */
dst = strchr(src, '/');
*dst = '\0';
dst++;
if((dst = strchr(src, '/'))) {
*dst = '\0';
dst++;
} else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid destination part in regexp: %s\n", src);
goto done;
}
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "src: %s, dst: %s\n", src, dst);
} else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Not a valid regexp: %s\n", src);