[Asterisk-Users] Email notification

Rajeev Natarajan twogigbox at gmail.com
Tue Jun 27 11:55:15 MST 2006


Sure...
I would  do the following
1. Set qualify =yes
Bash Script (in a cron) that does
a. asterisk -rx "sip show peers" > foo
b. grep UNREACHABLE foo | wc -l  mime-construct if output of the grep > 1

hope this helps
rajeev

On 6/26/06, Roger Workman <roger at upperclassman.net> wrote:
>
> Is there a way to get asterisk to send you a email when it looses or an
> extension doesn't re-register
>
> Roger Workman
> Business Development
> Upperclassman/Universal Holdings LLC
> Voice: 304.324.3800
> Fax:   304.324.3801
> ICQ: 4447584
> Website: http://www.upperclassman.net
> Billing Questions: billing at upperclassman.net
> Rental Questions: rentals at upperclassman.net
> Maintenance: help at upperclassman.net
>
>
>
> This e-mail and any of its attachments may contain sensitive information,
> which is privileged, confidential, or subject to copyright belonging to RW
> Management Inc, Universal Holdings LLC or Upperclassman LLC. This e-mail is
> intended solely for the use of the individual or entity to which it is
> addressed. If you are not the intended recipient of this e-mail, you are
> hereby notified that any dissemination, distribution, copying, or action
> taken in relation to the contents of and attachments to this e-mail is
> strictly prohibited and may be unlawful. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete the
> original and any copy of or printout of this e-mail.
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:
> asterisk-users-bounces at lists.digium.com] On Behalf Of Eric "ManxPower"
> Wieling
> Sent: Monday, June 26, 2006 1:10 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] '500 Internal Server' Error on SIP NOTIFY
>
> Yes.  It does not seem to cause any problems.
>
> Douglas Garstang wrote:
> > Is anyone getting '500 Internal Server' errors back from their Polycom
> phones when Asterisk sends a SIP NOTIFY message to them?
> > I called Polycom tech support, who where utterly useless.
> > Of course Polycom won't officially support it anyway, as they only
> support Asterisk Business Edition. We're using 1.2.9, but it's been
> ocurring for quite some time. We have about 35 phones and it's happening on
> most (also on the few running SIP software 1.6.6).
> >
> > SIP Software version: 1.6.3.0067
> > BootROM version: 2.6.2.0032
> >
> > Reliably Transmitting (no NAT) to xxx.187.128.95:5060:
> > NOTIFY sip:2944030 at ua1.ipt.oneeighty.com SIP/2.0
> > Via: SIP/2.0/UDP xxx.187.142.203:5060;branch=z9hG4bK4d777013;rport
> > From: <sip:2944026 at ua1.ipt.oneeighty.com>;tag=as6fd80d1b
> > To: "Front Desk" <sip:2944030 at ua1.ipt.oneeighty.com
> >;tag=3B576862-120A3007
> > Contact: <sip:2944026 at xxx.187.142.203>
> > Call-ID: 5d22385e-d097d068-93894e55 at xxx.187.128.95
> > CSeq: 114 NOTIFY
> > User-Agent: Asterisk PBX
> > Max-Forwards: 70
> > Event: presence
> > Content-Type: application/xpidf+xml
> > Subscription-State: active
> > Content-Length: 371
> >
> > <?xml version="1.0"?>
> > <!DOCTYPE presence PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN" "
> xpidf.dtd">
> > <presence>
> > <presentity uri="sip:2944030 at ua1.ipt.oneeighty.com;method=SUBSCRIBE" />
> > <atom id="2944026">
> > <address DEFANGED_uri="sip:2944026 at ua1.ipt.oneeighty.com;user=ip"
> DEFANGED_priority="0.800000">
> > <status status="open" />
> > <msnsubstatus substatus="online" />
> > </address>
> > </atom>
> > </presence>
> >
> >
> > <-- SIP read from xxx.187.128.95:5060:
> > SIP/2.0 500 Internal Server Error
> > Via: SIP/2.0/UDP xxx.187.142.203:5060;branch=z9hG4bK4d777013;rport
> > From: <sip:2944026 at ua1.ipt.oneeighty.com>;tag=as6fd80d1b
> > To: "Front Desk" <sip:2944030 at ua1.ipt.oneeighty.com
> >;tag=3B576862-120A3007
> > CSeq: 114 NOTIFY
> > Call-ID: 5d22385e-d097d068-93894e55 at xxx.187.128.95
> > Contact: <sip:2944030 at xxx.187.128.95>
> > Event: presence
> > User-Agent: PolycomSoundPointIP-SPIP_601-UA/1.6.6.0036
> > Content-Length: 0
> >
> > Doug.
> > _______________________________________________
> > --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
> >
> >
>
>
> --
> Now accepting new clients in Birmingham, Atlanta, Huntsville,
> Chattanooga, and Montgomery.
> _______________________________________________
> --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
>
>
> _______________________________________________
> --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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060627/d834016c/attachment.htm


More information about the asterisk-users mailing list