Skip to content

Commit 2cd5585

Browse files
author
Harald Welte
committed
ftmod_libpri: Ensure bearer_capability and layer1 variables are populated
1 parent a341d58 commit 2cd5585

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,6 +1964,9 @@ static int on_ring(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_event
19641964
snprintf(caller_data->aniII, 5, "%.2d", pevent->ring.ani2);
19651965
}
19661966

1967+
caller_data->bearer_capability = pevent->ring.ctype >> 3;
1968+
isdn_data->layer1 = pevent->ring.layer1;
1969+
19671970
// scary to trust this pointer, you'd think they would give you a copy of the call data so you own it......
19681971
/* hurr, this is valid as along as nobody releases the call */
19691972
chan_priv->call = pevent->ring.call;

0 commit comments

Comments
 (0)