From ac9e0860b5bec1043aafdde890882982a34117fb Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 26 Feb 2008 10:31:28 +0000 Subject: Fixed bug in ticket #455 in round-robin call ID allocation (thanks Truong Thanh Quang) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1821 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjsip') diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index 6cf63f00..ca787456 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -224,7 +224,7 @@ static pjsua_call_id alloc_call_id(void) if (pjsua_var.next_call_id >= (int)pjsua_var.ua_cfg.max_calls || pjsua_var.next_call_id < 0) { - cid = 0; + pjsua_var.next_call_id = 0; } for (cid=pjsua_var.next_call_id; -- cgit v1.2.3