[Asterisk-Dev] meetme dynamic conf creation problem

Jared Mauch jared at puck.nether.net
Thu Mar 31 16:05:21 MST 2005


	(running CVS HEAD "today" 2005/03/31)

	So today I had an interesting case happen:

	Two users (one of them being me, the * admin) joined a conf
at the same time.  I was user #1 and the other user was #2:

"<1005>","SIP/1005-1e72","","MeetMe","4059|cdpMs","2005-03-31 20:56:21"
"<1058>","SIP/1058-11b4","","MeetMe","4059|cdpMs","2005-03-31 20:56:21"

	When I joined the conf, I received the message
"you are the only person in this conference" then "there is
one other user in the confernece".

	The resulting impact is that (based on the code path i see
in app_meetme.c) I was placed in a essentially 'null' conference due to
the timing.  It would appear (to me) that the ast_mutex_lock(&conflock)
(line 812) needs to be moved up in the code to cover this case.  Other
users continued to join the conf and I was unable to tx to them
or hear them.  (using ztdummy, not sure if that matters).

	it may be possible to just ast_mutex_lock/unlock around
the conf->users/marked users writes/updates.

	recommendations?

	- jared

-- 
Jared Mauch  | pgp key available via finger from jared at puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.



More information about the asterisk-dev mailing list