[asterisk-users] inquire if SIP connections are active or not
Darrin Henshaw
darrin.asterisk at gmail.com
Fri Oct 16 10:00:02 CDT 2009
You could validate whether it has a physical connection I believe. Add
qualify=yes in the sip definition and use something like:
/usr/sbin/asterisk -rx "sip show peer XXXX" | grep "UNREACHABLE" | wc -l
Where XXXX is the name of the sip definition on your system. If the
return is 0 then all is well, if the return is 1 then you have a
connection issue. Not sure how to do any other type of validation, but
no doubt it's possible.
On Fri, Oct 16, 2009 at 11:40 AM, Jerry Geis <geisj at pagestation.com> wrote:
> Is there a way to ask asterisk from a shell script if its connection (SIP)
> is valid to another system. Lets say for example to cisco call manager?
>
> Thanks,
>
> Jerry
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list