<div dir="ltr">Hi Everyone,<div><br></div><div>My project involves keeping track of the allowable duration for the caller to talk, and keeping track of the status of the call with the back end database.  Currently i have implemented using the following modules (aside from the default modules in the sample config script).</div><div>* http_async_client.so - to communicate with the backend DB</div><div>* dialog.so - mainly use to detect the 200 ok answer in relation to invite, and the end of the call</div><div>* cnxcc.so - to release the call when the allowable talk time is reached</div><div><br></div><div>The flow is as below:-</div><div><br></div><div>Invite -- > http to backend DB to ask for talk time</div><div>          <-- DB returns value</div><div>200 ok (answer) ---> http backend DB to update that the call has answered</div><div>          <-- DB returns ok</div><div>dialog end or Cnxcc terminate --> http backend DB to update that the call has hangup</div><div><br></div><div>My problem is that if there is a need to restart the kamailio config there is no 'graceful' way to hangup all the calls and inform the backend, or deny any new calls from coming in. If kamailio is restarted then cnxcc would have forgotten that there is a maximum talk time allowed to be called or recover from the restart.</div><div><br></div><div>How to I make the system resilience to failures/restarts.</div><div><br></div><div>Appreciate any good suggestions. </div><div><br></div><div>regards</div><div>CK</div></div>