From 856498556bbdc22bc0c657b77b5688df4264714f Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Thu, 27 Apr 2006 16:08:39 +0000 Subject: [PATCH] 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 --- libpri.h | 1 + q931.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libpri.h b/libpri.h index 0f8aa5c..d19eba9 100644 --- a/libpri.h +++ b/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 { diff --git a/q931.c b/q931.c index 858c3fe..fbd82bd 100644 --- a/q931.c +++ b/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) {