Hmm,
First i must correct myself, MEMBERINTERFACE seems to be NULL, not the “device” 
that called in, my bad reading.
Did some changes:
queues.conf
---------------
[Kinna]
keepstats=yes
ringinuse=no
setinterfacevar=yes
setqueuevar=yes
strategy=rrmemory
timeout=5
wrapuptime=120

extensions.conf
----------------
exten => 0320209030,1,Answer()
exten => 
0320209030,n,ExecIf($[${QUEUE_MEMBER(Kinna,logged)}=0]?Queue(Goteborg,rtT))
exten => 0320209030,n,Queue(Kinna,nrtT)
exten => 0320209030,n,NoOp(${MEMBERINTERFACE})
exten => 0320209030,n,NoOp(${MEMBERNAME})
exten => 0320209030,n,NoOp(${QUEUENAME})
exten => 0320209030,n,Queue(Goteborg,rtT)
exten => 0320209030,n,Hangup()

Same call flows as below:
== Using SIP RTP CoS mark 5
  -- Executing [[email protected]:1] 
Answer("SIP/0317998985-00000050", "") in new stack
  -- Executing [[email protected]:2] 
ExecIf("SIP/0317998985-00000050", "0?Queue(Goteborg,rtT)") in new stack
  -- Executing [[email protected]:3] Queue("SIP/0317998985-00000050", 
"Kinna,nrtT") in new stack
== Using SIP RTP CoS mark 5
  -- SIP/0317998972-00000051 is ringing
  -- SIP/0317998972-00000051 is ringing
  -- SIP/0317998972-00000051 is ringing
  -- SIP/0317998972-00000051 is ringing
  -- Nobody picked up in 5000 ms
  -- Exiting on time-out cycle
  -- Executing [[email protected]:4] NoOp("SIP/0317998985-00000050", 
"") in new stack
  -- Executing [[email protected]:5] NoOp("SIP/0317998985-00000050", 
"") in new stack
  -- Executing [[email protected]:6] NoOp("SIP/0317998985-00000050", 
"Kinna") in new stack
  -- Executing [[email protected]:7] Queue("SIP/0317998985-00000050", 
"Goteborg,rtT") in new stack

QUEUENAME is working the way i am excpecting but MEMBERINTERFACE and MEMBERNAME 
is not, or am I wrong?

From: [email protected] 
Sent: Sunday, February 20, 2011 8:05 AM
To: [email protected] 
Subject: [asterisk-users] MEMBERINTERFACE and MEMBERNAME questions

Hi!

Did play around with queues and need some help. I thought that MEMBERINTERFACE 
and MEMBERNAME should be set to the “device” the call was queued to not the 
device that called the queue, or do i miss something?
Running: Asterisk 1.8.2.3 built by root @ sip on a i686 running Linux on 
2011-01-31 13:38:23 UTC

0317998985 calls Kinna (0320209030)
Tomas Ekman (SIP/0317998972) receives the call but don’t answer.

When the queue “timeout” I would like to get the name of the device that didn’t 
answered, in my case: SIP/0317998972.
${MEMBERINTERFACE} gives me the name of the device that called in.

queue show Kinna
----------------
Kinna has 0 calls (max unlimited) in 'rrmemory' strategy (4s holdtime, 2s 
talktime), W:0, C:1, A:13, SL:0.0% within 0s
   Members:
      Tomas Ekman (SIP/0317998972) with penalty 1 (dynamic) (Not in use) has 
taken no calls yet
   No Callers

queues.conf
-----------
[general]
;
autofill=yes
keepstats=yes
setinterfacevar=yes
;
[Kinna]
retry=5
ringinuse=no
strategy=rrmemory
timeout=20
wrapuptime=120

extensions.conf
---------------
exten => 0320209030,1,Answer()
exten => 
0320209030,n,ExecIf($[${QUEUE_MEMBER(Kinna,logged)}=0]?Queue(Goteborg,rtT))
exten => 0320209030,n,Queue(Kinna,nrtT)
exten => 0320209030,n,NoOp(${MEMBERINTERFACE})
exten => 0320209030,n,NoOp(${MEMBERNAME})
exten => 0320209030,n,Queue(Goteborg,rtT)
exten => 0320209030,n,Hangup()

CLI>
----
  == Using SIP RTP CoS mark 5
    -- Executing [[email protected]:1] 
Answer("SIP/0317998985-00000033", "") in new stack
    -- Executing [[email protected]:2] 
ExecIf("SIP/0317998985-00000033", "0?Queue(Goteborg,rtT)") in new stack
    -- Executing [[email protected]:3] 
Queue("SIP/0317998985-00000033", "Kinna,nrtT") in new stack
  == Using SIP RTP CoS mark 5
    -- SIP/0317998972-00000034 is ringing
    -- SIP/0317998972-00000034 is ringing
    -- SIP/0317998972-00000034 is ringing
    -- SIP/0317998972-00000034 is ringing
    -- SIP/0317998972-00000034 is ringing
    -- SIP/0317998972-00000034 is ringing
    -- Nobody picked up in 20000 ms
    -- Exiting on time-out cycle
    -- Executing [[email protected]:4] 
NoOp("SIP/0317998985-00000033", "") in new stack
    -- Executing [[email protected]:5] 
NoOp("SIP/0317998985-00000033", "") in new stack
    -- Executing [[email protected]:6] 
Queue("SIP/0317998985-00000033", "Goteborg,rtT") in new stack
  == Spawn extension (inputinterior.se, 0320209030, 6) exited non-zero on 
'SIP/0317998985-00000033'

Could any help me understand what I am doing wrong?

/Magnus


--------------------------------------------------------------------------------
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to