<div>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</div>
<div> </div>
<div>queues.conf</div>
<div>----------------------------------</div>
<div>[<a href="http://irock.com">irock.com</a>]<br>strategy=leastrecent<br>ringinuse=no<br>joinempty=yes<br>leavewhenempty=no<br>announce-frequency=30<br>min-announce-frequency=15<br>periodic-announce-frequency=60<br>announce-holdtime=yes<br>
announce-position=yes</div>
<div> ; ("You are now first in line.")<br>queue-youarenext = queue-youarenext<br> ; ("There are")<br>queue-thereare = queue-thereare<br> ; ("calls waiting.")<br>
queue-callswaiting = queue-callswaiting <br> ; ("The current est. holdtime is")<br>queue-holdtime = queue-holdtime<br> ; ("minutes.")<br>
queue-minutes = queue-minutes<br> ; ("seconds.")<br>queue-seconds = queue-seconds<br> ; ("Thank you for your patience.")<br>queue-thankyou = queue-thankyou<br>
; ("Hold time")<br>queue-reporthold = queue-reporthold<br> ; ("All reps busy / wait for next")<br>periodic-announce = queue-periodic-announce</div>
<div> </div>
<div>extension.conf</div>
<div>-------------------------</div>
<div>exten => 9012211611,1,Answer <br>exten => 9012211611,2,Queue(<a href="http://irock.com">irock.com</a>,tT,,,300)</div>
<div> </div>
<div> </div>
<div>exten => *50,1,Answer<br>exten => *50,n,Macro(queue-login,${EXTEN},${EXTEN:0:4})<br>exten => *50,n,Hangup</div>
<div>exten => *51,1,Answer<br>exten => *51,n,Macro(queue-logout,${EXTEN},${EXTEN:0:4})<br>exten => *51,n,Hangup</div>
<div><br>;exten => *50,1,AgentLogin();</div>
<div>[macro-queue-login]<br>exten => s,1,Set(agent=${EXTEN:4})<br>exten => s,n,Set(queue=<a href="http://irock.com">irock.com</a>)<br>exten => s,n,NoOp(Queue login agent ${EXTEN:4} to queue ${phone});<br>exten => s,n,AddQueueMember(${queue});<br>
exten => s,n,Playback(agent-loginok)</div>
<div>[macro-queue-logout]<br>exten => s,1,Set(agent=${EXTEN:4})<br>exten => s,n,Set(queue=<a href="http://irock.com">irock.com</a>)<br>exten => s,n,NoOp(Queue logout agent ${EXTEN:4} from queue ${phone});<br>exten => s,n,RemoveQueueMember(${queue});<br>
exten => s,n,Playback(agent-loggedoff)</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>When I do a "queue show" I see the following</div>
<div><br>Asterisk18*CLI> queue show<br><a href="http://irock.com">irock.com</a> has 0 calls (max unlimited) in 'leastrecent' strategy (0s holdtime, 0s talktime), W:0, C:0, A:15, SL:0.0% within 0s<br> Members: <br>
SIP/9012211610 (dynamic) (Unavailable) has taken no calls yet<br> No Callers</div>
<div> </div>
<div> </div>
<div>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</div>
<div> </div>
<div>Executing [<a href="http://9012211611@irock.com:2">9012211611@irock.com:2</a>] Queue("SIP/9012732009-00000045", "<a href="http://irock.com">irock.com</a>,tT,,,300") in new stack<br> -- Started music on hold, class 'default', on SIP/9012732009-00000045<br>
-- Stopped music on hold on SIP/9012732009-00000045<br> -- <SIP/9012732009-00000045> Playing 'queue-youarenext.slin' (language 'en')</div>
<div> -- Told SIP/9012732009-00000045 in <a href="http://irock.com">irock.com</a> their queue position (which was 1)<br> -- <SIP/9012732009-00000045> Playing 'queue-thankyou.slin' (language 'en')<br>
-- Started music on hold, class 'default', on SIP/9012732009-00000045</div>
<div> </div>
<div> </div>
<div>And I hear all the announcements, but it never calls the agent.</div>
<div> </div>
<div>Here is the output when I do a "sip show peer" for the agent that should be called.</div>
<div> </div>
<div>Asterisk18*CLI> sip show peer 9012211610 load</div>
<div><br> * Name : 9012211610<br> Realtime peer: Yes, cached<br> Secret : <Not set><br> MD5Secret : <Not set><br> Remote Secret: <Not set><br> Context : <a href="http://irock.com">irock.com</a><br>
Subscr.Cont. : <Not set><br> Language : <br> AMA flags : Unknown<br> Transfer mode: open<br> CallingPres : Presentation Allowed, Not Screened<br> FromUser : 9012211610<br> FromDomain : <a href="http://irock.com">irock.com</a> Port 5060<br>
Callgroup : <br> Pickupgroup : <br> MOH Suggest : <br> Mailbox : 9012211610<br> VM Extension : asterisk<br> LastMsgsSent : 32767/65535<br> Call limit : 2147483647<br> Max forwards : 0<br> Busy level : 1<br>
Dynamic : No<br> Callerid : "" <><br> MaxCallBR : 384 kbps<br> Expire : -1<br> Insecure : no<br> Force rport : Yes<br> ACL : No<br> DirectMedACL : No<br> T.38 support : No<br>
T.38 EC mode : Unknown<br> T.38 MaxDtgrm: -1<br> DirectMedia : No<br> PromiscRedir : No<br> User=Phone : No<br> Video Support: No<br> Text Support : No<br> Ign SDP ver : No<br> Trust RPID : No<br> Send RPID : No<br>
Subscriptions: Yes<br> Overlap dial : No<br> DTMFmode : rfc2833<br> Timer T1 : 500<br> Timer B : 32000<br> ToHost : <a href="http://aethercommunications.com">aethercommunications.com</a><br> Addr->IP : <a href="http://173.203.87.134:5060">173.203.87.134:5060</a><br>
Defaddr->IP : <a href="http://97.74.144.17:5060">97.74.144.17:5060</a><br> Prim.Transp. : UDP<br> Allowed.Trsp : UDP<br> Def. Username: 9012211610<br> SIP Options : (none)<br> Codecs : 0x80000008000e (gsm|ulaw|alaw|h263|testlaw)<br>
Codec Order : (none)<br> Auto-Framing : No <br> 100 on REG : No<br> Status : Unmonitored<br> Useragent : <br> Reg. Contact : <br> Qualify Freq : 60000 ms<br> Sess-Timers : Accept<br> Sess-Refresh : uas<br>
Sess-Expires : 1800 secs<br> Min-Sess : 90 secs<br> RTP Engine : asterisk<br> Parkinglot : <br> Use Reason : No</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>