mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-31 09:33:48 +00:00
Change. Support register with AuthID==UserID==Extension for extension with number-alias. 1. We need only one record in memcache. When we get SIP request we can find record by userid. When we want check AuthID we do `user_data userid@domain attr id` which also search record by userid. 2. We do not need check AuthID if we get record from DB. There already has check. So we can reduce number of request to * if there no record in memcached - one memcache get (returns not found) - database auth - one memcache set * if record in memcache - one memcache get to retrieve XML - one memcache get to check Extension==AuthID