[Freeswitch-users] Help about Conference and it's member_id

Szymon Olko solko at gcdf.pl
Wed Apr 8 09:05:42 PDT 2009

to vietduc pisze:
>  Hi!
>  I wonder how to get out the member_id of a member in a conference room? Currently, i found that it is increasing 1 each time, so the first one enter the conference room, his/her member_id would be 1, and the second is 2. Sadly, when i close a conference room (all members leave) and re-open it later, the member_id will be increased since the last time instead of begining at 1 as the first time (said, it may be 3, 4 and go on). Why is that (as i think a usual way is that if there is 3 members in a conference room, their member_id should be 1,2,3 or 0,1,2) and is there anyway to get conference's member_id of a member programatically?
>  Thanks in advance!
>  Duc To

First of all members id is increased in FS instance. So you will never get the same id again, unless you reload FS (maybe
mod_conference reload also). There is a good reason for that so once you have a member it id stays the same no matter in how many
conferences it pass through. All conference commands needs that id so you would be lost if that would change all the time.

Yuu did not wrote in which language and how you need it, I'm using mod_event_socket and there listen for CUSTOME_EVENT subevent is
 conference:maintanace, actions ADDED, DELETED.
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

More information about the FreeSWITCH-users mailing list