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
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
static short get_invokeid(struct pri *ctrl)
|
||||
{
|
||||
ctrl = PRI_MASTER(ctrl);
|
||||
return ++ctrl->last_invoke;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user