Set ANI plan and ANI type for ftmod_libpri.

This commit is contained in:
Matteo Brancaleoni 2015-01-27 15:56:00 +01:00
parent c16f9ec1d9
commit 8307e7842d
1 changed files with 3 additions and 0 deletions

View File

@ -1915,6 +1915,9 @@ 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->ani.type = pevent->ring.callingplanani >> 4;
caller_data->ani.plan = pevent->ring.callingplanani & 0x0F;
caller_data->cid_num.type = pevent->ring.callingplan >> 4;
caller_data->cid_num.plan = pevent->ring.callingplan & 0x0F;