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

Yuan LIU yliu11 at hotmail.com
Thu Apr 19 16:43:03 MST 2007


>From: "C F" <shmaltz at gmail.com>
>Date: Thu, 19 Apr 2007 09:35:13 -0400
>
>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.

I think you can start a dial plan loop from a call file upon asterisk start 
just for this purpose.  Then you should be able to use dial plan logic to 
take action.  Still not out-of-box, but adds a little more flexibility than 
cron (in the sense of less programming, not in ultimate control).

Yuan Liu

>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