forked from Mirrors/freeswitch
OPENZAP-219 --resolve
Calling ton and caller ton is not parsed at all in libpri signaling module Patched-by: Markus Schräder
This commit is contained in:
parent
d78a804df6
commit
bb67ff5e0b
@ -1913,6 +1913,12 @@ static int on_ring(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_event
|
||||
ftdm_set_string(caller_data->dnis.digits, (char *)pevent->ring.callednum);
|
||||
ftdm_set_string(caller_data->rdnis.digits, (char *)pevent->ring.redirectingnum);
|
||||
|
||||
caller_data->cid_num.type = pevent->ring.callingplan >> 4;
|
||||
caller_data->cid_num.plan = pevent->ring.callingplan & 0x0F;
|
||||
|
||||
caller_data->dnis.type = pevent->ring.calledplan >> 4;
|
||||
caller_data->dnis.plan = pevent->ring.calledplan & 0x0F;
|
||||
|
||||
if (!ftdm_strlen_zero((char *)pevent->ring.callingname)) {
|
||||
ftdm_set_string(caller_data->cid_name, (char *)pevent->ring.callingname);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user