FS-4495 --resolve
This commit is contained in:
parent
e224b24fed
commit
b843e8fd8b
|
@ -900,6 +900,10 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||||
if ((tmp = switch_channel_get_variable(channel, "callee_id_number")) && !zstr(tmp)) {
|
if ((tmp = switch_channel_get_variable(channel, "callee_id_number")) && !zstr(tmp)) {
|
||||||
number = (char *) tmp;
|
number = (char *) tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (zstr(number)) {
|
||||||
|
number = "unknown";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zstr(name)) {
|
if (zstr(name)) {
|
||||||
|
@ -912,7 +916,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||||
name = (char *) number;
|
name = (char *) number;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zstr(name) && zstr(number)) {
|
if (zstr(name) || zstr(number)) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue