[asterisk-users] member (In use)

Tiago Geada tiago.geada at gmail.com
Tue Dec 15 09:09:44 CST 2009


Hello list.

We just upgraded to 1.6.1.11.

We are using real time information stored on mysql databases. That is all
running fine.

Now, since we upgraded, some member don't get calls from queues.
In CLI: "queue show" shows something like:
611 (Local/611 at agents) with penalty 20 (realtime) (*In use*) has taken no
calls yet


We use the extension 611 in different computers, in the internal network
with no nat, in the external network with nat...
We deleted the member 611 from mysql, and added it again, changed passwd
etc...
We restarted asterisk several times..

The member shows always (In use) !!

Just to show that there is no channel associated with the member
"core show channels" shows:
Connected to Asterisk 1.6.1.11 currently running on perfpbxr (pid = 12955)
Channel              Location             State
Application(Data)
DAHDI/9-1            main at FnacSACLojas:2  Up
Playback(audio/FnacSAC/qualida
DAHDI/31-1           s at ZON:7              Up
BackGround(audio/ZON/prima1)
SIP/209-00000570     main at agents:1        Up      AppQueue((Outgoing
Line))
SIP/604-0000056e     t at agents:1           Up      AppQueue((Outgoing
Line))
DAHDI/5-1            main at FnacSACBilhetei Up
Queue(FnacSACBilheteira,t,,,18
SIP/206-0000056c     main at agents:1        Up      AppQueue((Outgoing
Line))
SIP/234-0000056b     1 at agents:1           Up      AppQueue((Outgoing
Line))
DAHDI/18-1           t at ZON:7              Up
Queue(Timeout-ZON,t,,,60)
DAHDI/4-1            main at FnacSACLojas:6  Up
Queue(FnacSACLojas,t,,,180)
SIP/208-00000569     main at agents:1        Up      AppQueue((Outgoing
Line))
DAHDI/13-1           main at FnacSACLojas:6  Up
Queue(FnacSACLojas,t,,,180)
DAHDI/30-1           1 at ZON:38             Up
Queue(ZON,t,,,60)
SIP/227-00000561     t at agents:1           Up      AppQueue((Outgoing
Line))
DAHDI/24-1           t at HF:9               Up
Queue(Timeout-HF,t,,,60)
SIP/233-00000558     t at agents:1           Up      AppQueue((Outgoing
Line))
SIP/216-00000553     t at agents:1           Up      AppQueue((Outgoing
Line))
DAHDI/20-1           t at ZON:7              Up
Queue(Timeout-ZON,t,,,60)
DAHDI/8-1            t at ZON:7              Up
Queue(Timeout-ZON,t,,,60)
SIP/236-00000545     t at agents:1           Up      AppQueue((Outgoing
Line))
SIP/235-00000541     t at agents:1           Up      AppQueue((Outgoing
Line))
DAHDI/12-1           t at ZON:7              Up
Queue(Timeout-ZON,t,,,60)
DAHDI/6-1            t at ZON:7              Up
Queue(Timeout-ZON,t,,,60)
SIP/219-00000449     main at agents:1        Up      AppQueue((Outgoing
Line))
DAHDI/29-1           main at FnacSACLojas:6  Up
Queue(FnacSACLojas,t,,,180)
24 active channels
13 active calls
3863 calls processed

The ael that is processed when a queue dials 611 looks like:

        _XXX => {               // internal dial to extensions from queue.

                Set(GROUP()=${EXTEN});                  // increment group
count
                Set(CDR(accountcode)=ext${ext});        // for Phoenix
                Set(OUTBOUND_GROUP=${EXTEN});           // same for channel
that will be created by Dial()
                NoOp(GROUP_COUNT of ${EXTEN}: ${GROUP_COUNT(${EXTEN})});
                if ("${GROUP_COUNT(${EXTEN})}" = "1")   // if not already in
call
                {
                        Set(DIALSTART=${EPOCH});

&Queue_log(${UNIQUEID},${PARTNER},${EXTEN},DIAL,${CALLERID(name)});

                        NoOp(PCmedicInfo: Followme seria:
followme/${PARTNER} - CallerID: ${CALLERID(number)} - UnID: ${UNIQUEID} -
Nao ha partner?... );
                        Set(NewCallMsg=followme/${PARTNER});
                        if (${NewCallMsg} = "")
                        {
                                Set(NewCallMsg=followme/no-recording);
                        }
                        if (${NewCallMsg} = "followme/")
                        {
                                Set(NewCallMsg=followme/no-recording); //
Geada - o IF anterior deveria verificar o PARNER?
                                NoOp(PCmedicInfo: Corrected followme: -
partner: ${PARTNER} - ${CALLERID(number)});
                        }
                        Dial(SIP/${EXTEN},7,rktgA(${NewCallMsg}));
                        if("${DIALSTART}" != "")
                        {
                                Set(DIALEDTIME=$[${EPOCH} - ${DIALSTART}]);
                        }
                        else
                        {
                                Set(DIALEDTIME=0);
                        }

                        ChanIsAvail(SIP/${EXTEN});                      //
                        NoOp(DIALSTATUS EXT ${EXTEN}:);                 //
                        NoOp(DIALSTATUS=${DIALSTATUS});
//      Necessary for Phoenix
                        NoOp(DIALEDTIME=${DIALEDTIME});                 //
                        NoOp(HANGUPCAUSE=${HANGUPCAUSE});               //
                        NoOp(AVAILSTATUS=${AVAILSTATUS});               //

                        if (${DIALSTATUS} = NOANSWER && ${DIALEDTIME} >=
7)     // make sure it actually rang
                        {
                                &AutoLogout(${EXTEN},${DIALSTATUS});
                        }
                        else if (${AVAILSTATUS} = AST_DEVICE_INVALID ||
${AVAILSTATUS} = AST_DEVICE_UNAVAILABLE || ${DIALSTATUS} = CONGESTION ||
${DIALSTATUS} = CHANUNAVAIL)
                        {
                                NoOp(PCmedicInfo: partner: ${PARTNER} - DDI:
${CALLERID(number)} - TG);

Dial(SIP/${EXTEN},30,rktgA(followme/${PARTNER})M(IncrementCallCount));  //
try again:

                                if (${AVAILSTATUS} = AST_DEVICE_INVALID ||
${AVAILSTATUS} = AST_DEVICE_UNAVAILABLE || ${DIALSTATUS} = CONGESTION ||
${DIALSTATUS} = CHANUNAVAIL)
                                {
                                        &AutoLogout(${EXTEN},${AVAILSTATUS}
${DIALSTATUS});
                                }
                        }
                }
                else
                {
                        NoOp(${EXTEN} is busy.
GROUP_COUNT=${GROUP_COUNT(${EXTEN})});
                        Busy();
                }
        }


I also tried using a Custom dvstate to apply it to the member, but with no
success.
"devstate list" shows:
--- Name: 'Custom:notinuse'  State: 'NOT_INUSE'

Seems that hint only retrieves the devstate status. I didn't figure out yet
how to set it.
Would somebody help me figure this out??

Thanks in advance,

-
Tiago Lourenço Geada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091215/7f02b58b/attachment.htm 


More information about the asterisk-users mailing list