H A D | message.c | 1873 byte cai[15]; facility_req() local 2107 cai[0] = 2; facility_req() 2111 cai[1] = CONF_BEGIN; facility_req() 2115 cai[1] = CONF_DROP; facility_req() 2119 cai[1] = CONF_ISOLATE; facility_req() 2123 cai[1] = CONF_REATTACH; facility_req() 2127 cai[2] = (byte)d; /* Conference Size resp. PartyId */ facility_req() 2128 add_p(plci, CAI, cai); facility_req() 2238 cai[1] = ECT_EXECUTE; facility_req() 2251 cai[1] = CONF_ADD; facility_req() 2256 cai[1] = (byte)(SSreq - 3); facility_req() 2261 cai[0] = 2; facility_req() 2262 cai[2] = plci->Sig.Id; facility_req() 2268 cai[0] = 1; facility_req() 2270 add_p(rplci, CAI, cai); facility_req() 2300 cai[0] = 1; facility_req() 2301 cai[1] = CALL_DEFLECTION; facility_req() 2302 add_p(plci, CAI, cai); facility_req() 2337 cai[0] = 2; facility_req() 2338 cai[1] = 0x70 | (byte)GET_WORD(&(ss_parms[3].info[0])); /* Function */ facility_req() 2339 cai[2] = (byte)GET_WORD(&(ss_parms[4].info[0])); /* Basic Service */ facility_req() 2340 add_p(rplci, CAI, cai); facility_req() 2394 case S_INTERROGATE_DIVERSION: /* use cai with S_SERVICE below */ facility_req() 2395 cai[1] = 0x60 | (byte)GET_WORD(&(ss_parms[3].info[0])); /* Function */ facility_req() 2398 case S_INTERROGATE_NUMBERS: /* use cai with S_SERVICE below */ facility_req() 2399 cai[1] = DIVERSION_INTERROGATE_NUM; /* Function */ facility_req() 2404 cai[1] = 0x80 | (byte)GET_WORD(&(ss_parms[3].info[0])); /* Function */ facility_req() 2407 cai[1] = CCBS_REQUEST; facility_req() 2411 cai[1] = CCBS_DEACTIVATE; facility_req() 2415 cai[1] = CCBS_INTERROGATE; facility_req() 2419 cai[1] = 0; facility_req() 2439 cai[0] = 1; facility_req() 2440 add_p(rplci, CAI, cai); facility_req() 2444 cai[0] = 3; facility_req() 2445 PUT_WORD(&cai[2], GET_WORD(&(ss_parms[3].info[0]))); facility_req() 2446 add_p(rplci, CAI, cai); facility_req() 2449 cai[0] = 3; facility_req() 2450 PUT_WORD(&cai[2], GET_WORD(&(ss_parms[3].info[0]))); facility_req() 2451 add_p(rplci, CAI, cai); facility_req() 2455 cai[0] = 2; facility_req() 2456 cai[2] = (byte)GET_WORD(&(ss_parms[4].info[0])); /* Basic Service */ facility_req() 2457 add_p(rplci, CAI, cai); facility_req() 2503 cai[0] = 13; facility_req() 2504 cai[1] = ACTIVATION_MWI; /* Function */ facility_req() 2505 PUT_WORD(&cai[2], GET_WORD(&(ss_parms[2].info[0]))); /* Basic Service */ facility_req() 2506 PUT_DWORD(&cai[4], GET_DWORD(&(ss_parms[3].info[0]))); /* Number of Messages */ facility_req() 2507 PUT_WORD(&cai[8], GET_WORD(&(ss_parms[4].info[0]))); /* Message Status */ facility_req() 2508 PUT_WORD(&cai[10], GET_WORD(&(ss_parms[5].info[0]))); /* Message Reference */ facility_req() 2509 PUT_WORD(&cai[12], GET_WORD(&(ss_parms[6].info[0]))); /* Invocation Mode */ facility_req() 2510 add_p(rplci, CAI, cai); facility_req() 2555 cai[0] = 5; facility_req() 2556 cai[1] = DEACTIVATION_MWI; /* Function */ facility_req() 2557 PUT_WORD(&cai[2], GET_WORD(&(ss_parms[2].info[0]))); /* Basic Service */ facility_req() 2558 PUT_WORD(&cai[4], GET_WORD(&(ss_parms[3].info[0]))); /* Invocation Mode */ facility_req() 2559 add_p(rplci, CAI, cai); facility_req() 7474 byte cai[256]; add_b1() local 7569 cai[1] = plci->B1_resource; add_b1() 7570 cai[2] = 0; add_b1() 7571 cai[3] = 0; add_b1() 7572 cai[4] = 0; add_b1() 7573 PUT_WORD(&cai[5], plci->appl->MaxDataLength); add_b1() 7575 cai[7 + i] = bp_parms[3].info[1 + i]; add_b1() 7576 cai[0] = 6 + bp_parms[3].length; add_b1() 7577 add_p(plci, CAI, cai); add_b1() 7587 cai[1] = plci->B1_resource; add_b1() 7588 cai[2] = 0; add_b1() 7589 cai[3] = 0; add_b1() 7590 cai[4] = 0; add_b1() 7591 PUT_WORD(&cai[5], plci->appl->MaxDataLength); add_b1() 7592 cai[0] = 6; add_b1() 7593 add_p(plci, CAI, cai); add_b1() 7609 cai[0] = 6; add_b1() 7610 cai[1] = plci->B1_resource; add_b1() 7611 for (i = 2; i < sizeof(cai); i++) cai[i] = 0; add_b1() 7626 cai[2] = 0; /* Bit rate for adaptation */ add_b1() 7630 PUT_WORD(&cai[13], 0); /* Min Tx speed */ add_b1() 7631 PUT_WORD(&cai[15], GET_WORD(mdm_cfg[0].info)); /* Max Tx speed */ add_b1() 7632 PUT_WORD(&cai[17], 0); /* Min Rx speed */ add_b1() 7633 PUT_WORD(&cai[19], GET_WORD(mdm_cfg[0].info)); /* Max Rx speed */ add_b1() 7635 cai[3] = 0; /* Async framing parameters */ add_b1() 7639 cai[3] |= (DSP_CAI_ASYNC_PARITY_ENABLE | DSP_CAI_ASYNC_PARITY_ODD); add_b1() 7644 cai[3] |= (DSP_CAI_ASYNC_PARITY_ENABLE | DSP_CAI_ASYNC_PARITY_EVEN); add_b1() 7656 cai[3] |= DSP_CAI_ASYNC_TWO_STOP_BITS; add_b1() 7668 cai[3] |= DSP_CAI_ASYNC_CHAR_LENGTH_5; add_b1() 7673 cai[3] |= DSP_CAI_ASYNC_CHAR_LENGTH_6; add_b1() 7678 cai[3] |= DSP_CAI_ASYNC_CHAR_LENGTH_7; add_b1() 7687 cai[7] = 0; /* Line taking options */ add_b1() 7688 cai[8] = 0; /* Modulation negotiation options */ add_b1() 7689 cai[9] = 0; /* Modulation options */ add_b1() 7693 cai[9] |= DSP_CAI_MODEM_REVERSE_DIRECTION; add_b1() 7699 cai[9] |= DSP_CAI_MODEM_DISABLE_RETRAIN; add_b1() 7705 cai[7] |= DSP_CAI_MODEM_DISABLE_CALLING_TONE | DSP_CAI_MODEM_DISABLE_ANSWER_TONE; add_b1() 7711 cai[8] |= DSP_CAI_MODEM_GUARD_TONE_1800HZ; add_b1() 7716 cai[8] |= DSP_CAI_MODEM_GUARD_TONE_550HZ; add_b1() 7722 cai[8] |= DSP_CAI_MODEM_NEGOTIATE_V100; add_b1() 7727 cai[8] |= DSP_CAI_MODEM_NEGOTIATE_IN_CLASS; add_b1() 7732 cai[8] |= DSP_CAI_MODEM_NEGOTIATE_DISABLED; add_b1() 7735 cai[0] = 20; add_b1() 7754 cai[7] |= (byte) d; /* line taking options */ add_b1() 7755 cai[9] |= (byte)(d >> 8); /* modulation options */ add_b1() 7756 cai[++i] = (byte)(d >> 16); /* vown modulation options */ add_b1() 7757 cai[++i] = (byte)(d >> 24); add_b1() 7761 cai[10] |= (byte) d; /* disabled modulations mask */ add_b1() 7762 cai[11] |= (byte)(d >> 8); add_b1() 7766 cai[12] = (byte) d; /* enabled modulations mask */ add_b1() 7767 cai[++i] = (byte)(d >> 8); /* vown enabled modulations */ add_b1() 7768 cai[++i] = (byte)(d >> 16); add_b1() 7769 cai[++i] = (byte)(d >> 24); add_b1() 7770 cai[++i] = 0; add_b1() 7775 PUT_WORD(&cai[13], w); /* min tx speed */ add_b1() 7780 PUT_WORD(&cai[15], w); /* max tx speed */ add_b1() 7785 PUT_WORD(&cai[17], w); /* min rx speed */ add_b1() 7790 PUT_WORD(&cai[19], w); /* max rx speed */ add_b1() 7794 cai[23] = (byte)(-((short) w)); /* transmit level */ add_b1() 7798 cai[22] |= (byte) w; /* info options mask */ add_b1() 7799 cai[21] |= (byte)(w >> 8); /* disabled symbol rates */ add_b1() 7809 cai[27] = i - 27; add_b1() 7817 cai[i] = (byte)(mdm_cfg_v18[n].length); add_b1() 7818 for (j = 1; j < ((word)(cai[i] + 1)); j++) add_b1() 7819 cai[i + j] = mdm_cfg_v18[n].info[j]; add_b1() 7820 i += cai[i] + 1; add_b1() 7824 cai[0] = (byte)(i - 1); add_b1() 7840 cai[1] = 8; add_b1() 7841 cai[2] = 0; add_b1() 7842 cai[3] = 0; add_b1() 7846 cai[2] = 9; add_b1() 7849 case 50: cai[2] = 1; break; add_b1() 7850 case 75: cai[2] = 1; break; add_b1() 7851 case 110: cai[2] = 1; break; add_b1() 7852 case 150: cai[2] = 1; break; add_b1() 7853 case 200: cai[2] = 1; break; add_b1() 7854 case 300: cai[2] = 1; break; add_b1() 7855 case 600: cai[2] = 1; break; add_b1() 7856 case 1200: cai[2] = 2; break; add_b1() 7857 case 2400: cai[2] = 3; break; add_b1() 7858 case 4800: cai[2] = 4; break; add_b1() 7859 case 7200: cai[2] = 10; break; add_b1() 7860 case 9600: cai[2] = 5; break; add_b1() 7861 case 12000: cai[2] = 13; break; add_b1() 7862 case 24000: cai[2] = 0; break; add_b1() 7863 case 14400: cai[2] = 11; break; add_b1() 7864 case 19200: cai[2] = 6; break; add_b1() 7865 case 28800: cai[2] = 12; break; add_b1() 7866 case 38400: cai[2] = 7; break; add_b1() 7867 case 48000: cai[2] = 8; break; add_b1() 7868 case 76: cai[2] = 15; break; /* 75/1200 */ add_b1() 7869 case 1201: cai[2] = 14; break; /* 1200/75 */ add_b1() 7870 case 56001: cai[2] = 9; break; /* V.110 56000 */ add_b1() 7875 cai[3] = 0; add_b1() 7876 if (cai[1] == 13) /* v.110 async */ add_b1() 7883 cai[3] |= DSP_CAI_ASYNC_CHAR_LENGTH_5; add_b1() 7886 cai[3] |= DSP_CAI_ASYNC_CHAR_LENGTH_6; add_b1() 7889 cai[3] |= DSP_CAI_ASYNC_CHAR_LENGTH_7; add_b1() 7895 cai[3] |= (DSP_CAI_ASYNC_PARITY_ENABLE | DSP_CAI_ASYNC_PARITY_ODD); add_b1() 7898 cai[3] |= (DSP_CAI_ASYNC_PARITY_ENABLE | DSP_CAI_ASYNC_PARITY_EVEN); add_b1() 7904 cai[3] |= DSP_CAI_ASYNC_TWO_STOP_BITS; add_b1() 7910 else if (cai[1] == 8 || GET_WORD(bp_parms[0].info) == 3) { add_b1() 7912 cai[1] = 8; add_b1() 7913 cai[2] = 0; add_b1() 7914 cai[3] = 0; add_b1() 7918 cai[2] = 5; add_b1() 7921 PUT_WORD(&cai[5], plci->appl->MaxDataLength); add_b1() 7922 dbug(1, dprintf("CAI[%d]=%x,%x,%x,%x,%x,%x", cai[0], cai[1], cai[2], cai[3], cai[4], cai[5], cai[6])); add_b1() 7923 /* HexDump ("CAI", sizeof(cai), &cai[0]); */ add_b1() 7925 add_p(plci, CAI, cai); add_b1() 9198 /* a cai with the 0x80 bit set. Assign return code is 'out of resource'*/ AdvCodecSupport()
|