I use qualify in sip.conf and need to setup a trigger when asterisk sees it as unreachable, so that I can either drop a call file, or send an email, or both. How can I do that? Thank you
cf, I haven' t used the * manager... but from research, that is how I would expect to do it... I would have a cron job fire off every 5 minutes (or so, probably configurable) and connect to * via the manager, request the status, then send an email based on the result... would be pretty easy... could look into it if you would like... email me off list... daveC C F wrote:> I use qualify in sip.conf and need to setup a trigger when asterisk > sees it as unreachable, so that I can either drop a call file, or send > an email, or both. How can I do that? > > Thank you > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-- Building Strong Relationships w/ Intelligent Customer Service -- Interlocking Business Solutions, LLC 856-380-0894 x5000
Thank you all for your response, but it appears that some of you didn't understand my question. I know I can schedule a cron to check the status (I can even use asterisk -rx "sip show peers" | grep UNREACHABLE if I use a cron) but that is not what I want. I want either a way that just as asterisk prints to the CLI the following: Peer '120' is now UNREACHABLE! Last qualify: 118 it should also be able to trigger whatever action from a conf file or the like. Or if there is an available solution even that involves a cron job but already has all the options, so I don't have to reinvent the wheel. On 4/18/07, C F <shmaltz@gmail.com> wrote:> I use qualify in sip.conf and need to setup a trigger when asterisk > sees it as unreachable, so that I can either drop a call file, or send > an email, or both. How can I do that? > > Thank you >