As a follow up, here is the CLI output when a call comes in to the queue:
 
    -- Executing Queue("Zap/20-1", "inbound-sip") in new stack
    -- Started music on hold, class 'default', on Zap/20-1
    -- Called SIP/80001
    -- SIP/80001-d6d8 is ringing
    -- Channel 0/20, span 1 got hangup
    -- Stopped music on hold on Zap/20-1
  == Spawn extension (outbound, 2832, 9)
 
What I want to know is from the dial plan, how can I tell that the dynamic queue member 80001 received the call?
 
Thanks.




 
 
I am still trying to determine how I can tell within the dial plan which SIP phone an external call terminates at when the call goes into a queue.
 
While trying to work on that piece, I found something else:
 
When I use AddQueueMember and RemoveQueueMember, the ASA stats from the CLI command "show queues" is always at 0%. When I log into a queue from the SIP phone, the ASA stats will show a percentage.
 
Is the ASA not working correctly when I dynamically enter the queue as an agent?
 
I am using * 1.0.7 on FC1.
 
Here is a snippet of the dial plan:
 
exten => 2832,1,Wait,1
exten => 2832,2,Answer
exten => 2832,3,Playback(vm-goodbye)    ;just plays a message to hear audio quality during test
exten => 2832,4,NoOp("Test")    ; CLI notification - no real reason this is in here
exten => 2832,5,Queue(inbound-sip)
 
At this point, I have no control over the call from the dial plan. What I would like to do is know, within the dial plan, where the call ended up in the queue. At that point, I can do this:
 
DBget(USERx_IP=SIP/Registry/${EXTEN})
Cut(USERx_IP=USERx_IP,:,1)
System(/bin/echo -n -e "
'@CALL${CALLERIDNAME} ${CALLERIDNUM}'" | /usr/bin/netcat --wait=2 -t ${USERx_IP} ${POPPORT})
 
When I know the extension (say for internal, SIP to SIP calls) I can do a screen pop to the far end with a TCP app listening to port XXXX. I just can't seem to figure out how to tell where the call went - within the dial plan - when the call enters a queue.
 
 
My AddQueueMember and RemoveQueueMember are basic.
 
AddMemberQueue
exten => 78000,1,Answer
exten => 78000,2,Ringing
exten => 78000,3,Wait(1)
exten => 78000,4,AddQueueMember(inbound-sip|SIP/${CALLERIDNUM})
exten => 78000,5,Playback(agent-loginok)
exten => 78000,6,Wait(1)
exten => 78000,7,Hangup
 
RemoveMemberQueue does the same thing except remove the agent.
 
I can see the call movement from the manager interface, but that would require a whole separate administration effort to make sure that not only the SIP "extensions" are entered appropriately but also the manager entries are entered and correct.
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.12 - Release Date: 5/17/2005
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to