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
This commit is contained in:
Matthew Fredrickson 2005-06-29 17:27:03 +00:00
parent 3fe76c6aea
commit d8ac58da6d
2 changed files with 3 additions and 0 deletions

View File

@ -343,6 +343,7 @@ typedef struct pri_event_proceeding {
int cref;
int progress;
int progressmask;
int cause;
q931_call *call;
} pri_event_proceeding;

2
q931.c
View File

@ -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) {