<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm using 1.2.6 with the dialplan I posted so I guess the UA you are using is just plain hosing you.<div><br class="webkit-block-placeholder"></div><div>Anyway, with the queue I believe the music on hold is played to the inbound side until the call is picked up by an agent. &nbsp;The queue tries every &lt;retry&gt; seconds to get an agent for &lt;timeout&gt; seconds. &nbsp;If that fails for however long you set the limit to then the dialplan continues. &nbsp;I use this to set the priority of the call a little higher and loop it back into the queue but it could be used for a problem such as yours just as easily. &nbsp;I don't use the agent login and all that so I may be talking about something that doesn't apply to your configuration. &nbsp;If so, sorry for wasting your time.</div><div><br class="webkit-block-placeholder"></div><div><div>exten =&gt; +1XXXXXXXXX,1,NoOp(Inbound call from ${CALLERIDNUM})</div><div>exten =&gt; +1XXXXXXXXX,n,Answer()</div><div>exten =&gt; +1XXXXXXXXX,n,Set(GROUP()=cloud)</div><div>exten =&gt; +1XXXXXXXXX,n,Set(QUEUE_PRIO=0)</div><div>exten =&gt; +1XXXXXXXXX,n(waiting),Queue(mainline,,,,600)</div><div>exten =&gt; +1XXXXXXXXX,n,Set(QUEUE_PRIO=$[${QUEUE_PRIO} + 5])</div><div>exten =&gt; +1XXXXXXXXX,n,GoTo(waiting)</div><div>exten =&gt; +1XXXXXXXXX,n,HangUp</div><div><br class="webkit-block-placeholder"></div><div><div>On Dec 2, 2007, at 7:02 PM, Vieri wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <!-- Converted from text/plain format --><p><font size="2">I'd like to add that "show hints" on * CLI displays<br> the following for ext 4053 tested below:<br> <br> &nbsp;&nbsp; 4053&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : SIP/4053&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> State:Idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Watchers&nbsp; 0<br> <br> (it should be "unavailable" or something, but anyway,<br> ChanIsAvail reports an AVAILSTATUS of 0, ie. unknown)<br> <br> --- Vieri &lt;<a href="mailto:rentorbuy@yahoo.com">rentorbuy@yahoo.com</a>&gt; wrote:<br> <br> &gt; Thanks Richard but I think that ChanIsAvail must be<br> &gt; buggy (based on some user comments in the wiki,<br> &gt; although quite outdated).<br> &gt;<br> &gt; I have the hint entry as you say (am using FreePBX<br> &gt; and<br> &gt; it's already there).<br> &gt;<br> &gt; But whenever I call ChanIsAvail with the s option I<br> &gt; always get:<br> &gt; ${AVAILSTATUS} = 0 AST_DEVICE_UNKNOWN - "Unknown";<br> &gt; channel is valid, but unknown state.<br> &gt;<br> &gt; I might be doing something wrong but here is the<br> &gt; code:<br> &gt;<br> &gt; [IVR-menu1]<br> &gt; exten =&gt; s,1,Answer()<br> &gt; (...)<br> &gt; exten =&gt; s,n,Playback(welcome)<br> &gt; exten =&gt; s,n,ChanIsAvail(SIP/4053|s)<br> &gt; exten =&gt; s,n,NoOp(DEBUG: availstatus is<br> &gt; ${AVAILSTATUS})<br> &gt;<br> &gt; In extensions.conf I also have:<br> &gt; exten =&gt; 4053,hint,SIP/4053<br> &gt;<br> &gt; I'm using Astrisk 1.2. Is ChanIsAvail working well<br> &gt; in<br> &gt; 1.2?<br> &gt;<br> &gt; As far as setting a time limit on a call in the<br> &gt; queue<br> &gt; is concerned, it doesn't sound "nice" for the caller<br> &gt; to be dropped after a few rings when it could have<br> &gt; been dropped right fom the beginning. It could be a<br> &gt; solution but it doesn't sound "right" ;-).<br> &gt;<br> &gt; Vieri<br> &gt;<br> &gt; --- Richard Revels &lt;<a href="mailto:rrevels@bandwidth.com">rrevels@bandwidth.com</a>&gt; wrote:<br> &gt;<br> &gt; &gt; In the sip.conf entry assign a context.<br> &gt; &gt;<br> &gt; &gt; In that context, hint the extension i.e. exten =&gt;<br> &gt; &gt; 7302,hint,SIP/7302.<br> &gt; &gt;<br> &gt; &gt; Before you get ready to dial, or whatever, do<br> &gt; &gt; chanisavail&nbsp; i.e.<br> &gt; &gt;<br> &gt; &gt; exten =&gt;<br> &gt; &gt; _1XXXX,n(CheckUse),ChanIsAvail(SIP/${EXTEN:1},js)<br> &gt; &gt; exten =&gt; _1XXXX,n,Playback(beep)<br> &gt; &gt; exten =&gt; _1XXXX,n,Dial(SIP/${EXTEN},2)<br> &gt; &gt; exten =&gt;<br> &gt; &gt; _1XXXX,n,Goto(result-${DIALSTATUS},${EXTEN},1)<br> &gt; &gt; exten =&gt; _1XXXX,CheckUse+101,SayDigits(${EXTEN:1})<br> &gt; &gt; exten =&gt;<br> &gt; _1XXXX,CheckUse+102,Playback(vm-isonphone)<br> &gt; &gt; exten =&gt; _1XXXX,CheckUse+103,Hangup()<br> &gt; &gt;<br> &gt; &gt; This is from the paging stuff.&nbsp; It checks the<br> &gt; &gt; primary extension before&nbsp;<br> &gt; &gt; ringing the auto answer extension of the phone.&nbsp; I<br> &gt; &gt; seem to remember it&nbsp;<br> &gt; &gt; detecting DND as well for the Cisco 7960.<br> &gt; &gt;<br> &gt; &gt; I don't see it in this message but I seem to<br> &gt; &gt; remember seeing somewhere&nbsp;<br> &gt; &gt; in this thread that the goal is to keep people<br> &gt; from<br> &gt; &gt; being in a queue&nbsp;<br> &gt; &gt; forever.&nbsp; Why not just set a time limit on the<br> &gt; queue<br> &gt; &gt; and play back&nbsp;<br> &gt; &gt; "all operators busy" and hang up if a call hits<br> &gt; that<br> &gt; &gt; limit?<br> &gt; &gt;<br> &gt; &gt; Richard<br> &gt; &gt;<br> &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; On Dec 2, 2007, at 8:51 AM, Vieri wrote:<br> &gt; &gt;<br> &gt; &gt; &gt; Hi,<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; I am trying to get a SIP extension's status<br> &gt; &gt; without<br> &gt; &gt; &gt; actually making a call.<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; I am using sofia-sip's "options" example utility<br> &gt; &gt; and<br> &gt; &gt; &gt; the sip clients are SJphone softphones.<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; From Asterisk I run the "options" utility and<br> &gt; &gt; query a<br> &gt; &gt; &gt; sip extension at 10.215.147.240. I get:<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; # ./options -1 --all <a href="sip:10.215.147.240">sip:10.215.147.240</a><br> &gt; &gt; &gt; SIP/2.0 501 Not Implemented<br> &gt; &gt; &gt; Via: SIP/2.0/UDP<br> &gt; &gt; &gt;<br> &gt; &gt;<br> &gt;<br> 10.215.144.27:38098;branch=z9hG4bKUKS02S3F8H8ZS;received=10.215.144.27<br> &gt; &gt; &gt; From: &lt;<a href="sip:10.215.144.27">sip:10.215.144.27</a>&gt;;tag=U3DKgF7HgFKXH<br> &gt; &gt; &gt; To: "unknown" &lt;<a href="sip:10.215.147.240">sip:10.215.147.240</a>&gt;;tag=614733430<br> &gt; &gt; &gt; Call-ID: b6968197-1b7d-122b-0ab0-00c09f10e472<br> &gt; &gt; &gt; CSeq: 92182805 OPTIONS<br> &gt; &gt; &gt; Content-Length: 0<br> &gt; &gt; &gt; Server: SJphone/1.65.377a (SJ Labs)<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; I guess that the softphone should be answering<br> &gt; &gt; with a<br> &gt; &gt; &gt; 2xx code followed by a status description?<br> &gt; &gt; &gt; So I tried with the INVITE method and set DND on<br> &gt; &gt; the<br> &gt; &gt; &gt; SIP extension:<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; # ./options -1 --all --method INVITE<br> &gt; &gt; &gt; <a href="sip:10.215.147.240">sip:10.215.147.240</a><br> &gt; &gt; &gt; SIP/2.0 486 Busy Here<br> &gt; &gt; &gt; Via: SIP/2.0/UDP<br> &gt; &gt; &gt;<br> &gt; &gt;<br> &gt;<br> 10.215.144.27:38098;branch=z9hG4bK5Z3BS8F737t0e;received=10.215.144.27<br> &gt; &gt; &gt; From: &lt;<a href="sip:10.215.144.27">sip:10.215.144.27</a>&gt;;tag=590Z1ND8B6XpN<br> &gt; &gt; &gt; To: "unknown"<br> &gt; &lt;<a href="sip:10.215.147.240">sip:10.215.147.240</a>&gt;;tag=1a2d77b524<br> &gt; &gt; &gt; Call-ID: 668ad4fa-1b7e-122b-fcb6-00c09f10e472<br> &gt; &gt; &gt; CSeq: 92182952 INVITE<br> &gt; &gt; &gt; Content-Length: 0<br> &gt; &gt; &gt; Server: SJphone/1.65.377a (SJ Labs)<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; The above would suit me fine because I get a<br> &gt; "486<br> &gt; &gt; Busy<br> &gt; &gt; &gt; Here" response.<br> &gt; &gt; &gt; However, if DND is off then I get:<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; # ./options -1 --all --method INVITE<br> &gt; &gt; &gt; <a href="sip:10.215.147.240">sip:10.215.147.240</a><br> &gt; &gt; &gt; SIP/2.0 180 Ringing<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; and the SIP extension actually "rings", as<br> &gt; &gt; &gt; expected.(but this is undesireable)<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Now, does someone know another way to get the<br> &gt; &gt; status<br> &gt; &gt; &gt; (ie. does it accept calls or not?) without<br> &gt; making<br> &gt; &gt; the<br> &gt; &gt; &gt; extension "ring"?<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Thanks<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Vieri<br> <br> <br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ____________________________________________________________________________________<br> Never miss a thing.&nbsp; Make Yahoo your home page.<br> <a href="http://www.yahoo.com/r/hs">http://www.yahoo.com/r/hs</a><br> <br> _______________________________________________<br> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br> </font> </p> </div> </blockquote></div><br></div></body></html>