FS-4049 alt patch
This commit is contained in:
parent
973a39e07f
commit
cf47982e0e
|
@ -2454,6 +2454,20 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
|
||||||
} else {
|
} else {
|
||||||
from_id = switch_str_nil(switch_event_get_header(helper->event, "Other-Leg-Caller-ID-Number"));
|
from_id = switch_str_nil(switch_event_get_header(helper->event, "Other-Leg-Caller-ID-Number"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (zstr(from_id)) {
|
||||||
|
from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Callee-ID-Number"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (zstr(from_id)) {
|
||||||
|
from_id = switch_str_nil(switch_event_get_header(helper->event, "Caller-Destination-Number"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (zstr(from_id)) {
|
||||||
|
from_id = "n/a";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
char *buf;
|
char *buf;
|
||||||
switch_event_serialize(helper->event, &buf, SWITCH_FALSE);
|
switch_event_serialize(helper->event, &buf, SWITCH_FALSE);
|
||||||
|
|
Loading…
Reference in New Issue