<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=utf-8">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="cid:filelist.xml@01CAE853.E05E81A0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DisplayBackgroundShape/>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Baskerville Old Face";
        panose-1:2 2 6 2 8 5 5 2 3 3;
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:3 0 0 0 1 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:right;
        mso-pagination:widow-orphan;
        direction:rtl;
        unicode-bidi:embed;
        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:12.0pt;
        mso-bidi-font-size:12.0pt;
        font-family:"Baskerville Old Face";
        mso-ascii-font-family:"Baskerville Old Face";
        mso-hansi-font-family:"Baskerville Old Face";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none;
        text-underline:none;
        text-decoration:none;
        text-line-through:none;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;
        mso-gutter-direction:rtl;}
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:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:36.0pt'>

<div class=Section1 dir=RTL>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>Hi all,<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>How can I implement
a full-featured Call-Waiting behavior on the Asterisk level (e.g. I don't want
to relay on end-equipment capabilities)?<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>I found it very
strange that such a basic feature is not built-in in Asterisk (and I've <span
class=SpellE>googled</span> a lot in search for this).<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>Here is what I
need:<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><span class=SpellE><font size=3
face="Baskerville Old Face"><span style='font-size:12.0pt;font-family:"Baskerville Old Face"'>SomeuserX</span></font></span><font
face="Baskerville Old Face"><span style='font-family:"Baskerville Old Face"'>
is calling <span class=SpellE>MyUserA</span>. They are on conversation
(assumption: voice is via the Asterisk)<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><span class=SpellE><font size=3
face="Baskerville Old Face"><span style='font-size:12.0pt;font-family:"Baskerville Old Face"'>SomeuserY</span></font></span><font
face="Baskerville Old Face"><span style='font-family:"Baskerville Old Face"'>
is calling <span class=SpellE>MyUserA</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><span class=SpellE><font size=3
face="Baskerville Old Face"><span style='font-size:12.0pt;font-family:"Baskerville Old Face"'>SomeuserY</span></font></span><font
face="Baskerville Old Face"><span style='font-family:"Baskerville Old Face"'> gets
a special ringing tone. Meaning -&gt; Asterisk opens voice channel towards <span
class=SpellE>SomeuserY</span> (progress with SDP) and plays <span class=SpellE>SpecialRingBack.wav/gsm</span>
etc.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><span class=SpellE><font size=3
face="Baskerville Old Face"><span style='font-size:12.0pt;font-family:"Baskerville Old Face"'>MyUserA</span></font></span><font
face="Baskerville Old Face"><span style='font-family:"Baskerville Old Face"'>
Gets voice notification (e.g. beep-beep) during his call to <span class=SpellE>SomeuserX</span>.
Meaning -&gt; Asterisk barge-in the <span class=SpellE>rtp</span> stream and
play the file <span class=SpellE>beepbeep.wav/gsm</span> on the <span
class=SpellE>MyUserA</span> channel. This is done periodically for as long as <span
class=SpellE>SomeuserY</span> is waiting to be answered (i.e. doesn't hang-up).<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>Asterisk is
monitoring the state of the call <span class=SpellE>SomeuserX</span> &lt;-&gt; <span
class=SpellE>MyUserA</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>If <span
class=SpellE>MyUserA</span> will signal (e.g. hook-flash or some digit
sequence) that he wants to answer the 2<sup>nd</sup> call then Asterisk will
put on hold <span class=SpellE>SomeuserX</span> and bridge <span class=SpellE>SomeuserY</span>
to <span class=SpellE>MyUserA</span> with the option for <span class=SpellE>MyUserA</span>
to toggle between the two channels.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>If the conversation
<span class=SpellE>SomeuserX</span> with <span class=SpellE>MyUserA</span> is
terminated Asterisk will INVITE <span class=SpellE>MyUserA</span> and when
picked up will bridge <span class=SpellE>SomeuserY</span> with <span
class=SpellE>MyUserA</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>I hope there is a
solution for that…<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>I tried using
DEVICE_STATE for this purpose however I keep getting status NOT_INUSE even if the
extension IS in use (I'll open a different thread on this issue if needed).<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'>Thanks in advance
for any ideas provided,<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><span class=SpellE><font size=3
face="Baskerville Old Face"><span style='font-size:12.0pt;font-family:"Baskerville Old Face"'>Harel</span></font></span><font
face="Baskerville Old Face"><span style='font-family:"Baskerville Old Face"'><o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-top:6.0pt;text-align:left;direction:
ltr;unicode-bidi:embed'><font size=3 face="Baskerville Old Face"><span
style='font-size:12.0pt;font-family:"Baskerville Old Face"'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>