diff --git a/libpri.h b/libpri.h index 06b306c..d699fe0 100644 --- a/libpri.h +++ b/libpri.h @@ -361,6 +361,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 { diff --git a/q931.c b/q931.c index 0d89c83..afd7d06 100644 --- a/q931.c +++ b/q931.c @@ -3573,6 +3573,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) {