MODAPP-279
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13365 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cc8ed5b18f
commit
ceae13acc0
|
@ -234,13 +234,22 @@ static char *get_bridge_data(switch_memory_pool_t *pool, char *dialed_number, ch
|
||||||
tstrip = ((cur_route->digit_len - cur_route->tstrip) + 1);
|
tstrip = ((cur_route->digit_len - cur_route->tstrip) + 1);
|
||||||
lstrip = cur_route->lstrip;
|
lstrip = cur_route->lstrip;
|
||||||
|
|
||||||
if (strlen(destination_number) > tstrip && cur_route->tstrip > 0) {
|
if (cur_route->tstrip > 0) {
|
||||||
|
if (strlen(destination_number) > tstrip) {
|
||||||
destination_number[tstrip] = '\0';
|
destination_number[tstrip] = '\0';
|
||||||
}
|
}
|
||||||
if (strlen(destination_number) > lstrip && cur_route->lstrip > 0) {
|
else {
|
||||||
|
destination_number[0] = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (cur_route->lstrip > 0) {
|
||||||
|
if (strlen(destination_number) > lstrip) {
|
||||||
destination_number += lstrip;
|
destination_number += lstrip;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
destination_number[0] = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
codec = "";
|
codec = "";
|
||||||
if (!switch_strlen_zero(cur_route->codec)) {
|
if (!switch_strlen_zero(cur_route->codec)) {
|
||||||
codec = switch_core_sprintf(pool, ",absolute_codec_string=%s", cur_route->codec);
|
codec = switch_core_sprintf(pool, ",absolute_codec_string=%s", cur_route->codec);
|
||||||
|
|
Loading…
Reference in New Issue