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.

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to