[asterisk-ss7] bug in ss7 with linkset (slc) not equal to 0

sai jayram AKV saijayram at gmail.com
Fri May 11 18:26:23 MST 2007


hi.
we have corrected a bug in ss7 stack when slc is not equal to 0.

File : mtp3.c
Function : set_routinglabel

Old code :

                case SS7_ITU:
                        buf[0] = rl->dpc & 0xff;
                        buf[1] = ((rl->dpc >> 8) & 0x3f) | ((rl->opc << 6) &
0xc0);
                        buf[2] = (rl->opc >> 2) & 0xff;
                        buf[3] = ((rl->opc >> 10) & 0x0f) | (rl->sls &
0xf0);
                        return 4;



Modified code:

                case SS7_ITU:
                        buf[0] = rl->dpc & 0xff;
                        buf[1] = ((rl->dpc >> 8) & 0x3f) | ((rl->opc << 6) &
0xc0);
                        buf[2] = (rl->opc >> 2) & 0xff;
                        buf[3] = ((rl->opc >> 10) & 0x0f) | ((rl->sls <<4) &
0xf0);
                        return 4;

Slc/sls should occupy upper nibble position as specified by ITU.


-- 
A.K.V.Sai jayram
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20070511/3c7b2874/attachment.htm


More information about the asterisk-ss7 mailing list