Hi Guys,
Is it possible to generate cdrs or to save dialogs to db when kamailio receives a kill signal from terminal?
Thanks in advance.
Diego
On Tue, Mar 07, 2017 at 10:34:05AM -0300, Diego Nadares wrote:
Is it possible to generate cdrs or to save dialogs to db when kamailio receives a kill signal from terminal?
Killing kamailio doesn't end running calls. So if you restart kamailio before a BYE, accounting will be correct on teardown of the calls.
The dialog module can store state in a database, but if your are specifically looking for something that only happens when kamailio is killed without a database backend, you'd have to do some dumping of state before the kill is processed and I don't know if that is possible.
Hi Daniel! Thanks for your answer.
Sorry, i didn't provide enough data for what I need. I'm using kamailio as a statefull proxy and I all ready have dialog module working too but with no database.
Today I started testing dialog with db_mode = 3 (shutdown). The thing is that when I kill kamailio from terminal, the dialog module does not save any data. It only works when I execute kamctl stop.
Cheers,
Diego.
2017-03-07 10:49 GMT-03:00 Daniel Tryba d.tryba@pocos.nl:
On Tue, Mar 07, 2017 at 10:34:05AM -0300, Diego Nadares wrote:
Is it possible to generate cdrs or to save dialogs to db when kamailio receives a kill signal from terminal?
Killing kamailio doesn't end running calls. So if you restart kamailio before a BYE, accounting will be correct on teardown of the calls.
The dialog module can store state in a database, but if your are specifically looking for something that only happens when kamailio is killed without a database backend, you'd have to do some dumping of state before the kill is processed and I don't know if that is possible.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If You are using the acc module, then You could close the open calls in the database, when kamailio has been killed. You should then use the database of couse.
Med venlig hilsen / Best regards Kjeld Flarup (Christensen) M.Sc E.E, Teknisk chef Viptel ApS, Hammershusvej 16C, DK-7400 Herning Telefon: +45 46949949, Telefax: +45 46949950, http://viptel.dk
On 2017-03-07 15:06, Diego Nadares wrote:
Hi Daniel! Thanks for your answer.
Sorry, i didn't provide enough data for what I need. I'm using kamailio as a statefull proxy and I all ready have dialog module working too but with no database.
Today I started testing dialog with db_mode = 3 (shutdown). The thing is that when I kill kamailio from terminal, the dialog module does not save any data. It only works when I execute kamctl stop.
Cheers,
Diego.
2017-03-07 10:49 GMT-03:00 Daniel Tryba <d.tryba@pocos.nl mailto:d.tryba@pocos.nl>:
On Tue, Mar 07, 2017 at 10:34:05AM -0300, Diego Nadares wrote: > Is it possible to generate cdrs or to save dialogs to db when kamailio > receives a kill signal from terminal? Killing kamailio doesn't end running calls. So if you restart kamailio before a BYE, accounting will be correct on teardown of the calls. The dialog module can store state in a database, but if your are specifically looking for something that only happens when kamailio is killed without a database backend, you'd have to do some dumping of state before the kill is processed and I don't know if that is possible. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tue, Mar 07, 2017 at 11:06:20AM -0300, Diego Nadares wrote:
Today I started testing dialog with db_mode = 3 (shutdown). The thing is that when I kill kamailio from terminal, the dialog module does not save any data. It only works when I execute kamctl stop.
You could ofcourse look at dbmode 1 (2 is kind of nonsenseical for your purpose (either you miss calls started in the update interval and shutdown or the interval is so short that you have small bursts)).
Or write start and end of dialogs to a log via the event_routes.
Thanks guys. I'm using db_mode = 1 now. It works great with mysql with myisam tables.
Cheers.
Diego
2017-03-08 6:30 GMT-03:00 Daniel Tryba d.tryba@pocos.nl:
On Tue, Mar 07, 2017 at 11:06:20AM -0300, Diego Nadares wrote:
Today I started testing dialog with db_mode = 3 (shutdown). The thing is that when I kill kamailio from terminal, the dialog module does not save any data. It only works when I execute kamctl stop.
You could ofcourse look at dbmode 1 (2 is kind of nonsenseical for your purpose (either you miss calls started in the update interval and shutdown or the interval is so short that you have small bursts)).
Or write start and end of dialogs to a log via the event_routes.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users