Skip to content
Browse files

ftmod_libpri: Don't hardcode SPEECH bearer capability

FreeTDM actually knows which bearer capability to set; let's use
it rather than discarding that and overriding it with SPEECH.
  • Loading branch information
Harald Welte
Harald Welte committed Dec 28, 2019
1 parent 5621e2a commit 83f6bf5276cf70bb11b84615116b0e5cfc590b9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
@@ -1207,7 +1207,7 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan)

pri_sr_set_channel(sr, ftdm_channel_get_id(chan), 1, 0);
pri_sr_set_bearer(sr, PRI_TRANS_CAP_SPEECH, isdn_data->layer1);
pri_sr_set_bearer(sr, caller_data->bearer_capability << 3, isdn_data->layer1);

pri_sr_set_called(sr, caller_data->dnis.digits, called_ton, 1);
pri_sr_set_caller(sr, caller_data->cid_num.digits,

0 comments on commit 83f6bf5

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