[Asterisk-Dev] PauseQueueMember

Corey Frang corey at rockriver.net
Mon Oct 17 15:46:55 MST 2005


Some more info, the >h< extension doesnt like to work (at least not in a 
macro I guess) when the >calling< party hangs up the call...

(dialplan)
[macro-testpause]
;
;
;
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,PauseQueueMember(|Agent/${CALLERIDNUM})
exten => s,4,Dial(${IAXTRUNK}/18157202200,120,g)
exten => s,5,UnpauseQueueMember(|Agent/${CALLERIDNUM})

exten => h,1,UnpauseQueueMember(|Agent/${CALLERIDNUM})


---- Ast Log

asterisk*CLI> show queues
support      has 0 calls (max unlimited) in 'roundrobin' strategy (0s 
holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   Members: >
      Agent/2202 (Not in use) has taken no calls yet
      Agent/2205 (Unavailable) has taken no calls yet
      Agent/2201 with penalty 1 (Unavailable) has taken no calls yet
   No Callers
(here i made the call to the exten to call the testpause macro)
asterisk*CLI>
    -- Executing Macro("SIP/2202-7070", "testpause") in new stack
    -- Executing Answer("SIP/2202-7070", "") in new stack
    -- Executing Wait("SIP/2202-7070", "1") in new stack
    -- Executing PauseQueueMember("SIP/2202-7070", "|Agent/2202") in new 
stack
    -- Executing Dial("SIP/2202-7070", 
"IAX2/rri at jasterisk.rockriver.net/18157202200|120|g") in new stack
    -- Called rri at jasterisk.rockriver.net/18157202200
    -- Call accepted by 209.94.48.30 (format g729)
    -- Format for call is g729
    -- Accepting AUTHENTICATED call from 209.94.48.30:
       > requested format = g729,
       > requested prefs = (),
       > actual format = g729,
       > host prefs = (g729|gsm|ulaw),
       > priority = mine
    -- Executing SetVar("IAX2/jasterisk-16384", "__oCID=2202") in new stack
    -- Executing SetCDRUserField("IAX2/jasterisk-16384", "Incoming PRI 
Call") in new stack
    -- Executing Wait("IAX2/jasterisk-16384", "2") in new stack
    -- Executing DigitTimeout("IAX2/jasterisk-16384", "2") in new stack
    -- Set Digit Timeout to 2
    -- Executing ResponseTimeout("IAX2/jasterisk-16384", "30") in new stack
    -- Set Response Timeout to 30
    -- Executing Answer("IAX2/jasterisk-16384", "") in new stack
    -- Executing BackGround("IAX2/jasterisk-16384", "topgreet") in new stack
    -- Playing 'topgreet' (language 'en')
    -- IAX2/jasterisk-3 answered SIP/2202-7070
(so, the agent is now paused)
asterisk*CLI> show queues
support      has 0 calls (max unlimited) in 'roundrobin' strategy (0s 
holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   Members:
      Agent/2202 (paused) (Not in use) has taken no calls yet
      Agent/2205 (Unavailable) has taken no calls yet
      Agent/2201 with penalty 1 (Unavailable) has taken no calls yet
   No Callers
(I press hangup on the phone)
    -- Hungup 'IAX2/jasterisk-3'
  == Spawn extension (macro-testpause, s, 4) exited non-zero on 
'SIP/2202-7070' in macro 'testpause'
  == Spawn extension (home, 121, 1) exited non-zero on 'SIP/2202-7070'
  == Spawn extension (pstn, 8157202200, 7) exited non-zero on 
'IAX2/jasterisk-16384'
    -- Hungup 'IAX2/jasterisk-16384'
(and the agent is still paused)
asterisk*CLI> show queues
support      has 0 calls (max unlimited) in 'roundrobin' strategy (0s 
holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   Members: >
      Agent/2202 (paused) (Not in use) has taken no calls yet
      Agent/2205 (Unavailable) has taken no calls yet
      Agent/2201 with penalty 1 (Unavailable) has taken no calls yet
   No Callers
asterisk*CLI>


Michiel van Baak wrote:

>On 16:53, Mon 17 Oct 05, Corey Frang wrote:
>  
>
>>So, PauseQueueMember works great.
>>
>>Only one problem, The Dial Plan logic offers >NO< way to guarntee to 
>>call UnPauseQueueMember when the channel hangs up.
>>
>>If the >called< party hangs up, a "g" to the Dial() app will work.. If 
>>the >calling< party hangs up, the dialplan has no way to continue.
>>
>>    
>>
>
>Did you try the h exten ?
>exten => h,1,UnPause......
>
>We use the h for DeadAgi and it works 100% of the time.
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Dev mailing list
>Asterisk-Dev at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-dev
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 10/16/2005
>  
>


-- 
Rock River Internet                                Corey Frang
202 W. State St, 8th Floor                 corey at rockriver.net
Rockford, IL 61101                      815-968-9888 Ext. 2205
USA                                               fax 968-6888

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20051017/8d6f4d64/attachment.htm


More information about the asterisk-dev mailing list