<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Some more info, the &gt;h&lt; extension doesnt like to work (at least
not in a macro I guess) when the &gt;calling&lt; party hangs up the
call...<br>
<br>
(dialplan)<br>
[macro-testpause]<br>
;<br>
;<br>
;<br>
exten =&gt; s,1,Answer()<br>
exten =&gt; s,2,Wait(1)<br>
exten =&gt; s,3,PauseQueueMember(|Agent/${CALLERIDNUM})<br>
exten =&gt; s,4,Dial(${IAXTRUNK}/18157202200,120,g)<br>
exten =&gt; s,5,UnpauseQueueMember(|Agent/${CALLERIDNUM})<br>
<br>
exten =&gt; h,1,UnpauseQueueMember(|Agent/${CALLERIDNUM})<br>
<br>
<br>
---- Ast Log<br>
<br>
<tt>asterisk*CLI&gt; show queues<br>
support&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; has 0 calls (max unlimited) in 'roundrobin' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s<br>
&nbsp;&nbsp; Members: &gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2202 (Not in use) has taken no calls yet<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2205 (Unavailable) has taken no calls yet<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2201 with penalty 1 (Unavailable) has taken no calls yet<br>
&nbsp;&nbsp; No Callers<br>
(here i made the call to the exten to call the testpause macro)<br>
asterisk*CLI&gt;<br>
&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/2202-7070", "testpause") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing Answer("SIP/2202-7070", "") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing Wait("SIP/2202-7070", "1") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing PauseQueueMember("SIP/2202-7070", "|Agent/2202") in
new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing Dial("SIP/2202-7070",
<a class="moz-txt-link-rfc2396E" href="mailto:IAX2/rri@jasterisk.rockriver.net/18157202200|120|g">"IAX2/rri@jasterisk.rockriver.net/18157202200|120|g"</a>) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Called <a class="moz-txt-link-abbreviated" href="mailto:rri@jasterisk.rockriver.net/18157202200">rri@jasterisk.rockriver.net/18157202200</a><br>
&nbsp;&nbsp;&nbsp; -- Call accepted by 209.94.48.30 (format g729)<br>
&nbsp;&nbsp;&nbsp; -- Format for call is g729<br>
&nbsp;&nbsp;&nbsp; -- Accepting AUTHENTICATED call from 209.94.48.30:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; requested format = g729,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; requested prefs = (),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; actual format = g729,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; host prefs = (g729|gsm|ulaw),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; priority = mine<br>
&nbsp;&nbsp;&nbsp; -- Executing SetVar("IAX2/jasterisk-16384", "__oCID=2202") in new
stack<br>
&nbsp;&nbsp;&nbsp; -- Executing SetCDRUserField("IAX2/jasterisk-16384", "Incoming PRI
Call") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing Wait("IAX2/jasterisk-16384", "2") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing DigitTimeout("IAX2/jasterisk-16384", "2") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Set Digit Timeout to 2<br>
&nbsp;&nbsp;&nbsp; -- Executing ResponseTimeout("IAX2/jasterisk-16384", "30") in new
stack<br>
&nbsp;&nbsp;&nbsp; -- Set Response Timeout to 30<br>
&nbsp;&nbsp;&nbsp; -- Executing Answer("IAX2/jasterisk-16384", "") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing BackGround("IAX2/jasterisk-16384", "topgreet") in new
stack<br>
&nbsp;&nbsp;&nbsp; -- Playing 'topgreet' (language 'en')<br>
&nbsp;&nbsp;&nbsp; -- IAX2/jasterisk-3 answered SIP/2202-7070<br>
(so, the agent is now paused)<br>
asterisk*CLI&gt; show queues<br>
support&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; has 0 calls (max unlimited) in 'roundrobin' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s<br>
&nbsp;&nbsp; Members:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2202 (paused) (Not in use) has taken no calls yet<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2205 (Unavailable) has taken no calls yet<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2201 with penalty 1 (Unavailable) has taken no calls yet<br>
&nbsp;&nbsp; No Callers<br>
(I press hangup on the phone)<br>
&nbsp;&nbsp;&nbsp; -- Hungup 'IAX2/jasterisk-3'<br>
&nbsp; == Spawn extension (macro-testpause, s, 4) exited non-zero on
'SIP/2202-7070' in macro 'testpause'<br>
&nbsp; == Spawn extension (home, 121, 1) exited non-zero on 'SIP/2202-7070'<br>
&nbsp; == Spawn extension (pstn, 8157202200, 7) exited non-zero on
'IAX2/jasterisk-16384'<br>
&nbsp;&nbsp;&nbsp; -- Hungup 'IAX2/jasterisk-16384'<br>
(and the agent is still paused)<br>
asterisk*CLI&gt; show queues<br>
support&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; has 0 calls (max unlimited) in 'roundrobin' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s<br>
&nbsp;&nbsp; Members: &gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2202 (paused) (Not in use) has taken no calls yet<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2205 (Unavailable) has taken no calls yet<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Agent/2201 with penalty 1 (Unavailable) has taken no calls yet<br>
&nbsp;&nbsp; No Callers<br>
asterisk*CLI&gt;<br>
</tt><br>
<br>
Michiel van Baak wrote:
<blockquote cite="mid20051017223031.GA4676@anima.vanbaak.info"
 type="cite">
  <pre wrap="">On 16:53, Mon 17 Oct 05, Corey Frang wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">So, PauseQueueMember works great.

Only one problem, The Dial Plan logic offers &gt;NO&lt; way to guarntee to 
call UnPauseQueueMember when the channel hangs up.

If the &gt;called&lt; party hangs up, a "g" to the Dial() app will work.. If 
the &gt;calling&lt; party hangs up, the dialplan has no way to continue.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Did you try the h exten ?
exten =&gt; h,1,UnPause......

We use the h for DeadAgi and it works 100% of the time.
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Asterisk-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Dev@lists.digium.com">Asterisk-Dev@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a>
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></pre>
  <pre wrap="">
<hr size="4" width="90%">
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
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Rock River Internet                                Corey Frang
202 W. State St, 8th Floor                 <a class="moz-txt-link-abbreviated" href="mailto:corey@rockriver.net">corey@rockriver.net</a>
Rockford, IL 61101                      815-968-9888 Ext. 2205
USA                                               fax 968-6888
</pre>
</body>
</html>