From d305dbc6096b384a53347269445b1b662af50225 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 13 Nov 2009 22:59:35 +0000 Subject: [PATCH] There must be only one source for the invoke id values per D channel group. If there are potentially multiple sources for the invoke id sequence then we could get confused if there are multiple outstanding messages with the same invoke id that get responses. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1310 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pri_facility.c | 1 + pri_internal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pri_facility.c b/pri_facility.c index 291b620..284136b 100644 --- a/pri_facility.c +++ b/pri_facility.c @@ -42,6 +42,7 @@ static short get_invokeid(struct pri *ctrl) { + ctrl = PRI_MASTER(ctrl); return ++ctrl->last_invoke; } diff --git a/pri_internal.h b/pri_internal.h index 861cbdc..fbde7e1 100644 --- a/pri_internal.h +++ b/pri_internal.h @@ -138,7 +138,7 @@ struct pri { unsigned int q931_rxcount; #endif - short last_invoke; /* Last ROSE invoke ID */ + short last_invoke; /* Last ROSE invoke ID (Valid in master record only) */ unsigned char sendfacility; };