mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 02:04:54 +00:00
FS-6090 --resolve
This commit is contained in:
parent
c97e1a4456
commit
bd12c18dd2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user