From 2fa3049e19eca674eda111ed19a65b22083196b5 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Tue, 19 Jun 2007 18:22:33 +0000 Subject: [PATCH] Try to send pending facility messages if we receive alerting (for when we don't get proceeding) (#9651) git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.2@426 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/q931.c b/q931.c index 777ff73..e08140b 100644 --- a/q931.c +++ b/q931.c @@ -3294,6 +3294,16 @@ int q931_receive(struct pri *pri, q931_h *h, int len) pri->ev.ringing.progressmask = c->progressmask; libpri_copy_string(pri->ev.ringing.useruserinfo, c->useruserinfo, sizeof(pri->ev.ringing.useruserinfo)); c->useruserinfo[0] = '\0'; + + cur = c->apdus; + while (cur) { + if (!cur->sent && cur->message == Q931_FACILITY) { + q931_facility(pri, c); + break; + } + cur = cur->next; + } + return Q931_RES_HAVEEVENT; case Q931_CONNECT: if (c->newcall) {