<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 3, 2013 at 2:37 PM, Administrator TOOTAI <span dir="ltr"><<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Satish<br>
<br>
Le 03/07/2013 09:15, Satish Barot a écrit :<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On Tue, Jul 2, 2013 at 10:57 PM, Administrator TOOTAI <<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a> <mailto:<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a>>> wrote:<br>
<br>
Hi all,<br>
<br>
I have to questions about queues. Member is a phone like<br>
SIP/myphone and only one member in the queue.<br>
<br>
At first, DIALSTATUS doesn't return any status. How to now if a<br>
call in queue has been answered or if caller just hangup?<br>
<br>
Queue application uses QUEUESTATUS and not DIALSTATUS<br>
</blockquote>
<br></div>
QUEUESTATUS returns the status of the queue not the one from the dial command used in the queue. And there is no such information I'm looking for in QUEUESTATUS.<br>
<br>
Other clue?<br></blockquote><div>Then you should add Local channel as a queue member and dial your SIP member from Local channel context. A little hint here. Suppose you have a support queue configured in queues.conf<br>
</div><div><br></div><div>;queues.conf<br></div><div>[support]<br>... ...<br>member => Local/1000@memberconnector,0,John Smith,SIP/1000<br>... ...<br></div><div>Now In your dialplan add a context for local channel,<br>
[memberconnector]<br>exten => _X.,1,Noop(Connecting to Member at ${EXTEN})<br>same => n,Dial(SIP/${EXTEN})<br></div><div>;Check the Dialstatus for Member<br>same => n,Noop(DIALSTATUS=${DIALSTATUS})</div><div> <br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Second, how to deal with timeout, I have strange behaviors. If I<br>
put timeout=60 in queue.conf and I call the queue passing also 60<br>
as timeout value, asterisk is returning after 5000ms the 4000 then<br>
2000 then 2000 aso. I can replace the 60sec value on both place,<br>
or 60 in queue conf and 10 when calling queue, I never have a<br>
stable behavior and more, not what I want.<br>
<br>
Exemple: let say asterisk should try all 20 seconds to call the<br>
member for 8 seconds: how to configure this? What I found, is to<br>
put timeout=0 in queue conf and passing 20 to queue, so caller<br>
stays in queue 20 seconds before timeout. But asterisk rings 20<br>
seconds :-(<br>
<br>
A snippet from queues.conf...<br>
"A Queue has two different "timeout" values associated with it. One is the timeout parameter configured in queues.conf. This timeout specifies the amount of time to try ringing a member's phone before considering the member to be unavailable. The other timeout value is the timeout argument to the Queue() application. This timeout represents the absolute amount of time to allow a caller to stay in the queue before the caller is removed from the queue. "<br>
<br>
Correct me if I am wrong but if you want your caller to be in Queue for 20 seconds and try calling member for 8 seconds you should have 20 as a timeout argument in Queue application in your dialplan and in timeout in queues.conf should be 8. Also check the 'retry' and 'timeoutpriority' parameters for queues.conf<br>
</blockquote>
<br></div>
OK, I got it: parameter n was send to queue. Now everything is working like it should.<br>
<br>
Thanks for your help.<div class=""><div class="h5"><br>
<br>
-- <br>
Daniel<br>
<br></div></div></blockquote><div> </div></div>--Satish Barot<br></div><div class="gmail_extra">Ahmedabad, India<br></div></div>