<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1258"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <br>
    <br>
    On 10/26/10 11:39 AM, peter_green lion wrote:
    <blockquote cite="mid:SNT121-W32CEE3F87FD2935DF049ABC420@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      hi all,<br>
      i have configure SMS module and have some error. please help to
      fix it.<br>
      my configure in kamailio :<br>
      <br>
      modparam("sms", "modems",
      "nokia[d=/dev/ttyUSB0;p=0000;m=old;s=1;l=10;r=20]")<br>
      modparam("sms", "networks", "MOBIFONE[m=10]")<br>
      modparam("sms", "links", "nokia[MOBIFONE]")<br>
      <br>
      <br>
      if(method == "MESSAGE"){<br>
                      if(has_body("text/plain")){<br>
      <br>
      sms_send_msg_to_net("MOBIFONE");<br>
      <br>
      <br>
                      }<br>
      <br>
              }<br>
      <br>
      but i start kamailio, log show that:<br>
      <br>
      Oct 26 05:32:35 localhost /usr/local/sbin/kamailio[13594]: ERROR:
      sms [libsms_modem.c:282]: Modem is not registered to the network<br>
      Oct 26 05:32:35 localhost /usr/local/sbin/kamailio[13594]:
      WARNING: sms [libsms_getsms.c:256]: something happend with the
      modem -&gt; was reinit -&gt; let's retry<br>
      Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]:
      WARNING: sms [libsms_modem.c:356]: modem wants the PIN again!<br>
      Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]:
      WARNING: sms [libsms_modem.c:370]: re -init the modem!!<br>
      Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: INFO:
      sms [libsms_modem.c:221]: init modem nokia on /dev/ttyUSB0.<br>
      Oct 26 05:32:37 localhost /usr/local/sbin/kamailio[13594]: INFO:
      sms [libsms_modem.c:250]: Checking if Modem is registered to the
      network<br>
      Oct 26 05:32:38 localhost /usr/local/sbin/kamailio[13594]: NOTICE:
      sms [libsms_modem.c:275]: Waiting 2 sec. before retrying<br>
      Oct 26 05:33:09 localhost last message repeated 10 times<br>
      Oct 26 05:33:38 localhost last message repeated 9 times<br>
      Oct 26 05:33:40 localhost /usr/local/sbin/kamailio[13594]: ERROR:
      sms [libsms_modem.c:282]: Modem is not registered to the network<br>
      Oct 26 05:33:40 localhost /usr/local/sbin/kamailio[13594]:
      WARNING: sms [libsms_getsms.c:256]: something happend with the
      modem -&gt; was reinit -&gt; let's retry<br>
      Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]:
      WARNING: sms [libsms_modem.c:356]: modem wants the PIN again!<br>
      Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]:
      WARNING: sms [libsms_modem.c:370]: re -init the modem!!<br>
      Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: INFO:
      sms [libsms_modem.c:221]: init modem nokia on /dev/ttyUSB0.<br>
      Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: INFO:
      sms [libsms_modem.c:250]: Checking if Modem is registered to the
      network<br>
      Oct 26 05:33:42 localhost /usr/local/sbin/kamailio[13594]: NOTICE:
      sms [libsms_modem.c:275]: Waiting 2 sec. before retrying<br>
      <br>
      so i cannot send ok receive sms.<br>
      with contact :+84...@sipdomain<br>
      <br>
      my nokia phone :6020<br>
      i can send sms via nokia by gnokii.<br>
      please help or suggest to get it wok.<br>
    </blockquote>
    <br>
    First messages are related to the fact the modem is not initialized.
    So you have to check in the logs of modem's driver why is not
    connecting to the network.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>