<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1649" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>Hi 
List</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>I have had a look at 
the various posts on this and seem to be more confused than ever - but then 
again that's not hard ;-)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>I am using Version 
1.4.33.1 build from the Debian "lenny" distros</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>I am trying to 
implement a simple screening </FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2>[macro-screen]<BR>exten =&gt; s,1,Background(press1)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>exten =&gt; 
s,n,WaitExten(5)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>exten =&gt; 
1,1,NoOp(accepted) ; Dont set a reply so dial connects</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>exten =&gt; 
i,1,Set(MACRO_RESULT=CONTINUE)<BR>exten =&gt; 
t,1,Set(MACRO_RESULT=CONTINUE)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2>[test]</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>exten =&gt; 
_1234,1,Dial(SIP/2001,10,M(screen))<BR>exten =&gt; 
_1234,n,playback(sorry,noanswer)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>This config plays to 
the caller "sorry" if I don't answer SIP/2001 - good </FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>and 
</FONT></SPAN><SPAN class=691071023-02022011><FONT face=Arial size=2>if I answer 
SIP/2001 but don't press ANY key (so timeout) the caller gets the sorry message 
- again&nbsp;good.</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>The problem I have 
is that the call gets connected whatever key I press - not just the "1" 
key.</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>I have seen various 
posts about using background within macros e.g. <A 
href="http://www.voip-info.org/wiki/view/Asterisk+cmd+BackGround">http://www.voip-info.org/wiki/view/Asterisk+cmd+BackGround</A></FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>but changing the 
macro to </FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2>[macro-screen]<BR>exten =&gt; 
s,1,Background(press1,,screen)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2>....</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2>or - I am not clear 
what the name should be </FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial size=2><SPAN 
class=691071023-02022011><FONT face="Times New Roman" size=3>&nbsp;</FONT>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2>[macro-screen]<BR>exten =&gt; 
s,1,Background(press1,,macro-screen)</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2>....</FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011>just produces the same result - If I can get 
this working it will be part of a bigger dialplan for which the followme app is 
not suitable hence the back to basics</SPAN></DIV>
<DIV><SPAN class=691071023-02022011>&nbsp;</SPAN></DIV>
<DIV><SPAN class=691071023-02022011>can anybody point me in the right direction 
- pleeese :-)</SPAN></DIV>
<DIV><SPAN class=691071023-02022011></SPAN>&nbsp;</DIV>
<DIV><SPAN class=691071023-02022011>Paddy</SPAN></DIV>
<DIV><SPAN 
class=691071023-02022011></SPAN>&nbsp;</DIV></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=691071023-02022011><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>