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;