From a50516c1e4903cf4ab035c8f3f6f49f4d3ba9395 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Mon, 18 Aug 2014 22:44:04 +0000 Subject: [PATCH] q931.c: Make always post a PRI_EVENT_KEYPAD_DIGIT if keypad digits come in an INFO message. Q.931 Section 3.1.6 INFORMATION message. The keypad-facility or called-party-number ie could be used to convey called party digits. The keypad-facility ie can also be used to convey supplementary service information. PRI-173 #close Reported by: Gerald Schnabel Patches: libpri_q931_keypad_digits.patch (license #6297) patch uploaded by Gerald Schnabel git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2327 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q931.c b/q931.c index e87f06c..2cafb38 100644 --- a/q931.c +++ b/q931.c @@ -9170,7 +9170,7 @@ static int post_handle_q931_message(struct pri *ctrl, struct q931_mh *mh, struct q931_release_complete(ctrl, c, newcall_rel_comp_cause(c)); break; } - if (c->ourcallstate != Q931_CALL_STATE_OVERLAP_RECEIVING) { + if (strlen(c->keypad_digits)) { ctrl->ev.e = PRI_EVENT_KEYPAD_DIGIT; ctrl->ev.digit.subcmds = &ctrl->subcmds; ctrl->ev.digit.call = c->master_call;