[asterisk-users] MEMBERINTERFACE and MEMBERNAME questions

magnus.b at inputinterior.se magnus.b at inputinterior.se
Sun Feb 20 01:05:10 CST 2011


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 [0320209030 at inputinterior.se:1] Answer("SIP/0317998985-00000033", "") in new stack
    -- Executing [0320209030 at inputinterior.se:2] ExecIf("SIP/0317998985-00000033", "0?Queue(Goteborg,rtT)") in new stack
    -- Executing [0320209030 at inputinterior.se: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 [0320209030 at inputinterior.se:4] NoOp("SIP/0317998985-00000033", "") in new stack
    -- Executing [0320209030 at inputinterior.se:5] NoOp("SIP/0317998985-00000033", "") in new stack
    -- Executing [0320209030 at inputinterior.se: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110220/9a4e248f/attachment.htm>


More information about the asterisk-users mailing list