[asterisk-users] AVAILSTATUS always 0
Jonas Kellens
jonas.kellens at telenet.be
Fri Oct 5 08:23:47 CDT 2012
On 05-10-12 15:19, Danny Nicholas wrote:
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua Colp
> Sent: Friday, October 05, 2012 7:57 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] AVAILSTATUS always 0
>
> Jonas Kellens wrote:
>> Hello,
>>
>> I do not want to know if the remote side may or may not decline the
>> call, I just want to know if the SIP peer is registered or not. That
>> is information that Asterisk has without placing a call. Placing a
>> call to an unregistered peer would fail.
> Indeed,
>
> I just wanted to point that out about ChanIsAvail for other individuals who
> may consider it magic.
>
> --
>
> One of you guru's out there should tweak ChanIsAvail to add an
> ${ISREGISTERED} variable. Until then, an AGI using the shell thread from
> here about 6-7 months ago would fill Jonas need.
>
> In a nutshell
> asterisk -rx "sip show peer 1104"|grep Status
> Status : OK (42 ms)
Using this will make Asterisk hang. Done that in the past and result was
that Asterisk hung after a certain amount of asterisk -rx "command". So
my experience is that this is not the correct solution.
If only ChanIsAvail could return the correct value...
Jonas.
More information about the asterisk-users
mailing list