Re: [asterisk-users] how can qualify=yes trigger some external event?
[EMAIL PROTECTED] wrote: Thanks to all, I guess I'll try to use the AMI with some perl script I'll write to trigger an external event. Other option may be using siksak or sipp with some perl script. Wich option should be best or more straitforward? Thanks, Ricardo. Quoting "Watkins, Bradley" <[EMAIL PROTECTED]>: >> > >> qualify=yes generates events that can be viewed from AMI, they are: >> 'Event: PeerStatus' >> 'PeerStatus: Lagged' >> >> 'Event: PeerStatus' >> 'PeerStatus: Reachable' >> >> The other fields give the peer name and like, for more >> details view the chan_sip.c source, the calls you are >> interested in there are to a function called manager_event(). >> > And so you are right, I wasn't thinking about AMI for some reason. > > Yes, that's an entirely plausible way to have actions performed when the > event occurs. > > - Brad > > The contents of this e-mail are intended for the named addressee > only. It contains information that may be confidential. Unless you > are the named addressee or an authorized designee, you may not copy > or use it, or disclose it to anyone else. If you received it in > error please notify us immediately and then destroy it. > ___ > --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 There are at least 2 perl MCPAN AMI modules you can download, both work verywell but a little differently the two I mention are event driven so should suit your needs very well. The one I often use is POE::Component::Client::Asterisk::Manager ___ --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
RE: [asterisk-users] how can qualify=yes trigger some external event?
Thanks to all, I guess I'll try to use the AMI with some perl script I'll write to trigger an external event. Other option may be using siksak or sipp with some perl script. Wich option should be best or more straitforward? Thanks, Ricardo. Quoting "Watkins, Bradley" <[EMAIL PROTECTED]>: > qualify=yes generates events that can be viewed from AMI, they are: 'Event: PeerStatus' 'PeerStatus: Lagged' 'Event: PeerStatus' 'PeerStatus: Reachable' The other fields give the peer name and like, for more details view the chan_sip.c source, the calls you are interested in there are to a function called manager_event(). And so you are right, I wasn't thinking about AMI for some reason. Yes, that's an entirely plausible way to have actions performed when the event occurs. - Brad The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ___ --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
RE: [asterisk-users] how can qualify=yes trigger some external event?
> > > qualify=yes generates events that can be viewed from AMI, they are: > 'Event: PeerStatus' > 'PeerStatus: Lagged' > > 'Event: PeerStatus' > 'PeerStatus: Reachable' > > The other fields give the peer name and like, for more > details view the chan_sip.c source, the calls you are > interested in there are to a function called manager_event(). > And so you are right, I wasn't thinking about AMI for some reason. Yes, that's an entirely plausible way to have actions performed when the event occurs. - Brad The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ___ --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
Re: [asterisk-users] how can qualify=yes trigger some external event?
Watkins, Bradley wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Carvalho Sent: Friday, June 01, 2007 6:04 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] how can qualify=yes trigger some external event? Hi all, The option qualify=yes allows Asterisk to check if it can reach the peer. If the device does not answer within the time-out period, Asterisk considers the device off-line for future calls. Is it possible to use this feature to trigger some external event, in case of failed reply from the peer that is tried to be reached? How can that be done? Regards, Ricardo. Hi, Ricardo. Currently there is no way to do this in a pure "configuration-only" sort of way. However, if you're even moderately adept at C a cursory glance through chan_sip.c will show that it would be quite straightforward to modify the code in order to allow this. Regards, - Brad The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ___ --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 qualify=yes generates events that can be viewed from AMI, they are: 'Event: PeerStatus' 'PeerStatus: Lagged' 'Event: PeerStatus' 'PeerStatus: Reachable' The other fields give the peer name and like, for more details view the chan_sip.c source, the calls you are interested in there are to a function called manager_event(). I personally have an perl script that camps the AMI and alerts me when these events occur. ___ --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
RE: [asterisk-users] how can qualify=yes trigger some external event?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Ricardo Carvalho > Sent: Friday, June 01, 2007 6:04 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] how can qualify=yes trigger some > external event? > > Hi all, > > The option qualify=yes allows Asterisk to check if it can > reach the peer. If the device does not answer within the > time-out period, Asterisk considers the device off-line for > future calls. > Is it possible to use this feature to trigger some external > event, in case of failed reply from the peer that is tried to > be reached? How can that be done? > > Regards, > Ricardo. > Hi, Ricardo. Currently there is no way to do this in a pure "configuration-only" sort of way. However, if you're even moderately adept at C a cursory glance through chan_sip.c will show that it would be quite straightforward to modify the code in order to allow this. Regards, - Brad The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ___ --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
[asterisk-users] how can qualify=yes trigger some external event?
Hi all, The option qualify=yes allows Asterisk to check if it can reach the peer. If the device does not answer within the time-out period, Asterisk considers the device off-line for future calls. Is it possible to use this feature to trigger some external event, in case of failed reply from the peer that is tried to be reached? How can that be done? Regards, Ricardo. ___ --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