<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1253">
  </head>
  <body>
    <font face="monospace">Thanks, let's move the discussion over there.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 9/19/23 11:47 AM, Kosmas Palios
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DBBPR05MB650643469FE9CB409E945761E9FAA@DBBPR05MB6506.eurprd05.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1253">
      <div>
        <div>
          <div dir="ltr">
            <div dir="ltr">of course, here it is </div>
            <div dir="ltr"><br>
            </div>
            <div dir="ltr"><a rel="noreferrer noopener"
                href="https://github.com/OpenSIPS/opensips/issues/3176"
                moz-do-not-send="true">https://github.com/OpenSIPS/opensips/issues/3176</a><br>
            </div>
            <div dir="ltr"><br>
            </div>
            <div dir="ltr">thank you </div>
            <div dir="ltr"><br>
            </div>
            <div dir="ltr"><br>
            </div>
          </div>
        </div>
        <div id="ms-outlook-mobile-signature">
          <div><br>
          </div>
          Sent from <a href="https://aka.ms/o0ukef"
            moz-do-not-send="true">Outlook for iOS</a></div>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b>
          Bogdan-Andrei Iancu <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a><br>
          <b>Sent:</b> Tuesday, September 19, 2023 11:42:03 AM<br>
          <b>To:</b> OpenSIPS users mailling list
          <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>; Kosmas Palios
          <a class="moz-txt-link-rfc2396E" href="mailto:kosmas.palios@athenarc.gr"><kosmas.palios@athenarc.gr></a>; Kosmas Palios
          <a class="moz-txt-link-rfc2396E" href="mailto:kosmas.palios@gmail.com"><kosmas.palios@gmail.com></a><br>
          <b>Subject:</b> Re: [OpenSIPS-Users] Call center issue in 3.1;
          call center not working after migration to 3.2</font>
        <div> </div>
      </div>
      <div>
        <table style="border:0; display:table; width:100%;
          table-layout:fixed; border-collapse:seperate; float:none"
          width="100%" cellspacing="0" cellpadding="0" border="0"
          align="left">
          <tbody style="display:block">
            <tr>
              <td cellpadding="7px 2px 7px 2px" style="padding:7px 2px
                7px 2px; background-color:#A6A6A6" width="1px"
                valign="middle" bgcolor="#A6A6A6">
                <br>
              </td>
              <td cellpadding="7px 5px 7px 15px" color="#212121"
                style="width:100%; background-color:#EAEAEA; padding:7px
                5px 7px 15px; font-family:wf_segoe-ui_normal,Segoe
                UI,Segoe WP,Tahoma,Arial,sans-serif; font-size:12px;
                font-weight:normal; color:#212121; text-align:left;
                word-wrap:break-word" width="100%" valign="middle"
                bgcolor="#EAEAEA">
                <div>Δεν λαμβάνετε συχνά μηνύματα ηλεκτρονικού
                  ταχυδρομείου από <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>.
                  <a
                    href="https://aka.ms/LearnAboutSenderIdentification"
                    moz-do-not-send="true">Μάθετε γιατί είναι σημαντικό</a></div>
              </td>
              <td cellpadding="7px 5px 7px 5px" color="#212121"
                style="width:75px; background-color:#EAEAEA; padding:7px
                5px 7px 5px; font-family:wf_segoe-ui_normal,Segoe
                UI,Segoe WP,Tahoma,Arial,sans-serif; font-size:12px;
                font-weight:normal; color:#212121; text-align:left;
                word-wrap:break-word" width="75px" valign="middle"
                bgcolor="#EAEAEA" align="left">
                <br>
              </td>
            </tr>
          </tbody>
        </table>
        <div><font face="monospace">For the second issue, could you
            point the GH ticket?<br>
            <br>
            Regards,<br>
          </font>
          <pre class="x_moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="x_moz-txt-link-freetext" href="https://www.opensips-solutions.com" moz-do-not-send="true">https://www.opensips-solutions.com</a>
  <a class="x_moz-txt-link-freetext" href="https://www.siphub.com" moz-do-not-send="true">https://www.siphub.com</a></pre>
          <div class="x_moz-cite-prefix">On 9/19/23 11:35 AM, Kosmas
            Palios wrote:<br>
          </div>
          <blockquote type="cite">
            <div>
              <div>
                <div dir="ltr">
                  <div>This is indeed the solution, as we figured out by
                    ourselves and as documented in the tm
                    documentation! </div>
                  <div dir="ltr"><br>
                  </div>
                  <div dir="ltr">Thank you for your kind reply here, as
                    well as at the issue I posted sometime ago i github
                    (my username is kosniaz). </div>
                  <div dir="ltr"><br>
                  </div>
                  <div dir="ltr">Any input to the second issue (raised
                    on github as well about 10 days ago) would be <span>greatly
                      appreciated! </span></div>
                  <div dir="ltr"><br>
                  </div>
                  <div dir="ltr">Thank you very much one more time for
                    your insights.</div>
                  <div dir="ltr"><br>
                  </div>
                  <div dir="ltr">H<span>ave a great day!</span></div>
                  <div dir="ltr"><span><br>
                    </span></div>
                  <div dir="ltr"><span>Kosmas </span></div>
                </div>
              </div>
              <div id="x_ms-outlook-mobile-signature">
                <div><br>
                </div>
                Sent from <a href="https://aka.ms/o0ukef"
                  moz-do-not-send="true">Outlook for iOS</a></div>
            </div>
            <hr tabindex="-1" style="display:inline-block; width:98%">
            <div id="x_divRplyFwdMsg" dir="ltr"><font
                style="font-size:11pt" face="Calibri, sans-serif"
                color="#000000"><b>From:</b> Users
                <a class="x_moz-txt-link-rfc2396E"
                  href="mailto:users-bounces@lists.opensips.org"
                  moz-do-not-send="true">
                  <users-bounces@lists.opensips.org></a> on behalf
                of Bogdan-Andrei Iancu <a
                  class="x_moz-txt-link-rfc2396E"
                  href="mailto:bogdan@opensips.org"
                  moz-do-not-send="true">
                  <bogdan@opensips.org></a><br>
                <b>Sent:</b> Tuesday, September 19, 2023 11:20:23 AM<br>
                <b>To:</b> OpenSIPS users mailling list <a
                  class="x_moz-txt-link-rfc2396E"
                  href="mailto:users@lists.opensips.org"
                  moz-do-not-send="true">
                  <users@lists.opensips.org></a>; Kosmas Palios <a
                  class="x_moz-txt-link-rfc2396E"
                  href="mailto:kosmas.palios@gmail.com"
                  moz-do-not-send="true">
                  <kosmas.palios@gmail.com></a><br>
                <b>Subject:</b> Re: [OpenSIPS-Users] Call center issue
                in 3.1; call center not working after migration to 3.2</font>
              <div> </div>
            </div>
            <div>
              <table style="border:0; display:table; width:100%;
                table-layout:fixed; border-collapse:seperate;
                float:none" width="100%" cellspacing="0" cellpadding="0"
                border="0" align="left">
                <tbody style="display:block">
                  <tr>
                    <td cellpadding="7px 2px 7px 2px" style="padding:7px
                      2px 7px 2px; background-color:#A6A6A6" width="1px"
                      valign="middle" bgcolor="#A6A6A6">
                      <br>
                    </td>
                    <td cellpadding="7px 5px 7px 15px" color="#212121"
                      style="width:100%; background-color:#EAEAEA;
                      padding:7px 5px 7px 15px;
                      font-family:wf_segoe-ui_normal,Segoe UI,Segoe
                      WP,Tahoma,Arial,sans-serif; font-size:12px;
                      font-weight:normal; color:#212121;
                      text-align:left; word-wrap:break-word"
                      width="100%" valign="middle" bgcolor="#EAEAEA">
                      <div>Δεν λαμβάνετε συχνά μηνύματα ηλεκτρονικού
                        ταχυδρομείου από <a
                          class="x_moz-txt-link-abbreviated"
                          href="mailto:bogdan@opensips.org"
                          moz-do-not-send="true">
                          bogdan@opensips.org</a>. <a
                          href="https://aka.ms/LearnAboutSenderIdentification"
                          moz-do-not-send="true">
                          Μάθετε γιατί είναι σημαντικό</a></div>
                    </td>
                    <td cellpadding="7px 5px 7px 5px" color="#212121"
                      style="width:75px; background-color:#EAEAEA;
                      padding:7px 5px 7px 5px;
                      font-family:wf_segoe-ui_normal,Segoe UI,Segoe
                      WP,Tahoma,Arial,sans-serif; font-size:12px;
                      font-weight:normal; color:#212121;
                      text-align:left; word-wrap:break-word"
                      width="75px" valign="middle" bgcolor="#EAEAEA"
                      align="left">
                      <br>
                    </td>
                  </tr>
                </tbody>
              </table>
              <div><font face="monospace">Hi Kosmas,<br>
                  <br>
                  For Issue 1, try placing a t_newtran(); before calling
                  the cc function in the script - this will prevent the
                  issues due to retransmissions.<br>
                  <br>
                  Regards,<br>
                </font>
                <pre class="x_x_moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="x_x_moz-txt-link-freetext" href="https://www.opensips-solutions.com" moz-do-not-send="true">https://www.opensips-solutions.com</a>
  <a class="x_x_moz-txt-link-freetext" href="https://www.siphub.com" moz-do-not-send="true">https://www.siphub.com</a></pre>
                <div class="x_x_moz-cite-prefix">On 7/4/23 1:15 PM,
                  Kosmas Palios wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <p dir="ltr"
                      id="x_x_gmail-docs-internal-guid-24bcbef2-7fff-0d92-e619-18932c434553"
                      style="line-height:1.38; margin-top:0pt;
                      margin-bottom:0pt">
                      <span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">Hello community,</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">Our
 team has managed to setup a SIP Trunk to forward calls to a number of SIP clients, in opensips 3.1.16. We are using the call center module, and it works fine for low traffic. We would like to ask two separate but related questions.</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">ISSUE
 1</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">We
 are using the call center module to forward calls to 100 SIP agents, and it works well if traffic is relatively low (about 25 incoming calls per minute). However, when traffic is higher, i.e. up to 60 incoming calls per minute, we see calls getting rejected
 because of cc_handle_call() failing with error message:</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-left:30pt; margin-top:0pt;
                      margin-bottom:0pt">
                      <span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">DBG:b2b_entities:server_new: It is
 a retransmission, drop</span></p>
                    <p dir="ltr" style="line-height:1.38;
                      margin-left:30pt; margin-top:0pt;
                      margin-bottom:0pt">
                      <span style="font-size:11pt; font-family:"Roboto Mono",monospace; color:rgb(24,128,56); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">ERROR:b2b_logic:b2b_process_scenario_init:
 failed to create new b2b server instance</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">Unfortunately,
 every time this happens, an agent's status gets stuck to "incall" forever, even though no cc_calls row includes him. So that agent is lost.</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">We
 are running in UDP mode, using 6 UDP workers. I’m attaching the configuration file as opensips_3_1_16.cfg</span></p>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">I
 can share the whole setup if needed.</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">ISSUE
 2</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">We
 decided to migrate to 3.2 after seeing the bugfix to b2b_clients leak. When we got to migrating the call center, we read this blogpost:
