X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=ie.cpp;fp=ie.cpp;h=5e3074a362fc5c0e10380828af7aa95e725310c0;hp=f8663495414a236a013ecbc65f931fe3eb2c67bd;hb=5ad4c41dc406a15beaa0a7b73d9dada1df74f939;hpb=57c3ea7aa25062d6e77794f5152bd96672badd04 diff --git a/ie.cpp b/ie.cpp index f866349..5e3074a 100644 --- a/ie.cpp +++ b/ie.cpp @@ -1450,58 +1450,6 @@ void Pdss1::dec_ie_facility(unsigned char *p, Q931_info_t *qi, unsigned char *fa } -/* facility for siemens CENTEX (known parts implemented only) */ -void Pdss1::enc_facility_centrex(unsigned char **ntmode, msg_t *msg, unsigned char *cnip, int setup) -{ - unsigned char centrex[256]; - int i = 0; - - if (!cnip) - return; - - /* centrex facility */ - centrex[i++] = CENTREX_FAC; - centrex[i++] = CENTREX_ID; - - /* cnip */ - if (strlen((char *)cnip) > 15) - { - PDEBUG(DEBUG_PORT, "%s: CNIP/CONP text too long (max 13 chars), cutting.\n"); - cnip[15] = '\0'; - } - // dunno what the 8 bytes mean - if (setup) - { - centrex[i++] = 0x17; - centrex[i++] = 0x02; - centrex[i++] = 0x02; - centrex[i++] = 0x44; - centrex[i++] = 0x18; - centrex[i++] = 0x02; - centrex[i++] = 0x01; - centrex[i++] = 0x09; - } else - { - centrex[i++] = 0x18; - centrex[i++] = 0x02; - centrex[i++] = 0x02; - centrex[i++] = 0x81; - centrex[i++] = 0x09; - centrex[i++] = 0x02; - centrex[i++] = 0x01; - centrex[i++] = 0x0a; - } - - centrex[i++] = 0x80; - centrex[i++] = strlen((char *)cnip); - UCPY((char *)(¢rex[i]), (char *)cnip); - i += strlen((char *)cnip); - add_trace("facility", "cnip", "%s", cnip); - - /* encode facility */ - enc_ie_facility(ntmode, msg, centrex, i); -} - void Pdss1::dec_facility_centrex(unsigned char *p, Q931_info_t *qi, unsigned char *cnip, int cnip_len) { unsigned char centrex[256];