From 17564479151fab89937a84f0ac5fe20e62fea343 Mon Sep 17 00:00:00 2001 From: MelwareDE Date: Tue, 24 Apr 2007 13:03:56 +0000 Subject: [PATCH] Fixed capi_sendf() capi command setting. --- chan_capi_supplementary.c | 2 -- chan_capi_utils.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chan_capi_supplementary.c b/chan_capi_supplementary.c index b71a8b6..ffc7634 100644 --- a/chan_capi_supplementary.c +++ b/chan_capi_supplementary.c @@ -454,7 +454,6 @@ int handle_facility_indication_supplementary( if (get_ccbsnr_link(CCBSNR_TYPE_CCBS, PLCI, 0, rbref, NULL, &partybusy) == NULL) { cc_log(LOG_WARNING, "capi CCBS status reference not found!\n"); } -#if 0 capi_sendf(NULL, 0, CAPI_FACILITY_RESP, PLCI, HEADER_MSGNUM(CMSG), "w(w(w))", FACILITYSELECTOR_SUPPLEMENTARY, @@ -462,7 +461,6 @@ int handle_facility_indication_supplementary( (partybusy) ? 0x0000 : 0x0001 ); ret = 1; -#endif break; case 0x800f: /* CCBS remote user free */ rbref = read_capi_word(&FACILITY_IND_FACILITYINDICATIONPARAMETER(CMSG)[6]); diff --git a/chan_capi_utils.c b/chan_capi_utils.c index e5ffd5f..148cb0b 100644 --- a/chan_capi_utils.c +++ b/chan_capi_utils.c @@ -289,7 +289,8 @@ MESSAGE_EXCHANGE_ERROR capi_sendf( unsigned char msg[2048]; write_capi_word(&msg[2], capi_ApplID); - write_capi_word(&msg[4], command); + write_capi_word(&msg[4], ((command >> 8) & 0xff)); + write_capi_word(&msg[5], (command & 0xff)); write_capi_word(&msg[6], Number); write_capi_dword(&msg[8], Id);