<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1250">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=Arial><FONT size=2>
<BODY>
<DIV><FONT face=Tahoma color=#800000 size=3>Thanks, Wes, G was just what I
needed. Here's where I am:</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">[macro-stdexten]<BR>exten =>
s,1,Set(cname=${CALLERID(number)}@pbx.deskoptional.com)<BR>exten =>
s,n,Set(CALLERID(number)=${cname})<BR>exten =>
s,n,Dial(${ARG2},20,gtTwWG(OnAnswer,1,1))<BR>exten =>
s,n,Set(savestatus=${DIALSTATUS})<BR>exten =>
s,n,Goto(s-${savestatus},1);ANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER<BR>exten
=> s-CHANUNAVAIL,1,VoiceMail(u${ARG1})<BR>exten =>
s-CONGESTION,1,VoiceMail(u${ARG1})<BR>exten =>
s-NOANSWER,1,Voicemail(u${ARG1})<BR>exten =>
s-BUSY,1,Voicemail(b${ARG1})<BR>exten => h,1,Macro(OnHangup)</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">[OnAnswer]<BR>exten => 1,1,NoOp(IN POSTDIAL
1)<BR>exten => 1,2,NoOp(IN POSTDIAL 2)<BR>exten =>
h,1,Macro(OnHangup)</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">[macro-OnHangup]<BR>exten => s,1,NoOp(IN
ONHANGUP)</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT face=Tahoma color=#800000 size=3>Unanswered
calls stay in macro-stdexten and so get handled as desired. When a call is
answered, I do see that control has passed to OnAnswer.</FONT> </FONT><FONT
face=Tahoma color=#800000 size=3>From the available evidence in the CLI, I'm
guessing that having grabbed control from Dial() with the G switch, it is
incumbent on me to do whatever it is Asterisk would have done if I hadn't
grabbed the wheel. </FONT><FONT face=Tahoma color=#800000 size=3>I do
notice that OnHangup gets called for both, which is good. Here's the CLI
log for "dave" calling "andrea", showing how both channels hit OnAnswer and time
out. I just need to figure out what to do there in order for the two to
talk.</FONT></DIV>
<DIV><FONT face=Tahoma color=#800000 size=3></FONT> </DIV>
<DIV><FONT face="Courier New"> -- SIP/dave-06e2 is
ringing<BR> -- SIP/dave-06e2 answered
SIP/Andrea-7837<BR> == Channel 'SIP/Andrea-7837' jumping out of macro
'stdexten'<BR> -- Executing NoOp("SIP/Andrea-7837", "IN
POSTDIAL 1") in new stack<BR> -- Executing
NoOp("SIP/Andrea-7837", "IN POSTDIAL 2") in new stack<BR> --
Executing NoOp("SIP/dave-06e2", "IN POSTDIAL 2") in new stack<BR>May 10 08:50:37
WARNING[8722]: pbx.c:2412 __ast_pbx_run: Timeout, but no rule 't' in
context 'OnAnswer'<BR> -- Executing
Macro("SIP/Andrea-7837", "OnHangup") in new stack<BR> --
Executing NoOp("SIP/Andrea-7837", "IN ONHANGUP") in new stack<BR>May 10 08:50:37
WARNING[8725]: pbx.c:2412 __ast_pbx_run: Timeout, but no rule 't' in
context 'OnAnswer'<BR> -- Executing Macro("SIP/dave-06e2",
"OnHangup") in new stack<BR> -- Executing
NoOp("SIP/dave-06e2", "IN ONHANGUP") in new
stack</FONT></DIV></BODY></HTML></FONT></FONT>