* 'pri debug' result on a REL COMP. Notice the abnormal "Unknown" cause : > Message type: RELEASE COMPLETE (90) > [08 02 87 90] > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: International network (7) > Ext: 1 Cause: Unknown (16), class = Normal Event (1) ] * Small changes in code2str() in order to understand a little better : static char code2str_buffer[1024] ; static char *code2str(int code, struct msgtype *codes, int max) { int x; char *ptr; for (x=0;x Message type: RELEASE COMPLETE (90) > [08 02 87 90] > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: International network (7) > Ext: 1 Cause: code2str(code=16,msgtype*,max=44) code not in ( 1 17 28 41 52 69 98 111 0 0 1953720679 26723 134612576 134612576 1685021535 0 1 0 1600939374 1684300127 1970339947 134620386 1868918121 1702125923 1936029041 1702195571 1702195571 134631925 0 134635949 1685221222 1701733735 6516588 1633645683 1601467233 0 29295 544108393 1680154726 1953785203 2957344 1634890847 1634890847 1818845510 ) (16), class = Normal Event (1) ] * 'pri debug' result with the standard code in code2str(), but 'struct msgtype causes[]' now is declared 'static' : > Message type: RELEASE COMPLETE (90) > [08 02 87 90] > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: International network (7) > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]