[asterisk-users] AVAILSTATUS always 0

Jonas Kellens jonas.kellens at telenet.be
Fri Oct 5 07:50:54 CDT 2012


On 05-10-12 14:45, Joshua Colp wrote:
> Jonas Kellens wrote:
>> Hello,
>>
>> I notice that the function ChanIsAvail always returns result : 0
>>
>> It does not matter if the realtime SIP peer is registered or not.
>>
>> How come ??
>>
>> My dialplan :
>>
>> exten => s,n,ChanIsAvail(SIP/${SIPPEERNAME})
>> exten => s,n,NoOp(availstatus = ${AVAILSTATUS})
>>
>> ${SIPPEERNAME} = sip username from realtime Mysql database.
>
> Additionally,
>
> Even without the 's' option if ${AVAILCHAN} contains a value it can be 
> dialed, within the eyes of Asterisk. The remote side may choose to 
> decline the call but that can only be determined by actually placing a 
> call.

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.


Jonas.





More information about the asterisk-users mailing list