Skip to content

Commit

Permalink
ftmod_libpri: Ensure bearer_capability and layer1 variables are popul…
Browse files Browse the repository at this point in the history
…ated
  • Loading branch information
Harald Welte committed Dec 29, 2019
1 parent a341d58 commit 2cd5585
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
Original file line number Diff line number Diff line change
Expand Up @@ -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->ring.call;
Expand Down

0 comments on commit 2cd5585

Please sign in to comment.