<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 3, 2013 at 7:40 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">Le 03/07/2013 15:07, Satish Barot a écrit :<br>
<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>
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>
<br>
;queues.conf<br>
[support]<br>
... ...<br>
member => Local/1000@memberconnector,0,<u></u>John Smith,SIP/1000<br>
... ...<br>
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>
;Check the Dialstatus for Member<br>
same => n,Noop(DIALSTATUS=${<u></u>DIALSTATUS})<br>
</div></blockquote>
<br>
Already tested, I tried again as the option passed to queue was changed (n option)<br>
<br>
Logs:<br>
<br>
-- Started music on hold, class 'default', on SIP/gw-0000005e<br>
-- Executing [909@memberconnector:1] Dial("Local/909@<u></u>memberconnector-00000002;2", "SIP/s-ntfe_909,60,") in new stack<br>
== Using SIP RTP CoS mark 5<br>
-- Called SIP/s-ntfe_909<br>
-- SIP/s-ntfe_909-00000060 is ringing<br>
-- Local/909@memberconnector-<u></u>00000002;1 is ringing<br>
-- SIP/s-ntfe_909-00000060 is ringing<br>
-- Stopped music on hold on SIP/gw-0000005e<br>
== Spawn extension (macro-toQueue, s, 11) exited non-zero on 'SIP/gw-0000005e' in macro 'toQueue'<br>
== Spawn extension (incoming-Swiss-itech, 10000, 204) exited non-zero on 'SIP/gw-0000005e'<br>
-- Executing [h@incoming-Swiss-itech:1] NoOp("SIP/gw-0000005e", "Call ended with QUEUESTATUS= and DIALSTATUS= and HANGUPCAUSE=0") in new stack<br>
<br>
>From extension:<br>
<br>
[memberconnector]<br>
;<br>
exten => _XXX,1,Dial(SIP/${peerPrefix}$<u></u>{EXTEN},${TIMERINGQUEUE},)<br>
same => n,NoOp(DIALSTATUS=${<u></u>DIALSTATUS})<br>
<br>
As you can see, all status are empty,<div class=""><div><br>
<br>
-- <br>
Daniel<br> </div></div></blockquote></div><br>QUEUESTATUS will contain different values in different scenarios. i.e. If a call gets answered then the value is CONTINUE, If a call doesn't get answered and Queue timeout happens then TIMEOUT. If a caller hangs up when call is in Queue then QUEUESTATUS will be blank.<br>
<br></div><div class="gmail_extra">Have something like this,<br>... ...<br>same => n,queue(support,c,,,20)<br>same => n,Noop(QSTATUS=${QUEUESTATUS})<br>... ...<br>exten => h,1,Noop(QSTATUS=${QUEUESTATUS})<br><br>
[memberconnector]<br>
exten => _X.,1,Noop(Connecting to Member at ${EXTEN})<br>
same => n,Dial(SIP/${EXTEN})<br>
;Check the Dialstatus for Member<br>
same => n,Noop(DIALSTATUS=${DIALSTATUS})<br><div class="im"><br></div>exten => h,1,Noop(DIALSTATUS=${DIALSTATUS})<br><br></div><div class="gmail_extra">--Satish Barot<br></div><div class="gmail_extra">Ahmedabad, India<br>
</div></div>