<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Doesn't look like a good init :(.<br>
      <br>
      Check for the logs from a process listed (in ps) as `SMS receiver`
      - this is the process handling the modems. Try starting with DBG
      log level, so you can see what the opensips is trying to do with
      the modem.<br>
      <br>
      Regards,<br>
    </tt>
    <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>
OpenSIPS Summit, Amsterdam, May 2020
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2020Amsterdam/">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
OpenSIPS Bootcamp, Miami, March 2020
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_Bootcamp_2020/">https://opensips.org/training/OpenSIPS_Bootcamp_2020/</a>

</pre>
    <div class="moz-cite-prefix">On 1/4/20 5:02 PM,
      <a class="moz-txt-link-abbreviated" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a> wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:1578150167.2991.9@skillsearch.ca">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <div id="geary-body" dir="auto">
        <div>Hello Bogdan,</div>
        <div>On startup we get </div>
        <div><br>
        </div>
        <div>
          <div>Jan  4 12:01:06 sms /usr/sbin/opensips[20542]:
            <a class="moz-txt-link-freetext" href="INFO:sms:put_command">INFO:sms:put_command</a>: Modem is not clear to send</div>
          <div>Jan  4 12:01:06 sms /usr/sbin/opensips[20542]:
            <a class="moz-txt-link-freetext" href="INFO:sms:initmodem">INFO:sms:initmodem</a>: <a class="moz-txt-link-freetext" href="INFO:initmodem">INFO:initmodem</a>: Checking if Modem is
            registered to the network</div>
          <div>Jan  4 12:01:07 sms /usr/sbin/opensips[20542]:
            <a class="moz-txt-link-freetext" href="INFO:sms:put_command">INFO:sms:put_command</a>: Modem is not clear to send</div>
          <div>Jan  4 12:01:07 sms /usr/sbin/opensips[20542]:
            WARNING:sms:initmodem: Modems seems to try to reach the
            network! Let's wait a little bit</div>
        </div>
        <div><br>
        </div>
        <div>Is this modem locked ?</div>
        <div><br>
        </div>
        <div>volga629</div>
      </div>
      <div id="geary-quote" dir="auto"><br>
        On Sat, Jan 4, 2020 at 16:54, Bogdan-Andrei Iancu
        <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a> wrote:<br>
        <blockquote type="cite">
          <meta http-equiv="Content-Type" content="text/html;
            charset=windows-1252">
          <tt>Hi Volga,<br>
            <br>
            Wooow....using this ancient module....modem support - it is
            like dark ages :P..<br>
            <br>
            First of all, at OpenSIPS startup, is the modem successfully
            initialized ?<br>
            <br>
            <br>
            Best Regards,<br>
          </tt>
          <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" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2020Amsterdam/" moz-do-not-send="true">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
OpenSIPS Bootcamp, Miami, March 2020
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_Bootcamp_2020/" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_Bootcamp_2020/</a>

