📄 test-q784.c
字号:
printf (" |<-+---------------------%3ld--CMC--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CMC; *d++ = pmsg.cmi; *d++ = 0; /* eop */ goto send_isup; case CMRJ: printf (" |<-+---------------------%3ld--CMRJ-| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CMRJ; *d++ = pmsg.cmi; *d++ = 0; /* eop */ goto send_isup; case FAR: printf (" |<-+---------------------%3ld--FAR--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_FAR; *d++ = pmsg.faci; *d++ = 0; /* eop */ goto send_isup; case FAA: printf (" |<-+---------------------%3ld--FAA--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_FAA; *d++ = pmsg.faci; *d++ = 0; /* eop */ goto send_isup; case FRJ: printf (" |<-+---------------------%3ld--FRJ--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_FRJ; *d++ = pmsg.faci; *d++ = 0; /* eop */ goto send_isup; case FAD: printf (" |<-+---------------------%3ld--FAD--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_FAD; *d++ = pmsg.faci; *d++ = 0; /* eop */ goto send_isup; case FAI: printf (" |<-+---------------------%3ld--FAI--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_FAI; *d++ = pmsg.faci; *d++ = 0; /* eop */ goto send_isup; case LPA: printf (" |<-+---------------------%3ld--LPA--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_LPA; goto send_isup; case DRS: printf (" |<-+---------------------%3ld--DRS--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_DRS; *d++ = 0; /* eop */ goto send_isup; case PAM: printf (" |<-+---------------------%3ld--PAM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_PAM; for (i = 0; i < pmsg.pam.len; i++) *d++ = pmsg.pam.buf[i]; goto send_isup; case GRA: printf (" |<-+---------------------%3ld--GRA--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_GRA; *d++ = 1; *d++ = pmsg.rs.len; for (i = 0; i < pmsg.rs.len; i++) *d++ = pmsg.rs.buf[i]; goto send_isup; case CQM: printf (" |<-+---------------------%3ld--CQM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CQM; *d++ = 1; *d++ = pmsg.rs.len; for (i = 0; i < pmsg.rs.len; i++) *d++ = pmsg.rs.buf[i]; goto send_isup; case CQR: printf (" |<-+---------------------%3ld--CQR--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CQR; *d++ = 2; *d++ = 1 + pmsg.rs.len + 1; *d++ = pmsg.rs.len; for (i = 0; i < pmsg.rs.len; i++) *d++ = pmsg.rs.buf[i]; *d++ = pmsg.csi.len; for (i = 0; i < pmsg.csi.len; i++) *d++ = pmsg.csi.buf[i]; goto send_isup; case CPG: printf (" |<-+---------------------%3ld--CPG--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CPG; *d++ = pmsg.evnt; *d++ = 0; /* eop */ goto send_isup; case USR: printf (" |<-+---------------------%3ld--USR--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_USR; *d++ = 2; *d++ = 0; /* eop */ *d++ = pmsg.uui.len; for (i = 0; i < pmsg.uui.len; i++) *d++ = pmsg.uui.buf[i]; goto send_isup; case UCIC: printf (" |<-+---------------------%3ld--UCIC-| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_UCIC; goto send_isup; case CFN: printf (" |<-+---------------------%3ld--CFN--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CFN; *d++ = 2; *d++ = 0; /* eop */ *d++ = pmsg.caus.len; for (i = 0; i < pmsg.caus.len; i++) *d++ = pmsg.caus.buf[i]; goto send_isup; case OLM: printf (" |<-+---------------------%3ld--OLM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_OLM; goto send_isup; case CRG: printf (" |<-+---------------------%3ld--CRG--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CRG; goto send_isup; case NRM: printf (" |<-+---------------------%3ld--NRM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_NRM; *d++ = 0; /* eop */ goto send_isup; case FAC: printf (" |<-+---------------------%3ld--FAC--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_FAC; *d++ = 0; /* eop */ goto send_isup; case UPT: printf (" |<-+---------------------%3ld--UPT--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_UPT; *d++ = 0; /* eop */ goto send_isup; case UPA: printf (" |<-+---------------------%3ld--UPA--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_UPA; *d++ = 0; /* eop */ goto send_isup; case IDR: printf (" |<-+---------------------%3ld--IDR--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_IDR; *d++ = 0; /* eop */ goto send_isup; case IRS: printf (" |<-+---------------------%3ld--IRS--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_IRS; *d++ = 0; /* eop */ goto send_isup; case SGM: printf (" |<-+---------------------%3ld--SGM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_SGM; *d++ = 0; /* eop */ goto send_isup; case CRA: printf (" |<-+---------------------%3ld--CRA--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CRA; goto send_isup; case CRM: printf (" |<-+---------------------%3ld--CRM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CRM; *d++ = pmsg.nci; goto send_isup; case CVR: printf (" |<-+---------------------%3ld--CVR--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CVR; *d++ = pmsg.cvri; *d++ = pmsg.cgri; *d++ = 0; /* eop */ goto send_isup; case CVT: printf (" |<-+---------------------%3ld--CVT--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CVT; goto send_isup; case EXM: printf (" |<-+---------------------%3ld--EXM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_EXM; *d++ = 0; /* eop */ goto send_isup; case NON: printf (" |<-+---------------------%3ld--NON--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_NON; *d++ = pmsg.ton; *d++ = 0; /* eop */ goto send_isup; case LLM: printf (" |<-+---------------------%3ld--LLM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_LLM; goto send_isup; case CAK: printf (" |<-+---------------------%3ld--CAK--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_CAK; goto send_isup; case TCM: printf (" |<-+---------------------%3ld--TCM--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_TCM; *d++ = pmsg.cri; goto send_isup; case MCP: printf (" |<-+---------------------%3ld--MCP--| (%d)\n", pmsg.cic, state); FFLUSH(stdout); *d++ = ISUP_MT_MCP; goto send_isup; case PAUSE: printf (" |<-+--------------------------TFP--| (%d)\n", state); FFLUSH(stdout); m->pause_ind.mtp_primitive = MTP_PAUSE_IND; m->pause_ind.mtp_addr_offset = sizeof(m->pause_ind); m->pause_ind.mtp_addr_length = sizeof(rem_addr); *(mtp_addr_t *) (&m->pause_ind + 1) = rem_addr; ctrl.len = sizeof(m->pause_ind) + sizeof(mtp_addr_t); data.len = 0; goto send_mtp; case RESUME: printf (" |<-+--------------------------TFA--| (%d)\n", state); FFLUSH(stdout); m->resume_ind.mtp_primitive = MTP_RESUME_IND; m->resume_ind.mtp_addr_offset = sizeof(m->resume_ind); m->resume_ind.mtp_addr_length = sizeof(rem_addr); *(mtp_addr_t *) (&m->resume_ind + 1) = rem_addr; ctrl.len = sizeof(m->resume_ind) + sizeof(mtp_addr_t); data.len = 0; goto send_mtp; case RESTART_COMPLETE: printf (" |<-+--------------------------TRA--| (%d)\n", state); FFLUSH(stdout); m->pause_ind.mtp_primitive = MTP_RESTART_COMPLETE_IND; ctrl.len = sizeof(m->restart_complete_ind); data.len = 0; goto send_mtp; case USER_PART_UNKNOWN: printf (" |<-+--------------------------UPU--| (unknown) (%d)\n", state); FFLUSH(stdout); ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); m->status_ind.mtp_primitive = MTP_STATUS_IND; m->status_ind.mtp_type = MTP_STATUS_TYPE_UPU; m->status_ind.mtp_status = MTP_STATUS_UPU_UNKNOWN; m->status_ind.mtp_addr_offset = sizeof(m->status_ind); m->status_ind.mtp_addr_length = sizeof(rem_addr); *(mtp_addr_t *) (&m->status_ind + 1) = rem_addr; ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); data.len = 0; goto send_mtp; case USER_PART_UNEQUIPPED: printf (" |<-+--------------------------UPU--| (unequipped) (%d)\n", state); FFLUSH(stdout); ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); m->status_ind.mtp_primitive = MTP_STATUS_IND; m->status_ind.mtp_type = MTP_STATUS_TYPE_UPU; m->status_ind.mtp_status = MTP_STATUS_UPU_UNEQUIPPED; m->status_ind.mtp_addr_offset = sizeof(m->status_ind); m->status_ind.mtp_addr_length = sizeof(rem_addr); *(mtp_addr_t *) (&m->status_ind + 1) = rem_addr; ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); data.len = 0; goto send_mtp; case USER_PART_UNAVAILABLE: printf (" |<-+--------------------------UPU--| (unavailable) (%d)\n", state); FFLUSH(stdout); ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); m->status_ind.mtp_primitive = MTP_STATUS_IND; m->status_ind.mtp_type = MTP_STATUS_TYPE_UPU; m->status_ind.mtp_status = MTP_STATUS_UPU_INACCESSIBLE; m->status_ind.mtp_addr_offset = sizeof(m->status_ind); m->status_ind.mtp_addr_length = sizeof(rem_addr); *(mtp_addr_t *) (&m->status_ind + 1) = rem_addr; ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); data.len = 0; goto send_mtp; case CONGESTION: printf (" |<-+--------------------------TFC--| (%d)\n", state); FFLUSH(stdout); m->status_ind.mtp_primitive = MTP_STATUS_IND; m->status_ind.mtp_type = MTP_STATUS_TYPE_CONG; m->status_ind.mtp_status = MTP_STATUS_CONGESTION; m->status_ind.mtp_addr_offset = sizeof(m->status_ind); m->status_ind.mtp_addr_length = sizeof(rem_addr); *(mtp_addr_t *) (&m->status_ind + 1) = rem_addr; ctrl.len = sizeof(m->status_ind) + sizeof(mtp_addr_t); data.len = 0; goto send_mtp; case IBI: printf ("<<<<<<<<<<<<<<<<<<<<|<<|<<< IN-BAND INFORMATION <<<<<<<|<<<<<<<<<<<<<<<<<<<<(%d)\n", state); FFLUSH(stdout); return (SUCCESS); case RINGING: printf ("<<<<<<<<<<<<<<<<<<<<|<<|<<<<<<<<< RINGING <<<<<<<<<<<<<|<<<<<<<<<<<<<<<<<<<<(%d)\n", state); FFLUSH(stdout); return (SUCCESS); case COMMUNICATION: printf ("<><><><><><><><><><>|><|><><><> COMMUNICATION ><><><><>|<><><><><><><><><><>(%d)\n", state); FFLUSH(stdout); return (SUCCESS); case TONE: printf ("^<^<^<^<^<^<^<^<^<^<|<^|^<^<^< CONTINUITY TONE <^<^<^<^|^<^<^<^<^<^<^<^<^<^<(%d)\n", state); FFLUSH(stdout); return (SUCCESS);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -