Skip to content
Browse files

ftmod_libpri: Ensure bearer_capability and layer1 variables are popul…

  • Loading branch information
Harald Welte
Harald Welte committed Dec 29, 2019
1 parent a341d58 commit 2cd558502671b9902e0ed05e52d6b5ff10ecbb59
Showing with 3 additions and 0 deletions.
  1. +3 −0 libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
@@ -1964,6 +1964,9 @@ static int on_ring(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_event
snprintf(caller_data->aniII, 5, "%.2d", pevent->ring.ani2);

caller_data->bearer_capability = pevent->ring.ctype >> 3;
isdn_data->layer1 = pevent->ring.layer1;

// scary to trust this pointer, you'd think they would give you a copy of the call data so you own it......
/* hurr, this is valid as along as nobody releases the call */
chan_priv->call = pevent->;

0 comments on commit 2cd5585

Please sign in to comment.
You can’t perform that action at this time.