From 725b07229ad1b7e4d9dae2389cbb6299501119d5 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Fri, 2 Jun 2006 16:05:55 +0000 Subject: [PATCH] Minor state fix. (#7269) git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.2@347 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/q931.c b/q931.c index 912ed47..a4a6210 100644 --- a/q931.c +++ b/q931.c @@ -2642,7 +2642,10 @@ int q931_connect(struct pri *pri, q931_call *c, int channel, int nonisdn) c->progressmask = PRI_PROG_CALLED_NOT_ISDN; } else c->progressmask = 0; - c->ourcallstate = Q931_CALL_STATE_CONNECT_REQUEST; + if (pri->localtype == PRI_CPE) + c->ourcallstate = Q931_CALL_STATE_CONNECT_REQUEST; + else + c->ourcallstate = Q931_CALL_STATE_ACTIVE; c->peercallstate = Q931_CALL_STATE_ACTIVE; c->alive = 1; /* Setup timer */