On 11/22/11 10:45 AM, Alex Balashov wrote:
I interpreted the question to be whether there is an event route/callback on graceful shutdown of Kamailio, such as with the receipt of SIGTERM or SIGINT.
Since it was about planned down time, I guess there is an admin that can trigger (or schedule) the notification, so it can be done by an external application.
I assume there is not, but it could be a nice feature. The OP's request could then be satisfied with uac_req_send().
It will be needed sort of pre-shutdown hook to be safe always. Each module can have a destroy() function that is executed at shut down, but since here is about usage of usrloc and tm, it has to be sure both are not yet destroyed, otherwise won't work.
If you like to do it from config, I should be ok by having the logic inside XMLRPC/xhttp route block, so the notification can be triggered via http, then use sqlops and uac to send all the notifications.
Cheers, Daniel
-- This message was painstakingly thumbed out on my mobile, so apologies for brevity, errors, and general sloppiness.
Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/
On Nov 22, 2011, at 4:27 AM, Daniel-Constantin Mierlamiconda@gmail.com wrote:
Hello,
On 11/20/11 8:41 PM, Krishna Kurapati wrote:
Hi,
During planned down time of Kamailio, I would like to send a Notice to all the users currently registered on the system. It would be nice if it appears in their Chat windows. I am thinking if I could loop through user_location table and send MESSAGE to individual user.
What's the best way to accomplish this task?
one way is to fetch the users from subscriber or location tables, then use sipsak to send a message (-M):
http://sipsak.org/man-page.html
Cheers, Daniel
-- Daniel-Constantin Mierla -- http://www.asipto.com Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat http://linkedin.com/in/miconda -- http://twitter.com/miconda
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
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