[asterisk-users] Re: Trigger for unavailable SIP peer

C F shmaltz at gmail.com
Thu Apr 19 06:35:13 MST 2007


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 at 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
>


More information about the asterisk-users mailing list