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
This commit is contained in:
parent
77bc439e4a
commit
0f6b3ad8ac
1
libpri.h
1
libpri.h
@ -285,6 +285,7 @@ typedef struct pri_event_ring {
|
|||||||
int ani2; /* ANI II */
|
int ani2; /* ANI II */
|
||||||
char callednum[256]; /* Called number */
|
char callednum[256]; /* Called number */
|
||||||
char redirectingnum[256]; /* Redirecting number */
|
char redirectingnum[256]; /* Redirecting number */
|
||||||
|
int redirectingreason; /* Reason for redirect */
|
||||||
char useruserinfo[256]; /* User->User info */
|
char useruserinfo[256]; /* User->User info */
|
||||||
int flexible; /* Are we flexible with our channel selection? */
|
int flexible; /* Are we flexible with our channel selection? */
|
||||||
int cref; /* Call Reference Number */
|
int cref; /* Call Reference Number */
|
||||||
|
1
q931.c
1
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.layer1 = c->userl1;
|
||||||
pri->ev.ring.complete = c->complete;
|
pri->ev.ring.complete = c->complete;
|
||||||
pri->ev.ring.ctype = c->transcapability;
|
pri->ev.ring.ctype = c->transcapability;
|
||||||
|
pri->ev.ring.redirectingreason = c->redirectingreason;
|
||||||
if (c->transmoderate != TRANS_MODE_64_CIRCUIT) {
|
if (c->transmoderate != TRANS_MODE_64_CIRCUIT) {
|
||||||
q931_release_complete(pri, c, PRI_CAUSE_BEARERCAPABILITY_NOTIMPL);
|
q931_release_complete(pri, c, PRI_CAUSE_BEARERCAPABILITY_NOTIMPL);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user