Make sure we pass the call back in the setup_ack
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.2@327 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
1
libpri.h
1
libpri.h
@@ -359,6 +359,7 @@ typedef struct pri_event_proceeding {
|
||||
typedef struct pri_event_setup_ack {
|
||||
int e;
|
||||
int channel;
|
||||
q931_call *call;
|
||||
} pri_event_setup_ack;
|
||||
|
||||
typedef struct pri_event_notify {
|
||||
|
||||
1
q931.c
1
q931.c
@@ -3530,6 +3530,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
|
||||
c->peercallstate = Q931_CALL_STATE_OVERLAP_RECEIVING;
|
||||
pri->ev.e = PRI_EVENT_SETUP_ACK;
|
||||
pri->ev.setup_ack.channel = c->channelno | (c->ds1no << 8) | (c->ds1explicit << 16);
|
||||
pri->ev.setup_ack.call = c;
|
||||
|
||||
cur = c->apdus;
|
||||
while (cur) {
|
||||
|
||||
Reference in New Issue
Block a user