</pre>
          <div class="moz-cite-prefix">On 1/3/20 10:20 PM, volga629 via
            Users wrote:<br>
          </div>
          <blockquote type="cite"
            cite="mid:1578082845.2991.7@skillsearch.ca">
            <meta http-equiv="content-type" content="text/html;
              charset=windows-1252">
            <div id="geary-body" dir="auto">
              <div>Hello Everyone,</div>
              <div>I need help  identify issue with gsm modem connection
                in opensips. I tried send with external application and
                no problem everything works, but with opensips  get
                messages </div>
              <div><br>
              </div>
              <div>
                <div>Jan  3 15:09:38 sms /usr/sbin/opensips[16430]:
                  NOTICE:core:do_workers_auto_scaling: score 15/15 ->
                  ripping proc 23 from group 1 (with 16 procs),
                  estimated load -> 0</div>
                <div>Jan  3 15:09:38 sms /usr/sbin/opensips[16462]:
                  NOTICE:core:udp_process_graceful_terminate: process 23
                  received RPC to terminate from Main</div>
                <div>Jan  3 15:09:38 sms /usr/sbin/opensips[16462]: <a
                    class="moz-txt-link-freetext"
                    href="INFO:core:dynamic_process_final_exit"
                    moz-do-not-send="true">INFO:core:dynamic_process_final_exit</a>:
                  doing self termination</div>
                <div>Jan  3 15:09:39 sms /usr/sbin/opensips[16430]:
                  NOTICE:core:handle_sigs: process 23/16462 did selfexit
                  with status 0</div>
                <div>Jan  3 15:09:40 sms /usr/sbin/opensips[16430]:
                  NOTICE:core:do_workers_auto_scaling: score 15/15 ->
                  ripping proc 22 fr om group 1 (with 15 procs),
                  estimated load -> 0</div>
                <div>Jan  3 15:09:40 sms /usr/sbin/opensips[16461]:
                  NOTICE:core:udp_process_graceful_terminate: process 22
                  received RPC to terminate from Main</div>
                <div>Jan  3 15:09:40 sms /usr/sbin/opensips[16461]: <a
                    class="moz-txt-link-freetext"
                    href="INFO:core:dynamic_process_final_exit"
                    moz-do-not-send="true">INFO:core:dynamic_process_final_exit</a>:
                  doing self termination</div>
                <div>Jan  3 15:09:40 sms /usr/sbin/opensips[16440]: <a
                    class="moz-txt-link-freetext"
                    href="INFO:sms:put_command" moz-do-not-send="true">INFO:sms:put_command</a>:
                  Modem is not clear to send</div>
                <div>Jan  3 15:09:40 sms /usr/sbin/opensips[16440]:
                  NOTICE:sms:initmodem: NOTICE:initmodem: Waiting 2 sec.
                  before retrying</div>
              </div>
              <div>
                <div>Jan  3 15:18:55 sms /usr/sbin/opensips[17250]: <a
                    class="moz-txt-link-freetext"
                    href="INFO:sms:put_command" moz-do-not-send="true">INFO:sms:put_command</a>:
                  Modem is not clear to send</div>
                <div>Jan  3 15:18:55 sms /usr/sbin/opensips[17250]: <a
                    class="moz-txt-link-freetext"
                    href="INFO:sms:initmodem" moz-do-not-send="true">INFO:sms:initmodem</a>:
                  <a class="moz-txt-link-freetext" href="INFO:initmodem"
                    moz-do-not-send="true">INFO:initmodem</a>: Checking
                  if Modem is registered to the network</div>
                <div>Jan  3 15:18:56 sms /usr/sbin/opensips[17250]: <a
                    class="moz-txt-link-freetext"
                    href="INFO:sms:put_command" moz-do-not-send="true">INFO:sms:put_command</a>:
                  Modem is not clear to send</div>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>
                <div><b r=""><b>Messages log when modem is plugged</b> </b></div>
                <div><b r=""><br>
                  </b></div>
                <div>
                  <div><b r="">Jan  3 14:36:06 sms kernel: option1
                      ttyUSB0: GSM modem (1-port) converter now
                      disconnected from ttyUSB0</b></div>
                  <div><b r="">Jan  3 14:36:06 sms kernel: option
                      1-2:1.0: device disconnected</b></div>
                  <div><b r="">Jan  3 14:36:06 sms kernel: option1
                      ttyUSB1: GSM modem (1-port) converter now
                      disconnected from ttyUSB1</b></div>
                  <div><b r="">Jan  3 14:36:06 sms kernel: option
                      1-2:1.1: device disconnected</b></div>
                  <div><b r="">Jan  3 14:36:06 sms kernel: option1
                      ttyUSB2: GSM modem (1-port) converter now
                      disconnected from ttyUSB2</b></div>
                </div>
              </div>
              <div><b r=""><br>
                </b></div>
              <div><b r=""><br>
                </b></div>
              <div><b r="">Configuration </b></div>
              <div><b r=""><br>
                </b></div>
              <div>
                <div><b r="">[root@sms tmp]# lsusb</b></div>
                <div><b r="">Bus 001 Device 013: ID 19d2:0031 ZTE WCDMA
                    Technologies MSM MF110/MF627/MF636</b></div>
              </div>
              <div><b r=""><br>
                </b></div>
              <div><b r=""><br>
                </b></div>
              <div>
                <div><b r="">#### SMS</b></div>
                <div><b r="">loadmodule "sms.so"</b></div>
                <div><b r="">modparam("sms", "modems",
                    "ZTE[d=/dev/ttyUSB1;p=my sim pin;m=NEW;b=9600]")</b></div>
                <div><b r="">modparam("sms", "links", "ZTE[D1]")</b></div>
                <div><b r="">modparam("sms", "networks", "D1[m=10]")</b></div>
                <div><b r="">modparam("sms", "max_sms_parts", 12)</b></div>
                <div><b r="">modparam("sms", "sms_report_type", 2)</b></div>
              </div>
              <div><b r=""><br>
                </b></div>
              <div><b r=""><br>
                </b></div>
              <div><b r=""> what is not clear in configuration is what
                  need to be set if modem in Paraguay </b></div>
              <div>
                <h3 class="title" style="font-family: Helvetica, Arial;
                  font-variant-ligatures: normal; orphans: 2; widows:
                  2;"><b r="">1.1.2. Numbering Plan</b></h3>
              </div>
            </div>
            <b r=""> </b><br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="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>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>