<a href="https://blog.opensips.org/2021/01/06/the-script-driven-sip-b2bua/" moz-do-not-send="true">https://blog.opensips.org/2021/01/06/the-script-driven-sip-b2bua/</a></span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-left:30pt; margin-top:0pt;
                      margin-bottom:0pt">
                      <span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">" When comes to the modules using the
</span><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:700; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">b2b_logic</span><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">
 API (providing features on top of the B2B engine), the only affected one is the </span>
                      <span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:700; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">call_center</span><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">
 module. The change is minor – the xml file controlling the call queuing logic was removed, as not needed any more. Otherwise, in terms of usage, it is exactly the same."</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">However,
 when we removed the lines:</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">modparam("b2b_logic_xml","script_scenario",
 "/etc/opensips/scenario_callcenter.xml")</span></p>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">modparam("call_center",
 "b2b_scenario", "call center")   </span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">the
 call center started behaving weird: it created another invite to the sip trunk, instead of creating the invite to the agent (the call id was good, but the to uri was wrong). I can give detailed logs on this, but I wouldn't want to make this email any bigger
 than it already is. I’m also attaching the configuration file as opensips_3_2_13.cfg</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">To
 sum up, our questions are:</span></p>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">1.
 Any ideas on what the problem is with creating a new server instance for high numbers of calls?</span></p>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">2.
 What's the recommended way to migrate the call center to version 3.2 ? Can we find an example script-driven call center somewhere?</span></p>
                    <div><br>
                    </div>
                    <div>Thank you in advance for your help!</div>
                    <div><br>
                    </div>
                    <div>Best regards, <br>
                    </div>
                    <div><br>
                    </div>
                    <div>Kosmas<br>
                    </div>
                    <br>
                    <br>
                    <p dir="ltr" style="line-height:1.38;
                      margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap">P.S.:
 about our team: we are a small team from Athens, Greece integrating voice assistants on various platforms. Unfortunately we missed the latest Opensips summit held last September.</span></p>
                    <br>
                  </div>
                  <br>
                  <fieldset class="x_x_mimeAttachmentHeader"></fieldset>
                  <pre class="x_x_moz-quote-pre">_______________________________________________
Users mailing list
<a class="x_x_moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="x_x_moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                </blockquote>
                <br>
              </div>
            </div>
            <br>
            <fieldset class="x_mimeAttachmentHeader"></fieldset>
            <pre class="x_moz-quote-pre">_______________________________________________
Users mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="x_moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>