<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 70.85pt 3.0cm 70.85pt 3.0cm; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EstiloDeEmail17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=PT-BR vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>To check to see if it's registered and to setup the
correct busy and unavailable messages I have a macro which checks this for
me. This works for Zap and sip.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[macro-stdexten]<BR>exten =>
s,1,Dial(${ARG1},20)<BR>exten => s,2,Voicemail(u${MACRO_EXTEN})<BR>exten
=> s,3,Goto(incoming,s,1)<BR>exten =>
s,102,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?103:105)<BR>exten =>
s,103,Voicemail(b${MACRO_EXTEN})<BR>exten =>
s,104,Goto(incoming,s,1)<BR>exten =>
s,105,Voicemail(u${MACRO_EXTEN})<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I call it via my extensions section </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[extensions]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => 120,1,Macro(stdexten,Sip/121) ; Ring
for 20 seconds<BR>exten => 121,1,Macro(stdexten,Zap/1)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jozeph@globalmedia.com.br
href="mailto:jozeph@globalmedia.com.br">Jozeph Brasil</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">'Asterisk Users Mailing List -
Non-Commercial Discussion'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, September 13, 2004 10:02
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Asterisk-Users] unavail and
busy.</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi guys,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What is different and the
“context” to play unavail message and busy message?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When a SIP connection is
unregistered, voicemail will play unavail message,
right?</SPAN></FONT></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Asterisk-Users
mailing list<BR><A
href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</A><BR><A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR>To
UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE></BODY></HTML>