Fix SERVICE_ACKNOWLEDGE even with different address sizes
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@71 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
2
q931.c
2
q931.c
@@ -1935,7 +1935,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
|
||||
/* This is the weird maintenance stuff. We majorly
|
||||
KLUDGE this by changing byte 4 from a 0xf (SERVICE)
|
||||
to a 0x7 (SERVICE ACKNOWLEDGE) */
|
||||
h->raw[3] -= 0x8;
|
||||
h->raw[h->crlen + 2] -= 0x8;
|
||||
q931_xmit(pri, h, len, 1);
|
||||
return 0;
|
||||
} else if (h->pd != Q931_PROTOCOL_DISCRIMINATOR) {
|
||||
|
||||
Reference in New Issue
Block a user