[asterisk-users] Queue Group not forwaring calls to agents

Duane Larson duane.larson at gmail.com
Mon Nov 1 15:21:30 CDT 2010


I am trying to set up Hunt Groups and I am having some issues.  Here is what
I am trying to do.  All my users actually register with OpenSIPS.  Asterisk
is using Realtime and I have set up a MySQL View Table so that Asterisk
see's all the SIP users info that OpenSIPS has.  This is what I have
configured

queues.conf
----------------------------------
[irock.com]
strategy=leastrecent
ringinuse=no
joinempty=yes
leavewhenempty=no
announce-frequency=30
min-announce-frequency=15
periodic-announce-frequency=60
announce-holdtime=yes
announce-position=yes
                        ;       ("You are now first in line.")
queue-youarenext = queue-youarenext
                        ;       ("There are")
queue-thereare = queue-thereare
                        ;       ("calls waiting.")
queue-callswaiting = queue-callswaiting
                        ;       ("The current est. holdtime is")
queue-holdtime = queue-holdtime
                        ;       ("minutes.")
queue-minutes = queue-minutes
                        ;       ("seconds.")
queue-seconds = queue-seconds
                        ;       ("Thank you for your patience.")
queue-thankyou = queue-thankyou
                        ;       ("Hold time")
queue-reporthold = queue-reporthold
                        ;       ("All reps busy / wait for next")
periodic-announce = queue-periodic-announce

extension.conf
-------------------------
exten => 9012211611,1,Answer
exten => 9012211611,2,Queue(irock.com,tT,,,300)


exten => *50,1,Answer
exten => *50,n,Macro(queue-login,${EXTEN},${EXTEN:0:4})
exten => *50,n,Hangup
exten => *51,1,Answer
exten => *51,n,Macro(queue-logout,${EXTEN},${EXTEN:0:4})
exten => *51,n,Hangup

;exten => *50,1,AgentLogin();
[macro-queue-login]
exten => s,1,Set(agent=${EXTEN:4})
exten => s,n,Set(queue=irock.com)
exten => s,n,NoOp(Queue login agent ${EXTEN:4} to queue ${phone});
exten => s,n,AddQueueMember(${queue});
exten => s,n,Playback(agent-loginok)
[macro-queue-logout]
exten => s,1,Set(agent=${EXTEN:4})
exten => s,n,Set(queue=irock.com)
exten => s,n,NoOp(Queue logout agent ${EXTEN:4} from queue ${phone});
exten => s,n,RemoveQueueMember(${queue});
exten => s,n,Playback(agent-loggedoff)





When I do a "queue show" I see the following

Asterisk18*CLI> queue show
irock.com has 0 calls (max unlimited) in 'leastrecent' strategy (0s
holdtime, 0s talktime), W:0, C:0, A:15, SL:0.0% within 0s
   Members:
      SIP/9012211610 (dynamic) (Unavailable) has taken no calls yet
   No Callers


So after I have logged in the agent by dialing *50 it shows up in the queue
as a member but says Unavailable.  So when someone calls the queue number
"9012211611" I see the following

Executing [9012211611 at irock.com:2] Queue("SIP/9012732009-00000045", "
irock.com,tT,,,300") in new stack
    -- Started music on hold, class 'default', on SIP/9012732009-00000045
    -- Stopped music on hold on SIP/9012732009-00000045
    -- <SIP/9012732009-00000045> Playing 'queue-youarenext.slin' (language
'en')
    -- Told SIP/9012732009-00000045 in irock.com their queue position (which
was 1)
    -- <SIP/9012732009-00000045> Playing 'queue-thankyou.slin' (language
'en')
    -- Started music on hold, class 'default', on SIP/9012732009-00000045


And I hear all the announcements, but it never calls the agent.

Here is the output when I do a "sip show peer" for the agent that should be
called.

Asterisk18*CLI> sip show peer 9012211610 load

  * Name       : 9012211610
  Realtime peer: Yes, cached
  Secret       : <Not set>
  MD5Secret    : <Not set>
  Remote Secret: <Not set>
  Context      : irock.com
  Subscr.Cont. : <Not set>
  Language     :
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  FromUser     : 9012211610
  FromDomain   : irock.com Port 5060
  Callgroup    :
  Pickupgroup  :
  MOH Suggest  :
  Mailbox      : 9012211610
  VM Extension : asterisk
  LastMsgsSent : 32767/65535
  Call limit   : 2147483647
  Max forwards : 0
  Busy level   : 1
  Dynamic      : No
  Callerid     : "" <>
  MaxCallBR    : 384 kbps
  Expire       : -1
  Insecure     : no
  Force rport  : Yes
  ACL          : No
  DirectMedACL : No
  T.38 support : No
  T.38 EC mode : Unknown
  T.38 MaxDtgrm: -1
  DirectMedia  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: No
  Text Support : No
  Ign SDP ver  : No
  Trust RPID   : No
  Send RPID    : No
  Subscriptions: Yes
  Overlap dial : No
  DTMFmode     : rfc2833
  Timer T1     : 500
  Timer B      : 32000
  ToHost       : aethercommunications.com
  Addr->IP     : 173.203.87.134:5060
  Defaddr->IP  : 97.74.144.17:5060
  Prim.Transp. : UDP
  Allowed.Trsp : UDP
  Def. Username: 9012211610
  SIP Options  : (none)
  Codecs       : 0x80000008000e (gsm|ulaw|alaw|h263|testlaw)
  Codec Order  : (none)
  Auto-Framing :  No
  100 on REG   : No
  Status       : Unmonitored
  Useragent    :
  Reg. Contact :
  Qualify Freq : 60000 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs
  RTP Engine   : asterisk
  Parkinglot   :
  Use Reason   : No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101101/faa7868b/attachment-0001.htm 


More information about the asterisk-users mailing list