Auto assign conference room to participant

Hi there,
Is that possible that Asterisk assign a free conference room for participant when call in. For example, there is a user named 20000 and a conference room named 5551. The user should always specify 5551 to get in to the conference room. What I need do is, there are ten rooms 5550~5559, and when user 20000 make conference call, the Asterisk can auto assign one room for him. I feel CONFBRIDGE can help with my requirement, but did not find any related example.
If you know it is possible, please kindly give me some direction or hint.
Thank you very much.

Best Regards,

You should use CONFBRIDGE_INFO function with While loop to check for free conference. … RIDGE_INFO … tion_While

–Satish Barot