<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 4, 2013 at 5:36 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 04/07/2013 07:29, 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">
[...]<br>
<br><div class="im">
Already tested, I tried again as the option passed to queue was<br>
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@<br>
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></div>
-- Local/909@memberconnector- 00000002;1 is ringing<div><div class="h5"><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<br>
'SIP/gw-0000005e' in macro 'toQueue'<br>
== Spawn extension (incoming-Swiss-itech, 10000, 204) exited<br>
non-zero on 'SIP/gw-0000005e'<br>
-- Executing [h@incoming-Swiss-itech:1]<br>
NoOp("SIP/gw-0000005e", "Call ended with QUEUESTATUS= and<br>
DIALSTATUS= and HANGUPCAUSE=0") in new stack<br>
<br>
>From extension:<br>
<br>
[memberconnector]<br>
;<br>
exten => _XXX,1,Dial(SIP/${peerPrefix}$ {EXTEN},${TIMERINGQUEUE},)<br>
same => n,NoOp(DIALSTATUS=${ DIALSTATUS})<br>
<br>
As you can see, all status are empty,<br>
<br>
<br>
-- Daniel<br>
<br>
<br>
<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>
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=${<u></u>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=${<u></u>DIALSTATUS})<br>
<br>
exten => h,1,Noop(DIALSTATUS=${<u></u>DIALSTATUS})<br>
<br>
</div></div></blockquote>
<br>
Hi Satish,<br>
<br>
the c option has a result of DIALSTATUS shown on h extension in [memberconnector] and _only_ here. I then have to put the result in a global variable as DIALSTATUS is resetted.<br>
<br>
Many thanks for your help<br>
<br>
Regards<br><div class=""><div class="h5">
-- <br>
Daniel<br>
<br>
</div></div></blockquote></div><br></div><div class="gmail_extra">That is because DIALSTATUS is set on a local channel and not on a caller channel. Use SHARED Function to get the value back in caller channel.<br><br>same => n,Set(__ORIGCHANNEL=${CHANNEL})<br>
same => n,queue(support,c,,,20)<br>same => n,Noop(QSTATUS=${QUEUESTATUS})<br>... ...<br>exten => h,1,Noop(QSTATUS=${QUEUESTATUS},DIALSTATUS=${SHARED(DIALSTATUS,${ORIGCHANNEL})})<div class="gmail_extra"><div class="im">
<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>same => n,Set(SHARED(DIALSTATUS,${ORIGCHANNEL})=${DIALSTATUS})<br><div><br></div></div>exten => h,1,Noop(DIALSTATUS=${DIALSTATUS})<br>same => n,Set(SHARED(DIALSTATUS,${ORIGCHANNEL})=${DIALSTATUS})<br>
</div><br><br></div><div class="gmail_extra">--Satish Barot<br></div><div class="gmail_extra">Ahmedabad, India<br></div></div>