Skip to content

Commit

Permalink
ftmod_libpri: Don't hardcode SPEECH bearer capability
Browse files Browse the repository at this point in the history
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 committed Dec 28, 2019
1 parent 5621e2a commit 83f6bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan)
assert(sr);

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,
Expand Down

0 comments on commit 83f6bf5

Please sign in to comment.