<!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 >h< extension doesnt like to work (at least
not in a macro I guess) when the >calling< party hangs up the
call...<br>
<br>
(dialplan)<br>
[macro-testpause]<br>
;<br>
;<br>
;<br>
exten => s,1,Answer()<br>
exten => s,2,Wait(1)<br>
exten => s,3,PauseQueueMember(|Agent/${CALLERIDNUM})<br>
exten => s,4,Dial(${IAXTRUNK}/18157202200,120,g)<br>
exten => s,5,UnpauseQueueMember(|Agent/${CALLERIDNUM})<br>
<br>
exten => h,1,UnpauseQueueMember(|Agent/${CALLERIDNUM})<br>
<br>
<br>
---- Ast Log<br>
<br>
<tt>asterisk*CLI> show queues<br>
support has 0 calls (max unlimited) in 'roundrobin' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s<br>
Members: ><br>
Agent/2202 (Not in use) has taken no calls yet<br>
Agent/2205 (Unavailable) has taken no calls yet<br>
Agent/2201 with penalty 1 (Unavailable) has taken no calls yet<br>
No Callers<br>
(here i made the call to the exten to call the testpause macro)<br>
asterisk*CLI><br>
-- Executing Macro("SIP/2202-7070", "testpause") in new stack<br>
-- Executing Answer("SIP/2202-7070", "") in new stack<br>
-- Executing Wait("SIP/2202-7070", "1") in new stack<br>
-- Executing PauseQueueMember("SIP/2202-7070", "|Agent/2202") in
new stack<br>
-- 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>
-- Called <a class="moz-txt-link-abbreviated" href="mailto:rri@jasterisk.rockriver.net/18157202200">rri@jasterisk.rockriver.net/18157202200</a><br>
-- Call accepted by 209.94.48.30 (format g729)<br>
-- Format for call is g729<br>
-- Accepting AUTHENTICATED call from 209.94.48.30:<br>
> requested format = g729,<br>
> requested prefs = (),<br>
> actual format = g729,<br>
> host prefs = (g729|gsm|ulaw),<br>
> priority = mine<br>
-- Executing SetVar("IAX2/jasterisk-16384", "__oCID=2202") in new
stack<br>
-- Executing SetCDRUserField("IAX2/jasterisk-16384", "Incoming PRI
Call") in new stack<br>
-- Executing Wait("IAX2/jasterisk-16384", "2") in new stack<br>
-- Executing DigitTimeout("IAX2/jasterisk-16384", "2") in new stack<br>
-- Set Digit Timeout to 2<br>
-- Executing ResponseTimeout("IAX2/jasterisk-16384", "30") in new
stack<br>
-- Set Response Timeout to 30<br>
-- Executing Answer("IAX2/jasterisk-16384", "") in new stack<br>
-- Executing BackGround("IAX2/jasterisk-16384", "topgreet") in new
stack<br>
-- Playing 'topgreet' (language 'en')<br>
-- IAX2/jasterisk-3 answered SIP/2202-7070<br>
(so, the agent is now paused)<br>
asterisk*CLI> show queues<br>
support has 0 calls (max unlimited) in 'roundrobin' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s<br>
Members:<br>
Agent/2202 (paused) (Not in use) has taken no calls yet<br>
Agent/2205 (Unavailable) has taken no calls yet<br>
Agent/2201 with penalty 1 (Unavailable) has taken no calls yet<br>
No Callers<br>
(I press hangup on the phone)<br>
-- Hungup 'IAX2/jasterisk-3'<br>
== Spawn extension (macro-testpause, s, 4) exited non-zero on
'SIP/2202-7070' in macro 'testpause'<br>
== Spawn extension (home, 121, 1) exited non-zero on 'SIP/2202-7070'<br>
== Spawn extension (pstn, 8157202200, 7) exited non-zero on
'IAX2/jasterisk-16384'<br>
-- Hungup 'IAX2/jasterisk-16384'<br>
(and the agent is still paused)<br>
asterisk*CLI> show queues<br>
support has 0 calls (max unlimited) in 'roundrobin' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s<br>
Members: ><br>
Agent/2202 (paused) (Not in use) has taken no calls yet<br>
Agent/2205 (Unavailable) has taken no calls yet<br>
Agent/2201 with penalty 1 (Unavailable) has taken no calls yet<br>
No Callers<br>
asterisk*CLI><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 >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.
</pre>
</blockquote>
<pre wrap=""><!---->
Did you try the h exten ?
exten => 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>