<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C701BF.E7D6BDE0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Hello ,</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><span style='mso-spacerun:yes'>&nbsp; </span>I want to enable
recording for a few extensions. In <span class=SpellE><span class=GramE>sip.conf</span></span><span
class=GramE> <span style='mso-spacerun:yes'>&nbsp;</span>it</span> is defined
as <o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>record_out</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>=Always<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>record_in</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>=Always<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>under</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> the section
of <span class=SpellE>extension.but</span> it doesn&#8217;t work.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><span style='mso-spacerun:yes'>&nbsp;</span><span
style='mso-spacerun:yes'>&nbsp;</span>Extensions are defined in the <span
class=SpellE>extension_additional.conf</span> file like <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><br>
<span class=SpellE><span class=GramE>exten</span></span> =&gt;
10,1,Macro(exten-vm,10,10)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
10,hint,SIP/10<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
${VM_PREFIX}10,1,Macro(vm,10,DIRECTDIAL)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I can&#8217;t be sure how should I enable recording for this
extension because of the macros.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I think I should add something like <o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>=&gt; 10,1, <span
class=SpellE>record,caller:wav</span><span style='mso-spacerun:yes'>&nbsp;
</span># or can I use <span style='mso-spacerun:yes'>&nbsp;</span>speech instead
of caller.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Or<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Should I use <span class=GramE>Macro(</span><span
class=SpellE>systemrecording,dorecord</span>) and how can I use it ? <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Thanks ,</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>macros</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> are define
in the <span class=SpellE>extensions.conf</span> file as following <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[<span class=GramE>macro-<span class=SpellE>exten-vm</span></span>]<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
s,1,Macro(user-<span class=SpellE>callerid</span>)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Set</span>(FROMCONTEXT=<span class=SpellE>exten-vm</span>)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Set</span>(VMBOX=${ARG1})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Set</span>(EXTTOCALL=${ARG2})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Set</span>(CFUEXT=${DB(CFU/${EXTTOCALL})})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Set</span>(RT=${IF($[$[&quot;${VMBOX}&quot;!=&quot;<span
class=SpellE>novm</span>&quot;] | $[&quot;<span class=SpellE>foo</span>${CFUEXT}&quot;!=&quot;<span
class=SpellE>foo</span>&quot;]]?${RINGTIMER}:&quot;&quot;)})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Macro</span>(record-enable,${EXTTOCALL},IN)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,GotoIf</span>($[&quot;${CHANNEL:0:5}&quot; =
&quot;Local&quot;]?dolocaldial,1) ; if the channel is Local<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Macro</span>(dial,${RT},${DIAL_OPTIONS},${EXTTOCALL})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,GosubIf</span>($[$[&quot;${DIALSTATUS}&quot;=&quot;NOANSWER&quot;]
&amp; $[&quot;<span class=SpellE>foo</span>${CFUEXT}&quot;!=&quot;<span
class=SpellE>foo</span>&quot;]]?docfu,1) ; check for CFU in use on no answer<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,NoOp</span>(Voicemail is '${VMBOX}')<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,GotoIf</span>($[&quot;${VMBOX}&quot; = &quot;<span
class=SpellE>novm</span>&quot;]?s-${DIALSTATUS},1) ; no voicemail in use for
this extension<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,NoOp</span>(Sending to Voicemail box ${EXTTOCALL})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Macro</span>(<span class=SpellE>vm</span>,${VMBOX},${DIALSTATUS})<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>; Local channel should try to ring the phone only then come
back out<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>; <span class=GramE>i.e</span>. it's wrong for it to Answer
the call in any way (including Congestion<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>; and stop the initiating <span class=SpellE>dialplan</span>
from being returned to)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
dolocaldial,1,Macro(dial,,${DIAL_OPTIONS},${EXTTOCALL})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>dolocaldial,n,NoOp</span>(Returned to <span class=SpellE>dolocaldial</span>
with DIALSTATUS '${DIALSTATUS}')<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>; Try the Call Forward on No Answer / Unavailable number<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
docfu,1,Set(RTCFU=${IF($[&quot;${VMBOX}&quot;!=&quot;<span class=SpellE>novm</span>&quot;]?${RINGTIMER}:&quot;&quot;)})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>docfu,n,Dial</span>(Local/${CFUEXT}@from-internal/n,${RTCFU},${DIAL_OPTIONS})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>docfu,n,Return</span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>; Extensions with no Voicemail box reporting BUSY come here<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
s-BUSY,1,NoOp(Extension is reporting BUSY and not passing to Voicemail)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>BUSY,n,Busy</span>()<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>BUSY,n,Wait</span>(60)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>BUSY,n,Congestion</span>()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>; Anything but BUSY comes here<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
_s-.,1,Congestion()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[<span class=GramE>macro-<span class=SpellE>vm</span></span>]<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
s,1,Macro(user-<span class=SpellE>callerid</span>)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Set</span>(VMGAIN=${IF($[&quot;<span class=SpellE>foo</span>${VM_GAIN}&quot;!=&quot;<span
class=SpellE>foo</span>&quot;]?&quot;<span class=GramE>g(</span>${VM_GAIN})&quot;:&quot;&quot;)})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>s,n,Goto</span>(s-${ARG2},1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
s-BUSY,1,NoOp(BUSY voicemail)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>BUSY,n,Macro</span>(get-<span class=SpellE>vmcontext</span>,${ARG1})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>BUSY,n,Voicemail</span>(${ARG1}@${VMCONTEXT}|b${VMGAIN})<span
style='mso-spacerun:yes'>&nbsp;&nbsp; </span>; Voicemail Busy message<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>BUSY,n,Goto</span>(exit-${VMSTATUS},1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
s-DIRECTDIAL,1,NoOp(DIRECTDIAL voicemail)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>DIRECTDIAL,n,Macro</span>(get-<span class=SpellE>vmcontext</span>,${ARG1})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>DIRECTDIAL,n,Voicemail</span>(${ARG1}@${VMCONTEXT}|${VM_DDTYPE}${VMGAIN})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; s-<span
class=SpellE>DIRECTDIAL,n,Goto</span>(exit-${VMSTATUS},1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
_s-.,1,Macro(get-<span class=SpellE>vmcontext</span>,${ARG1})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; _s-.,<span
class=SpellE>n,Voicemail</span>(${ARG1}@${VMCONTEXT}|u${VMGAIN})<span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp; </span>; Voicemail
Unavailable message<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; _s-.,<span
class=SpellE>n,Goto</span>(exit-${VMSTATUS},1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
o,1,Background(one-moment-please)<span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>; 0 during <span
class=SpellE>vm</span> message will <span class=SpellE>hangup</span><o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>exten</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>o,n,GotoIf</span>($[&quot;<span class=SpellE>foo</span>${FROM_DID}&quot;
= &quot;<span class=SpellE>foo</span>&quot;]?from-pstn,s,1:from-pstn,${FROM_DID},1)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
a,1,Macro(get-<span class=SpellE>vmcontext</span>,${ARG1})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>a,n,VoiceMailMain</span>(${ARG1}@${VMCONTEXT})<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; <span
class=SpellE>a,n,Hangup</span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
exit-FAILED,1,Playback(<span class=SpellE>im-sorry&amp;an-error-has-occured</span>)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; exit-<span
class=SpellE>FAILED,n,Hangup</span>()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
exit-SUCCESS,1,Playback(goodbye)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; exit-<span
class=SpellE>SUCCESS,n,Hangup</span>()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
exit-USEREXIT,1,Playback(goodbye)<o:p></o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt; exit-<span
class=SpellE>USEREXIT,n,Hangup</span>()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>exten</span></font></span></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> =&gt;
t,1,Hangup()<o:p></o:p></span></font></p>

</div>

</body>

</html>