Lines Matching refs:appl
193 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P…
204 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_…
212 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_PAR…
233 void *TransmitBufferSet(APPL *appl, dword ref);
234 void *TransmitBufferGet(APPL *appl, void *p);
235 void TransmitBufferFree(APPL *appl, void *p);
236 void *ReceiveBufferGet(APPL *appl, int Num);
386 word api_put(APPL *appl, CAPI_MSG *msg) in api_put() argument
422 && (plci->appl in api_put()
535 m->info.data_b3_req.Data = (dword)(long)(TransmitBufferSet(appl, m->info.data_b3_req.Data)); in api_put()
541 *((APPL **)(&((byte *)(plci->msg_in_queue))[j])) = appl; in api_put()
577 appl, in api_put()
855 APPL *appl; in ncci_free_receive_buffers() local
865 if (!plci->appl) in ncci_free_receive_buffers()
873 appl = plci->appl; in ncci_free_receive_buffers()
875 for (i = 0; i < appl->MaxBuffer; i++) in ncci_free_receive_buffers()
877 if ((appl->DataNCCI[i] == ncci_code) in ncci_free_receive_buffers()
878 && (((byte)(appl->DataFlags[i] >> 8)) == plci->Id)) in ncci_free_receive_buffers()
880 appl->DataNCCI[i] = 0; in ncci_free_receive_buffers()
892 if (!plci->appl) in ncci_free_receive_buffers()
900 appl = plci->appl; in ncci_free_receive_buffers()
902 for (i = 0; i < appl->MaxBuffer; i++) in ncci_free_receive_buffers()
904 if ((appl->DataNCCI[i] == ncci_code) in ncci_free_receive_buffers()
905 && (((byte)(appl->DataFlags[i] >> 8)) == plci->Id)) in ncci_free_receive_buffers()
907 appl->DataNCCI[i] = 0; in ncci_free_receive_buffers()
924 if (plci->appl) in cleanup_ncci_data()
929 TransmitBufferFree(plci->appl, ncci_ptr->DBuffer[ncci_ptr->data_out].P); in cleanup_ncci_data()
1021 if (plci->appl) in plci_free_msg_in_queue()
1031 TransmitBufferFree(plci->appl, in plci_free_msg_in_queue()
1084 plci->appl = NULL; in plci_remove()
1196 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_req() argument
1224 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", 0); in connect_req()
1225 sendf(appl, _DISCONNECT_I, Id, 0, "w", _L1_ERROR); in connect_req()
1233 plci->appl = appl; in connect_req()
1238 if (AdvCodecSupport(a, plci, appl, 0)) in connect_req()
1241 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", _WRONG_IDENTIFIER); in connect_req()
1342 if (a->Info_Mask[appl->Id - 1] & 0x200) in connect_req()
1391 plci->appl = appl; in connect_req()
1403 sendf(appl, in connect_req()
1412 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_res() argument
1449 if (a->Info_Mask[appl->Id - 1] & 0x200) in connect_res()
1462 clear_c_ind_mask_bit(plci, (word)(appl->Id - 1)); in connect_res()
1489 plci->appl = appl; in connect_res()
1493 sendf(appl, _DISCONNECT_I, Id, 0, "w", _OTHER_APPL_CONNECTED); in connect_res()
1497 plci->appl = appl; in connect_res()
1499 if (AdvCodecSupport(a, plci, appl, 0)) { in connect_res()
1546 if (a->Info_Mask[appl->Id - 1] & 0x200) in connect_res()
1569 PLCI *plci, APPL *appl, API_PARSE *msg) in connect_a_res() argument
1576 PLCI *plci, APPL *appl, API_PARSE *msg) in disconnect_req() argument
1589 clear_c_ind_mask_bit(plci, (word)(appl->Id - 1)); in disconnect_req()
1590 plci->appl = appl; in disconnect_req()
1598 if (plci->Sig.Id && plci->appl) in disconnect_req()
1617 sendf(appl, _DISCONNECT_R | CONFIRM, Id, Number, "w", 0); in disconnect_req()
1618 sendf(appl, _DISCONNECT_I, Id, 0, "w", 0); in disconnect_req()
1626 if (!appl) return false; in disconnect_req()
1627 sendf(appl, _DISCONNECT_R | CONFIRM, Id, Number, "w", Info); in disconnect_req()
1632 PLCI *plci, APPL *appl, API_PARSE *msg) in disconnect_res() argument
1639 clear_c_ind_mask_bit(plci, (word)(appl->Id - 1)); in disconnect_res()
1660 PLCI *plci, APPL *appl, API_PARSE *parms) in listen_req() argument
1665 dbug(1, dprintf("listen_req(Appl=0x%x)", appl->Id)); in listen_req()
1670 a->Info_Mask[appl->Id - 1] = GET_DWORD(parms[0].info); in listen_req()
1671 a->CIP_Mask[appl->Id - 1] = GET_DWORD(parms[1].info); in listen_req()
1673 if (a->Info_Mask[appl->Id - 1] & 0x200) { /* early B3 connect provides */ in listen_req()
1674 a->Info_Mask[appl->Id - 1] |= 0x10; /* call progression infos */ in listen_req()
1681 a->codec_listen[appl->Id - 1] = &dummy_plci; in listen_req()
1696 a->codec_listen[appl->Id - 1] = (PLCI *)0; in listen_req()
1699 sendf(appl, in listen_req()
1710 PLCI *plci, APPL *appl, API_PARSE *msg) in info_req() argument
1774 appl->NullCREnable = true; in info_req()
1776 rc_plci->appl = appl; in info_req()
1810 sendf(appl, in info_req()
1820 PLCI *plci, APPL *appl, API_PARSE *msg) in info_res() argument
1827 PLCI *plci, APPL *appl, API_PARSE *msg) in alert_req() argument
1849 sendf(appl, in alert_req()
1858 PLCI *plci, APPL *appl, API_PARSE *msg) in facility_req() argument
1895 Info = AdvCodecSupport(a, plci, appl, HOOK_SUPPORT); in facility_req()
1913 rplci->appl = appl; in facility_req()
1927 rplci->appl = appl; in facility_req()
1948 a->Notification_Mask[appl->Id - 1] = GET_DWORD(ss_parms[2].info); in facility_req()
1949 if (a->Notification_Mask[appl->Id - 1] & SMASK_MWI) /* MWI active? */ in facility_req()
1954 rplci->appl = appl; in facility_req()
1989 if (AdvCodecSupport(a, plci, appl, 0)) in facility_req()
2044 rplci->appl = appl; in facility_req()
2051 if (AdvCodecSupport(a, rplci, appl, 0)) in facility_req()
2071 if (a->Info_Mask[appl->Id - 1] & 0x200) in facility_req()
2229 if (!rplci->internal_command && rplci->appl) in facility_req()
2299 appl->CDEnable = true; in facility_req()
2320 rplci->appl = appl; in facility_req()
2334 rplci->appl = appl; in facility_req()
2336 appl->S_Handle = GET_DWORD(&(ss_parms[2].info[0])); in facility_req()
2422 rplci->appl = appl; in facility_req()
2435 appl->S_Handle = GET_DWORD(&(ss_parms[2].info[0])); in facility_req()
2479 rplci->appl = appl; in facility_req()
2500 rplci->appl = appl; in facility_req()
2531 rplci->appl = appl; in facility_req()
2552 rplci->appl = appl; in facility_req()
2574 return (dtmf_request(Id, Number, a, plci, appl, msg)); in facility_req()
2579 return (mixer_request(Id, Number, a, plci, appl, msg)); in facility_req()
2584 appl->appl_flags |= APPL_FLAG_PRIV_EC_SPEC; in facility_req()
2585 return (ec_request(Id, Number, a, plci, appl, msg)); in facility_req()
2588 appl->appl_flags &= ~APPL_FLAG_PRIV_EC_SPEC; in facility_req()
2589 return (ec_request(Id, Number, a, plci, appl, msg)); in facility_req()
2600 sendf(appl, in facility_req()
2609 PLCI *plci, APPL *appl, API_PARSE *msg) in facility_res() argument
2616 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_req() argument
2654 sendf(appl, in connect_b3_req()
2734 …(plci->requested_options_conn | plci->requested_options | a->requested_options_table[appl->Id - 1]) in connect_b3_req()
2741 …(plci->requested_options_conn | plci->requested_options | a->requested_options_table[appl->Id - 1]) in connect_b3_req()
2768 …(plci->requested_options_conn | plci->requested_options | a->requested_options_table[appl->Id - 1]) in connect_b3_req()
2842 sendf(appl, in connect_b3_req()
2851 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_res() argument
2886 …>requested_options_conn | plci->requested_options | a->requested_options_table[plci->appl->Id - 1]) in connect_b3_res()
2929 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in connect_b3_res()
2931 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in connect_b3_res()
2953 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in connect_b3_res()
2967 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_a_res() argument
2988 PLCI *plci, APPL *appl, API_PARSE *parms) in disconnect_b3_req() argument
3036 sendf(appl, in disconnect_b3_req()
3045 PLCI *plci, APPL *appl, API_PARSE *parms) in disconnect_b3_res() argument
3071 sendf(plci->appl, in disconnect_b3_res()
3076 sendf(plci->appl, _DISCONNECT_I, Id & 0xffffL, 0, "w", 0); in disconnect_b3_res()
3102 PLCI *plci, APPL *appl, API_PARSE *parms) in data_b3_req() argument
3137 data->P = TransmitBufferSet(appl, *(dword *)parms[0].info); in data_b3_req()
3158 if (appl) in data_b3_req()
3166 TransmitBufferFree(appl, (byte *)(long)(*((dword *)(parms[0].info)))); in data_b3_req()
3170 sendf(appl, in data_b3_req()
3180 PLCI *plci, APPL *appl, API_PARSE *parms) in data_b3_res() argument
3193 if (n < appl->MaxBuffer && in data_b3_res()
3194 appl->DataNCCI[n] == NCCIcode && in data_b3_res()
3195 (byte)(appl->DataFlags[n] >> 8) == plci->Id) { in data_b3_res()
3197 appl->DataNCCI[n] = 0; in data_b3_res()
3204 if (appl->DataFlags[n] & 4) { in data_b3_res()
3214 PLCI *plci, APPL *appl, API_PARSE *parms) in reset_b3_req() argument
3247 sendf(appl, in reset_b3_req()
3256 PLCI *plci, APPL *appl, API_PARSE *parms) in reset_b3_res() argument
3281 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_t90_a_res() argument
3316 PLCI *plci, APPL *appl, API_PARSE *msg) in select_b_req() argument
3330 msg->length, plci->Id, plci->tel, plci->NL.Id, plci->appl, plci->SuppState)); in select_b_req()
3351 sendf(appl, _SELECT_B_REQ | CONFIRM, Id, Number, "w", 0x2002); /* wrong controller */ in select_b_req()
3355 plci->appl = appl; in select_b_req()
3356 clear_c_ind_mask_bit(plci, (word)(appl->Id - 1)); in select_b_req()
3371 if (a->AdvSignalAppl && a->AdvSignalAppl != appl) in select_b_req()
3387 if (AdvCodecSupport(a, plci, appl, 0)) in select_b_req()
3407 if (a->AdvSignalAppl == appl) in select_b_req()
3431 sendf(appl, _SELECT_B_REQ | CONFIRM, Id, Number, "w", Info); in select_b_req()
3436 PLCI *plci, APPL *appl, API_PARSE *parms) in manufacturer_req() argument
3476 plci->appl = appl; in manufacturer_req()
3499 if (AdvCodecSupport(a, plci, appl, 0)) { in manufacturer_req()
3553 sendf(appl, in manufacturer_req()
3744 a->requested_options_table[appl->Id - 1] = GET_DWORD(m_parms[0].info); in manufacturer_req()
3755 sendf(appl, in manufacturer_req()
3765 PLCI *plci, APPL *appl, API_PARSE *msg) in manufacturer_res() argument
3843 APPL *appl; in callback() local
4052 appl = *((APPL **)(&((byte *)(plci->msg_in_queue))[j + i])); in callback()
4074 i = api_put(appl, m); in callback()
4079 TransmitBufferFree(appl, (byte *)(long)(m->info.data_b3_req.Data)); in callback()
4107 APPL *appl; in control_rc() local
4129 appl = plci->appl; in control_rc()
4132 if (appl) in control_rc()
4159 sendf(appl, _FACILITY_R | CONFIRM, Id, Number, "wws", Info, 3, SSparms); in control_rc()
4170 sendf(appl, _FACILITY_R | CONFIRM, Id, Number, "wws", Info, 3, SSparms); in control_rc()
4176 sendf(appl, _INFO_R | CONFIRM, Id, Number, "w", Info); in control_rc()
4189 sendf(appl, _CONNECT_R | CONFIRM, Id & 0xffL, Number, "w", _OUT_OF_PLCI); in control_rc()
4195 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4202 sendf(appl, _CONNECT_R | CONFIRM, Id & 0xffL, Number, "w", _OUT_OF_PLCI); in control_rc()
4207 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4208 sendf(plci->appl, _CONNECT_ACTIVE_I, Id, 0, "sss", "", "", ""); in control_rc()
4224 sendf(appl, _DISCONNECT_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4237 sendf(appl, _CONNECT_B3_R | CONFIRM, Id, Number, "w", _WRONG_IDENTIFIER); in control_rc()
4246 sendf(appl, _CONNECT_B3_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4247 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in control_rc()
4252 sendf(appl, _CONNECT_B3_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4264 sendf(appl, _DISCONNECT_B3_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4274 sendf(plci->appl, _CONNECT_R | CONFIRM, Id, Number, "w", Info); in control_rc()
4278 sendf(plci->appl, _CONNECT_R | CONFIRM, Id, Number, "w", Info); in control_rc()
4308 sendf(appl, _FACILITY_R | CONFIRM, Id, Number, "wws", 0, 3, SSstruct); in control_rc()
4348 if (!plci->appl) break; in control_rc()
4357 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0x7, in control_rc()
4375 sendf(rplci->appl, in control_rc()
4396 sendf(rplci->appl, in control_rc()
4408 …sendf(appl, _MANUFACTURER_R | CONFIRM, Id, Number, "dww", _DI_MANU_ID, _MANUFACTURER_R, _OUT_OF_PL… in control_rc()
4418 sendf(appl, _CONNECT_R | CONFIRM, Id & 0xffL, Number, "w", _OUT_OF_PLCI); in control_rc()
4450 sendf(appl, _INFO_R | CONFIRM, Id & 0xf, Number, "w", _WRONG_STATE); in control_rc()
4451 appl->NullCREnable = false; in control_rc()
4459 sendf(appl, _INFO_R | CONFIRM, Id & 0xf, Number, "w", 0); in control_rc()
4463 sendf(appl, _INFO_R | CONFIRM, Id & 0xf, Number, "w", _WRONG_STATE); in control_rc()
4464 appl->NullCREnable = false; in control_rc()
4523 sendf(plci->appl, in control_rc()
4532 sendf(plci->appl, in control_rc()
4580 sendf(rplci->appl, in control_rc()
4615 plci->appl->CDEnable = 0; in control_rc()
4617 sendf(plci->appl, _FACILITY_R | CONFIRM, Id, in control_rc()
4772 if (plci->appl) in data_rc()
4774 TransmitBufferFree(plci->appl, plci->data_sent_ptr); in data_rc()
4788 sendf(plci->appl, _DATA_B3_R | CONFIRM, Id, data->Number, in data_rc()
4816 sendf(plci->appl, _DATA_B3_R | CONFIRM, Id, ncci_ptr->DataAck[ncci_ptr->data_ack_out].Number, in data_ack()
4923 if (plci->appl) in sig_ind()
4924 sendf(plci->appl, _DISCONNECT_B3_I, (((dword) ncci) << 16) | Id, 0, "ws", 0, ""); in sig_ind()
4927 if (plci->appl) in sig_ind()
4928 sendf(plci->appl, _DISCONNECT_I, Id, 0, "w", 0); in sig_ind()
4953 if (plci->cr_enquiry && plci->appl) in sig_ind()
4965 sendf(plci->appl, in sig_ind()
5101 if (plci->tel == ADV_VOICE && plci->appl) { in sig_ind()
5106 if (plci->appl) plci->appl->Number++; in sig_ind()
5112 if (!plci->appl) break; in sig_ind()
5123 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0x7, plci->number, "wws", 0, 3, CF_Ind); in sig_ind()
5162 sendf(tplci->appl, _FACILITY_I, rId, 0, "ws", 3, SS_Ind); in sig_ind()
5194 if (!plci->appl) break; in sig_ind()
5250 PUT_DWORD(&Interr_Err_Ind[6], plci->appl->S_Handle); in sig_ind()
5251 sendf(plci->appl, _FACILITY_I, Id & 0x7, 0, "ws", 3, Interr_Err_Ind); in sig_ind()
5273 sendf(plci->appl, _FACILITY_I, Id & 0xf, 0, "ws", 3, SS_Ind); in sig_ind()
5278 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5332 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, CONF_Ind); in sig_ind()
5364 sendf(tplci->appl, _FACILITY_I, rId, 0, "ws", 3, SS_Ind); in sig_ind()
5386 sendf(tplci->appl, _FACILITY_I, rId, 0, "ws", 3, SS_Ind); in sig_ind()
5404 if (!plci->appl) break; in sig_ind()
5406 PUT_DWORD(&CF_Ind[6], plci->appl->S_Handle); in sig_ind()
5407 sendf(plci->appl, _FACILITY_I, Id & 0x7, 0, "ws", 3, CF_Ind); in sig_ind()
5418 if (!plci->appl) break; in sig_ind()
5450 PUT_DWORD(&pty_cai[6], plci->appl->S_Handle); in sig_ind()
5451 sendf(plci->appl, _FACILITY_I, Id & 0x7, 0, "wS", 3, pty_cai); in sig_ind()
5464 sendf(plci->appl, _FACILITY_I, Id & 0xf, 0, "ws", 3, SS_Ind); in sig_ind()
5469 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5478 if (plci->appl && (a->Notification_Mask[plci->appl->Id - 1] & SMASK_MWI)) in sig_ind()
5482 sendf(plci->appl, _FACILITY_I, Id & 0xf, 0, "wS", 3, &pty_cai[2]); in sig_ind()
5486 else sendf(plci->appl, _FACILITY_I, Id, 0, "wS", 3, &pty_cai[2]); in sig_ind()
5574 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, CONF_Ind); in sig_ind()
5600 if (plci->appl && (a->Notification_Mask[plci->appl->Id - 1] & SMASK_CCBS)) in sig_ind()
5602 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, CONF_Ind); in sig_ind()
5629 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5659 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5681 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5797 if (tplci->adapter->Info_Mask[tplci->appl->Id - 1] & 0x200) in sig_ind()
5819 …sendf(tplci->appl, _MANUFACTURER_R | CONFIRM, x_Id, tplci->number, "dww", _DI_MANU_ID, _MANUFACTUR… in sig_ind()
5833 …sendf(tplci->appl, _MANUFACTURER_R | CONFIRM, x_Id, tplci->number, "dww", _DI_MANU_ID, _MANUFACTUR… in sig_ind()
5845 sendf(tplci->appl, _CONNECT_R | CONFIRM, tplci->adapter->Id, 0, "w", _OUT_OF_PLCI); in sig_ind()
5888 sendf(plci->appl, _CONNECT_ACTIVE_I, Id, 0, "Sss", parms[21], "", ""); in sig_ind()
5924 tplci->appl = &application[i]; in sig_ind()
5948 tplci->appl = a->AdvSignalAppl; in sig_ind()
5958 sendf(tplci->appl, in sig_ind()
5999 clear_c_ind_mask_bit(plci, (word)(plci->appl->Id - 1)); in sig_ind()
6001 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, resume_cau); in sig_ind()
6017 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, "\x05\x04\x00\x02\x00\x00"); in sig_ind()
6018 sendf(plci->appl, _DISCONNECT_I, Id, 0, "w", 0); in sig_ind()
6052 if (!plci->appl) in sig_ind()
6086 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, resume_cau); in sig_ind()
6089 sendf(plci->appl, _DISCONNECT_I, Id, 0, "w", i); in sig_ind()
6118 static void SendSetupInfo(APPL *appl, PLCI *plci, dword Id, byte **parms, byte Info_Sent_Flag) in SendSetupInfo() argument
6184 if (plci->adapter->Info_Mask[appl->Id - 1] & Info_Mask) { in SendSetupInfo()
6185 sendf(appl, _INFO_I, Id, 0, "wS", Info_Number, Info_Element); in SendSetupInfo()
6203 APPL *appl; in SendInfo() local
6208 !plci->appl in SendInfo()
6327 appl = &application[j]; in SendInfo()
6329 && appl->Id in SendInfo()
6330 && plci->adapter->Info_Mask[appl->Id - 1] & Info_Mask) in SendInfo()
6338 else if (!plci->appl) in SendInfo()
6358 && plci->adapter->Info_Mask[plci->appl->Id - 1] & Info_Mask) in SendInfo()
6362 sendf(plci->appl, _INFO_I, Id, 0, "wS", Info_Number, Info_Element); in SendInfo()
6376 APPL *appl; in SendMultiIE() local
6381 !plci->appl in SendMultiIE()
6408 appl = &application[j]; in SendMultiIE()
6410 && appl->Id in SendMultiIE()
6411 && plci->adapter->Info_Mask[appl->Id - 1] & Info_Mask) in SendMultiIE()
6419 else if (!plci->appl && Info_Number) in SendMultiIE()
6432 && plci->adapter->Info_Mask[plci->appl->Id - 1] & Info_Mask) in SendMultiIE()
6436 sendf(plci->appl, _INFO_I, Id, 0, "wS", Info_Number, Info_Element); in SendMultiIE()
6442 static void SendSSExtInd(APPL *appl, PLCI *plci, dword Id, byte **parms) in SendSSExtInd() argument
6463 if (appl) in SendSSExtInd()
6466 sendf(appl, _MANUFACTURER_I, in SendSSExtInd()
6474 else if (plci->appl) in SendSSExtInd()
6477 sendf(plci->appl, _MANUFACTURER_I, in SendSSExtInd()
6574 APPLptr = plci->appl; in nl_ind()
6674 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6679 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in nl_ind()
6700 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", SELECTOR_DTMF, "\x01X"); in nl_ind()
6704 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", SELECTOR_DTMF, "\x01Y"); in nl_ind()
6754 sendf(plci->appl, _DATA_B3_I, Id, 0, in nl_ind()
6765 sendf(plci->appl, _DATA_B3_I, Id, 0, in nl_ind()
6840 …>requested_options_conn | plci->requested_options | a->requested_options_table[plci->appl->Id - 1]) in nl_ind()
6905 sendf(plci->appl, _MANUFACTURER_I, Id, 0, "dwbS", _DI_MANU_ID, _DI_NEGOTIATE_B3, in nl_ind()
6924 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in nl_ind()
6926 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6937 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in nl_ind()
6939 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6947 sendf(plci->appl, _DISCONNECT_B3_I, Id, 0, "wS", GOOD, plci->ncpi_buffer); in nl_ind()
6965 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in nl_ind()
6967 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7002 sendf(plci->appl, msg, Id, 0, "s", ""); in nl_ind()
7004 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7024 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7034 sendf(plci->appl, msg, Id, 0, "s", ""); in nl_ind()
7036 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7043 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7087 sendf(plci->appl, _CONNECT_B3_I, Id, 0, "s", ""); in nl_ind()
7091 …>requested_options_conn | plci->requested_options | a->requested_options_table[plci->appl->Id - 1]) in nl_ind()
7100 sendf(plci->appl, _CONNECT_B3_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7102 sendf(plci->appl, _DISCONNECT_B3_I, Id, 0, "wS", info, plci->ncpi_buffer); in nl_ind()
7119 sendf(plci->appl, in nl_ind()
7124 sendf(plci->appl, _DISCONNECT_I, Id & 0xffffL, 0, "w", 0); in nl_ind()
7133 sendf(plci->appl, _DISCONNECT_B3_I, Id, 0, "wS", info, plci->ncpi_buffer); in nl_ind()
7146 sendf(plci->appl, _RESET_B3_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7150 sendf(plci->appl, _RESET_B3_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7289 plci->appl = NULL; in get_plci()
7510 PUT_WORD(&voice_cai[5], plci->appl->MaxDataLength); in add_b1()
7573 PUT_WORD(&cai[5], plci->appl->MaxDataLength); in add_b1()
7591 PUT_WORD(&cai[5], plci->appl->MaxDataLength); in add_b1()
7745 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b1()
7921 PUT_WORD(&cai[5], plci->appl->MaxDataLength); in add_b1()
8004 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
8019 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
8061 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
8140 PUT_WORD(&dlc[1], plci->appl->MaxDataLength + in add_b23()
8170 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
8366 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8460 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8463 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8486 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8646 PUT_WORD(&dlc[i], plci->appl->MaxDataLength); in add_modem_b23()
8836 plci->NData[1].P = TransmitBufferGet(plci->appl, data->P); in send_data()
8848 plci->NData[0].P = TransmitBufferGet(plci->appl, data->P); in send_data()
9122 static word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, in AdvCodecSupport() argument
9138 if (a->AdvSignalAppl != appl || a->AdvSignalPLCI) in AdvCodecSupport()
9173 a->AdvSignalAppl = appl; in AdvCodecSupport()
9394 if (!plci->appl) in CapiRelease()
9401 if (plci->appl == this) in CapiRelease()
9403 plci->appl = NULL; in CapiRelease()
9475 plci->appl = NULL; in plci_remove_check()
9914 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0xffffL, plci->number, in dtmf_command()
9919 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API… in dtmf_request() argument
9949 if (!((a->requested_options_table[appl->Id - 1]) in dtmf_request()
10010 …sted_options_conn | plci->requested_options | plci->adapter->requested_options_table[appl->Id - 1]) in dtmf_request()
10050 …sted_options_conn | plci->requested_options | plci->adapter->requested_options_table[appl->Id - 1]) in dtmf_request()
10110 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in dtmf_request()
10128 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0xffffL, plci->dtmf_msg_number_queue[0], in dtmf_confirmation()
10178 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "wS", SELECTOR_DTMF, msg); in dtmf_indication()
11293 && (notify_plci->appl != NULL) in mixer_notify_update()
11299 ((CAPI_MSG *) msg)->header.appl_id = notify_plci->appl->Id; in mixer_notify_update()
11309 w = api_put(notify_plci->appl, (CAPI_MSG *) msg); in mixer_notify_update()
12035 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, AP… in mixer_request() argument
12077 if (appl->appl_flags & APPL_FLAG_OLD_LI_SPEC) in mixer_request()
12151 appl->appl_flags |= APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12182 appl->appl_flags &= ~APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12266 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in mixer_request()
12276 appl->appl_flags |= APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12306 appl->appl_flags &= ~APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12385 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in mixer_request()
12432 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in mixer_request()
12453 if (plci->appl->appl_flags & APPL_FLAG_OLD_LI_SPEC) in mixer_indication_coefs_set()
12488 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, in mixer_indication_coefs_set()
12599 && (notify_plci->appl != NULL) in mixer_remove()
12600 && !(notify_plci->appl->appl_flags & APPL_FLAG_OLD_LI_SPEC) in mixer_remove()
12724 if (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) in ec_command()
12821 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0xffffL, plci->number, in ec_command()
12822 "wws", Info, (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) ? in ec_command()
12827 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P… in ec_request() argument
12847 if (appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) in ec_request()
13010 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in ec_request()
13011 "wws", Info, (appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) ? in ec_request()
13026 if (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) in ec_indication()
13062 …sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_… in ec_indication()
13408 …|| (plci->appl && (plci->adapter->requested_options_table[plci->appl->Id - 1] & (1L << PRIVATE_DTM… in get_b1_facilities()
13477 …|| (plci->appl && (plci->adapter->requested_options_table[plci->appl->Id - 1] & (1L << PRIVATE_DTM… in add_b1_facilities()
14037 sendf(plci->appl, _RESET_B3_I, Id, 0, "s", ""); in reset_b3_command()
14096 sendf(plci->appl, _SELECT_B_REQ | CONFIRM, Id, plci->number, "w", Info); in select_b_command()
14139 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in fax_connect_ack_command()
14141 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in fax_connect_ack_command()
14232 sendf(plci->appl, _CONNECT_B3_R | CONFIRM, Id, plci->number, "w", Info); in fax_connect_info_command()
14280 sendf(plci->appl, _CONNECT_B3_R | CONFIRM, Id, plci->number, "w", Info); in fax_adjust_b23_command()
14376 sendf(plci->appl, _CONNECT_B3_R | CONFIRM, Id, plci->number, "w", Info); in rtp_connect_b3_req_command()
14415 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in rtp_connect_b3_res_command()
14468 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", 3, SS_Ind); in hold_save_command()
14507 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", 3, SS_Ind); in retrieve_restore_command()
14695 APPLptr = plci->appl; in channel_can_xon()
14780 if (auxplci->appl == &application[i]) /* application has a busy PLCI */ in group_optimization()
14916 !plci->appl || in VSwitchReqInd()