<p class="MsoNormal">Hello,</p>
<p class="MsoNormal">I am using OpenSIPS to register all the users and planning to use asterisk for Auto Attendant, Queues, Voicemail and Conference Bridge.</p>
<p class="MsoNormal">I have a scenario where the signaling does not happen properly:</p>
<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>1)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>A user from Opensips dials an extension 7000 which is an auto-attendant extension. The call is routed to asterisk to play the auto attendant messages like Welcome and Dial the extension of the party you wish to reach etc !!</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>2)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Whenever a user presses any 4 digit number, asterisk routes that call back to Openser to find if the user is available there.</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>3)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>In Opensips the preference for the user is set such that all call are supposed to go to voicemail which is handled by the same asterisk again; so a 0 is prefixed to the R-URI and sent back to asterisk by opensips. 0 is prefixed so that asterisk does not generate loop detected for the INVITE.</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>4)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>The call gets answered by asterisk but the 200 OK message keeps routing between asterisk and opensips and then asterisk times out with “<b>Maximum retries exceeded on transmission</b>” error.</p>

<p class="MsoNormal"> </p>
<p class="MsoNormal">Scenario:</p>
<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>1)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>User ----7000@sipproxy.com--------<span style="FONT-FAMILY: Wingdings">à</span> Opensips --------7000@asterisk.com-----<span style="FONT-FAMILY: Wingdings">à</span>Asterisk</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>2)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Asterisk ------200ok-----<span style="FONT-FAMILY: Wingdings">à</span> Opensips---200ok---<span style="FONT-FAMILY: Wingdings">à</span>User</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>3)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Asterisk waits for extension input and user presses 7010</p>
<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>4)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Asterisk------INVITE <a href="https://remote.novanet.net/owa/redir.aspx?C=31661696fae74c3a94f26b78ea106eae&amp;URL=mailto%3a7010%40sipproxy.com---------%253eOpensips">7010@sipproxy.com---------&gt;Opensips</a></p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>5)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Opensips checks the preference for user 7010 and needs to send this call to voicemail of 7010 which is handled again in asterisk.</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>6)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Opensips-----INVITE <a href="https://remote.novanet.net/owa/redir.aspx?C=31661696fae74c3a94f26b78ea106eae&amp;URL=mailto%3a07010%40asterisk.com------%253eAsterisk">07010@asterisk.com------&gt;Asterisk</a> (0 is added in the R-URI in order to avoid loop detected by asterisk)</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>7)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Asterisk plays minivm greet and gets ready for minivm record although no audio is heard by the user</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>8)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Asterisk--------200ok-----<span style="FONT-FAMILY: Wingdings">à</span>Opensips (Since the call to voicemail by Opensips is answered)</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>9)<span style="FONT: 7pt &#39;Times New Roman&#39;">      </span></span>Opensips-------200ok-----<span style="FONT-FAMILY: Wingdings">à</span>Asterisk (Since the call to 7010 by asterisk is answered)</p>

<p class="MsoListParagraph" style="TEXT-INDENT: -0.25in"><span>10)<span style="FONT: 7pt &#39;Times New Roman&#39;">   </span></span>Asterisk does not ACK the 200ok in step 9 and instead keeps sending the 200ok in step 8 until maximum retransmission is reached and then the call is hung up.</p>

<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">w/regards,</p>
<p class="MsoNormal"><span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: &#39;Gill Sans MT&#39;,&#39;sans-serif&#39;">Amit</span> </p>