From d8ac58da6dbb91424f922687104d48b0f67f55b8 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Wed, 29 Jun 2005 17:27:03 +0000 Subject: [PATCH] Allow cause IEs to be passed through libpri in PROGRESS messages git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@234 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- libpri.h | 1 + q931.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libpri.h b/libpri.h index c0c4ecd..3fe9135 100755 --- a/libpri.h +++ b/libpri.h @@ -343,6 +343,7 @@ typedef struct pri_event_proceeding { int cref; int progress; int progressmask; + int cause; q931_call *call; } pri_event_proceeding; diff --git a/q931.c b/q931.c index e190704..ee3ed36 100755 --- a/q931.c +++ b/q931.c @@ -3189,6 +3189,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len) case Q931_CONNECT: case Q931_ALERTING: case Q931_PROGRESS: + c->cause = -1; case Q931_CALL_PROCEEDING: c->progress = -1; c->progressmask = 0; @@ -3463,6 +3464,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len) break; } pri->ev.e = PRI_EVENT_PROGRESS; + pri->ev.proceeding.cause = c->cause; /* Fall through */ case Q931_CALL_PROCEEDING: if (c->newcall) {