Check for bchannel information element on incoming call.

master
MelwareDE 10 years ago
parent 72111c4049
commit 840557751c
  1. 1
      CHANGES
  2. 7
      chan_capi.c

@ -5,6 +5,7 @@ HEAD
------------------
- refuse to reload on active channels
- ast_devstate_changed() changes with new cache argument
- check for bchannel information element on incoming call
chan_capi-1.1.6

@ -5357,6 +5357,13 @@ static void capidev_handle_connect_indication(
if (CONNECT_IND_BCHANNELINFORMATION(CMSG) && (CONNECT_IND_BCHANNELINFORMATION(CMSG)[0] > 0)) {
bchannelinfo[0] = CONNECT_IND_BCHANNELINFORMATION(CMSG)[1] + '0';
if ((bchannelinfo[0] == '4') && (CONNECT_IND_BCHANNELINFORMATION(CMSG)[0] >= 4) && (CONNECT_IND_BCHANNELINFORMATION(CMSG)[3] > 0)) {
if (CONNECT_IND_BCHANNELINFORMATION(CMSG)[4] & 4) {
bchannelinfo[0] = '1';
} else {
bchannelinfo[0] = '0';
}
}
}
/* well...somebody is calling us. let's set up a channel */

Loading…
Cancel
Save