From 0f6b3ad8ac6f3144e6591670b3354bbd174706ad Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Wed, 15 Dec 2004 19:48:15 +0000 Subject: [PATCH] Adding redirecting reason support if exists to public interface git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@167 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 7fb25a1..a560f35 100755 --- a/libpri.h +++ b/libpri.h @@ -285,6 +285,7 @@ typedef struct pri_event_ring { int ani2; /* ANI II */ char callednum[256]; /* Called number */ char redirectingnum[256]; /* Redirecting number */ + int redirectingreason; /* Reason for redirect */ char useruserinfo[256]; /* User->User info */ int flexible; /* Are we flexible with our channel selection? */ int cref; /* Call Reference Number */ diff --git a/q931.c b/q931.c index 986d134..ce2962d 100755 --- a/q931.c +++ b/q931.c @@ -2862,6 +2862,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len) pri->ev.ring.layer1 = c->userl1; pri->ev.ring.complete = c->complete; pri->ev.ring.ctype = c->transcapability; + pri->ev.ring.redirectingreason = c->redirectingreason; if (c->transmoderate != TRANS_MODE_64_CIRCUIT) { q931_release_complete(pri, c, PRI_CAUSE_BEARERCAPABILITY_NOTIMPL); break;