Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Jonas Kellens
If the function ChanIsAvail does not work to check if a SIP peer is registered or not, what function should I use then ?? Jonas. On 04-10-12 17:05, Jonas Kellens wrote: On 04-10-12 16:59, Danny Nicholas wrote: *From:*asterisk-users-boun...@lists.digium.com

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Joshua Colp
Jonas Kellens wrote: Hello, Hola, 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}) If

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Joshua Colp
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}

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Jonas Kellens
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 =

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Joshua Colp
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

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Danny Nicholas
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Jonas Kellens
: 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

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Joshua Colp
Jonas Kellens wrote: 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... You may have

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Jonas Kellens
On 05-10-12 15:27, Joshua Colp wrote: Jonas Kellens wrote: 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

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-05 Thread Joshua Colp
Jonas Kellens wrote: On 05-10-12 15:27, Joshua Colp wrote: Jonas Kellens wrote: 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

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-04 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jonas Kellens Sent: Thursday, October 04, 2012 9:48 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] AVAILSTATUS always 0 Hello, I notice that

Re: [asterisk-users] AVAILSTATUS always 0

2012-10-04 Thread Jonas Kellens
On 04-10-12 16:59, Danny Nicholas wrote: *From:*asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Jonas Kellens *Sent:* Thursday, October 04, 2012 9:48 AM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:*