mirror of https://github.com/sipwise/sems.git
We need to add a possibility to control (add/modify/delete) registrations for SIP peerings using NGCP-panel. For that to work NGCP-panel uses XMLRPC requests being sent towards SEMS, which in its turn takes care of work with: - locally cached map structures: * registrations / registrations_peers * registration_ltags / registration_ltags_peers * registration_timers / registration_timers_peers - MySQL database (our scope of interest is 'sems_registrations') - triggering events Main amount of work is concentrated on interaction with map structures which keep an actual information on registrations of either subscribers and peerings, and less amount of work is related to the SQL side. Basically, the main idea is to add an identifier, which will be used by NGCP-panel when sending XMLRPC messages to SEMS, which will let SEMS know, whether it's an event for a usual subscriber or a SIP peering. Also we take care of loading time, when SEMS retrieves all previously saved data from the DB using: peer / subscriber auth preferences and loads this to be usable. A new query has been added for peering type, to let peerings be loadable after restart. Change-Id: Id471a95ea3f7f57513e1f728ea48fb4b0543bde9mr10.1.1
parent
088bccb6f1
commit
afa9520094