db: find the best way to allocate unused random extension and avoid infinite loop
db_subscriber_alloc_exten() runs an infinite loop that will never exit
if an unused extension cannot be allocated between GSM_MAX_EXTEN and GSM_MIN_EXTEN
A routine is required that efficiently finds a free extension.
Some suggestions as to how it might be done and comments were posted here: