<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Daniel,<br>
    <br>
    Are you sure you configured a proper SIP URI as "message_queue" in
    the flow description ? My impression is you have an empty string
    there - and OpenSIPS is trying to put the call on the queue (as
    there is no agent), but the SIP URI is not valid.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
    <div class="moz-cite-prefix">On 08/29/2018 10:26 PM, Daniel Zanutti
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN0jgiMkRkHvhVJwwViU4HRRZb3dzAER4P5PniUEMscCTwLp+w@mail.gmail.com">
      <div dir="ltr">Got some more info.
        <div><br>
        </div>
        <div><b>This is the first call that worked fine:</b></div>
        ......<br>
        <div><br>
        </div>
        <div><b>This is the second call that had the problem:</b></div>
        <div>.....<br>
          <div>Aug 29 16:04:38 plat5 /sbin/opensips[24890]:
            DBG:call_center:cc_call_state_machine: selecting QUEUE</div>
          <div>Aug 29 16:04:38 plat5 /sbin/opensips[24890]:
            DBG:call_center:cc_queue_push_call:  QUEUE - adding call
            0x7fd8510524a8</div>
          <div>Aug 29 16:04:38 plat5 /sbin/opensips[24890]:
            DBG:call_center:cc_queue_push_call: adding call on pos 0
            (already 1 calls), l=(nil) h=(nil)</div>
          <div>Aug 29 16:04:38 plat5 /sbin/opensips[24890]:
            DBG:call_center:w_handle_call: new destination for
            call(0x7fd8510524a8) is  (state=2)</div>
        </div>
        .....<br>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Mon, Aug 27, 2018 at 6:15 PM Daniel Zanutti
          <<a href="mailto:daniel.zanutti@gmail.com"
            moz-do-not-send="true">daniel.zanutti@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">Trying to configure the call center modules,
            but found a problem when there is no agents available.
            <div><br>
            </div>
            <div>If there is 1 agent available, call is sent to him with
              no problem:</div>
            <div><br>
            </div>
            <div>
              <div>Aug 27 18:11:00 plat5 /sbin/opensips[23575]: Recebida
                asterisk - Tentando entrar na fila fila-1</div>
              <div>Aug 27 18:11:00 plat5 /sbin/opensips[23575]: Entrou
                na fila com sucesso (fila-1)!</div>
              <div>Aug 27 18:11:01 plat5 /sbin/opensips[23569]: incoming
                reply</div>
            </div>
            <div><br>
            </div>
            <div>But when there is no agent available, opensips refuses:</div>
            <div>
              <div>Aug 27 18:11:07 plat5 /sbin/opensips[23569]: Recebida
                asterisk - Tentando entrar na fila fila-1</div>
              <div>Aug 27 18:11:07 plat5 /sbin/opensips[23569]:
                ERROR:b2b_logic:b2b_process_scenario_init: Failed to get
                the value for the b2b client ruri</div>
              <div>Aug 27 18:11:07 plat5 /sbin/opensips[23569]:
                ERROR:call_center:set_call_leg: failed to init new b2bua
                call (empty ID received)</div>
              <div>Aug 27 18:11:07 plat5 /sbin/opensips[23569]:
                ERROR:call_center:w_handle_call: failed to set new
                destination for call</div>
              <div>Aug 27 18:11:07 plat5 /sbin/opensips[23569]: errnum:
                -1</div>
            </div>
            <div><br>
            </div>
            <div>Error -1 means flowID is invalid, but I sent the same
              value on both calls.</div>
            <div><br>
            </div>
            <div>This is the call: </div>
            <div><br>
            </div>
            <div>cc_handle_call("$rU")<br>
            </div>
            <div><br>
            </div>
            <div>I'm using Opensips 2.4.2 with Debian 8.11.</div>
            <div><br>
            </div>
            <div>Am I missing something or found a bug?</div>
            <div><br>
            </div>
            <div>Thanks</div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>