Because we already have a reduntant way to tell if the member is in a call, we turned on ringinuse. It seems to work.<br><br>The member is still show as (In use).<br><br><br>Would anybody help?<br><br>Thanks.<br><br><div class="gmail_quote">
2009/12/15 Tiago Geada <span dir="ltr"><<a href="mailto:tiago.geada@gmail.com">tiago.geada@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello list.<br><br>We just upgraded to 1.6.1.11.<br><br>We are using real time information stored on mysql databases. That is all running fine.<br><br>Now, since we upgraded, some member don't get calls from queues.<br>
In CLI: "queue show" shows something like:<br><div style="margin-left: 40px;">611 (Local/611@agents) with penalty 20 (realtime) (<b>In use</b>) has taken no calls yet<br></div><br><br>We use the extension 611 in different computers, in the internal network with no nat, in the external network with nat...<br>
We deleted the member 611 from mysql, and added it again, changed passwd etc...<br>We restarted asterisk several times..<br><br>The member shows always (In use) !!<br><br>Just to show that there is no channel associated with the member<br>
"core show channels" shows:<br><div style="margin-left: 40px;">Connected to Asterisk 1.6.1.11 currently running on perfpbxr (pid = 12955)<br>Channel Location State Application(Data) <br>
DAHDI/9-1 main@FnacSACLojas:2 Up Playback(audio/FnacSAC/qualida<br>DAHDI/31-1 s@ZON:7 Up BackGround(audio/ZON/prima1) <br>SIP/209-00000570 main@agents:1 Up AppQueue((Outgoing Line)) <br>
SIP/604-0000056e t@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/5-1 main@FnacSACBilhetei Up Queue(FnacSACBilheteira,t,,,18<br>SIP/206-0000056c main@agents:1 Up AppQueue((Outgoing Line)) <br>
SIP/234-0000056b 1@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/18-1 t@ZON:7 Up Queue(Timeout-ZON,t,,,60) <br>DAHDI/4-1 main@FnacSACLojas:6 Up Queue(FnacSACLojas,t,,,180) <br>
SIP/208-00000569 main@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/13-1 main@FnacSACLojas:6 Up Queue(FnacSACLojas,t,,,180) <br>DAHDI/30-1 1@ZON:38 Up Queue(ZON,t,,,60) <br>
SIP/227-00000561 t@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/24-1 t@HF:9 Up Queue(Timeout-HF,t,,,60) <br>SIP/233-00000558 t@agents:1 Up AppQueue((Outgoing Line)) <br>
SIP/216-00000553 t@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/20-1 t@ZON:7 Up Queue(Timeout-ZON,t,,,60) <br>DAHDI/8-1 t@ZON:7 Up Queue(Timeout-ZON,t,,,60) <br>
SIP/236-00000545 t@agents:1 Up AppQueue((Outgoing Line)) <br>SIP/235-00000541 t@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/12-1 t@ZON:7 Up Queue(Timeout-ZON,t,,,60) <br>
DAHDI/6-1 t@ZON:7 Up Queue(Timeout-ZON,t,,,60) <br>SIP/219-00000449 main@agents:1 Up AppQueue((Outgoing Line)) <br>DAHDI/29-1 main@FnacSACLojas:6 Up Queue(FnacSACLojas,t,,,180) <br>
24 active channels<br>13 active calls<br>3863 calls processed<br></div><br>The ael that is processed when a queue dials 611 looks like:<br><br><div style="margin-left: 40px;"> _XXX => { // internal dial to extensions from queue.<br>
<br> Set(GROUP()=${EXTEN}); // increment group count<br> Set(CDR(accountcode)=ext${ext}); // for Phoenix<br> Set(OUTBOUND_GROUP=${EXTEN}); // same for channel that will be created by Dial()<br>
NoOp(GROUP_COUNT of ${EXTEN}: ${GROUP_COUNT(${EXTEN})});<br> if ("${GROUP_COUNT(${EXTEN})}" = "1") // if not already in call<br> {<br> Set(DIALSTART=${EPOCH});<br>
&Queue_log(${UNIQUEID},${PARTNER},${EXTEN},DIAL,${CALLERID(name)});<br><br> NoOp(PCmedicInfo: Followme seria: followme/${PARTNER} - CallerID: ${CALLERID(number)} - UnID: ${UNIQUEID} - Nao ha partner?... );<br>
Set(NewCallMsg=followme/${PARTNER});<br> if (${NewCallMsg} = "")<br> {<br> Set(NewCallMsg=followme/no-recording);<br>
}<br> if (${NewCallMsg} = "followme/")<br> {<br> Set(NewCallMsg=followme/no-recording); // Geada - o IF anterior deveria verificar o PARNER?<br>
NoOp(PCmedicInfo: Corrected followme: - partner: ${PARTNER} - ${CALLERID(number)});<br> }<br> Dial(SIP/${EXTEN},7,rktgA(${NewCallMsg}));<br> if("${DIALSTART}" != "")<br>
{<br> Set(DIALEDTIME=$[${EPOCH} - ${DIALSTART}]);<br> }<br> else<br> {<br> Set(DIALEDTIME=0);<br>
}<br><br> ChanIsAvail(SIP/${EXTEN}); //<br> NoOp(DIALSTATUS EXT ${EXTEN}:); //<br> NoOp(DIALSTATUS=${DIALSTATUS}); // Necessary for Phoenix<br>
NoOp(DIALEDTIME=${DIALEDTIME}); //<br> NoOp(HANGUPCAUSE=${HANGUPCAUSE}); //<br> NoOp(AVAILSTATUS=${AVAILSTATUS}); //<br>
<br> if (${DIALSTATUS} = NOANSWER && ${DIALEDTIME} >= 7) // make sure it actually rang<br> {<br> &AutoLogout(${EXTEN},${DIALSTATUS});<br>
}<br> else if (${AVAILSTATUS} = AST_DEVICE_INVALID || ${AVAILSTATUS} = AST_DEVICE_UNAVAILABLE || ${DIALSTATUS} = CONGESTION || ${DIALSTATUS} = CHANUNAVAIL)<br> {<br>
NoOp(PCmedicInfo: partner: ${PARTNER} - DDI: ${CALLERID(number)} - TG);<br> Dial(SIP/${EXTEN},30,rktgA(followme/${PARTNER})M(IncrementCallCount)); // try again:<br>
<br> if (${AVAILSTATUS} = AST_DEVICE_INVALID || ${AVAILSTATUS} = AST_DEVICE_UNAVAILABLE || ${DIALSTATUS} = CONGESTION || ${DIALSTATUS} = CHANUNAVAIL)<br> {<br>
&AutoLogout(${EXTEN},${AVAILSTATUS} ${DIALSTATUS});<br> }<br> }<br> }<br> else<br> {<br>
NoOp(${EXTEN} is busy. GROUP_COUNT=${GROUP_COUNT(${EXTEN})});<br> Busy();<br> }<br> }<br></div><br><br>I also tried using a Custom dvstate to apply it to the member, but with no success.<br>
"devstate list" shows:<br><div style="margin-left: 40px;">--- Name: 'Custom:notinuse' State: 'NOT_INUSE'<br></div><br>Seems that hint only retrieves the devstate status. I didn't figure out yet how to set it.<br>
Would somebody help me figure this out??<br><br>Thanks in advance,<br><br>-<br>Tiago Lourenço Geada<br><br>
</blockquote></div><br>