<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Tin,<br>
      <br>
      Once again, can you post the full REGISTER request here ? are you
      sure that REGISTER do advertise "MESSAGE" in the Allow header <br>
      <br>
      Also , you could enable full debug for the m_dump() function:<br>
          set_debug(4);<br>
          m_dump();<br>
          set_debug();<br>
      <br>
      In this case, you may get a clue why the function does not send
      out the stored messages.<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></pre>
      On 03.02.2015 03:05, tin wrote:<br>
    </div>
    <blockquote
      cite="mid:4b37cf82.19af.14b4cf8203a.Coremail.centos168@126.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div>Dear Bogdan, </div>
        <div>         Thanks for all your reply and kindly help. <span
            style="font-size: 14px; line-height: 1.7;">I </span>definitely <span
            style="font-size: 14px; line-height: 1.7;">saw the record in
            DB. here are the records on my DB:</span></div>
        <div>
          <blockquote
            cite="mid:36b00567.17108.14b49a37c5b.Coremail.centos168@126.com"
            type="cite">
            <div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">mysql&gt; select * from silo where ctype =
                  'text/plain';</span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">+------+-------------------------+-------------------------+----------+-----------------+------------+------------+----------+------------+-------+</span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| id   | src_addr                | dst_addr    
                             | username | domain          | inc_time   |
                  exp_time   | snd_time | ctype      | body  |</span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">+------+-------------------------+-------------------------+----------+-----------------+------------+------------+----------+------------+-------+</span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3659 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:008@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:008@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422859611 | 1422895611 |        0 |
                  text/plain | coi   | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3667 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:008@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:008@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422860496 | 1423119696 |        0 |
                  text/plain | ggg   | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3669 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:008@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:008@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422860514 | 1423119714 |        0 |
                  text/plain | qqq   | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3671 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:008@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:008@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422860599 | 1423119799 |        0 |
                  text/plain | bbbbb | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3719 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:003@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:003@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422868318 | 1423127518 |        0 |
                  text/plain | 456   | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3718 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:003@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:003@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422868210 | 1423127410 |        0 |
                  text/plain | 123   | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="color: rgb(128, 128,
                  128);">| 3717 | </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:003@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:003@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214" style="color:
                  rgb(128, 128, 128); text-decoration: underline;"><span
                    style="color: rgb(128, 128, 128);">sip:010@118.193.154.214</span></a><span
                  style="color: rgb(128, 128, 128);"> | 010      |
                  118.193.154.214 | 1422867734 | 1423126934 |        0 |
                  text/plain | 999   | </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><br>
                <br>
                The username is : 010 <br>
                Domain is : <span style="font-size: 14px; line-height:
                  1.7;"> 118.193.154.214 <br>
                  They match the AOR of the user that register later. </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="font-size: 14px;
                  line-height: 1.7;"><br>
                </span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="font-size: 14px;
                  line-height: 1.7;"><b>Here is how i test offline
                    message:</b></span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="font-size: 14px;
                  line-height: 1.7;">The user of  </span><a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:008@118.193.154.214"
                  style="font-size: 14px; line-height: 1.7; color:
                  rgb(19, 129, 68);">sip:008@118.193.154.214</a> is
                online, And another user of <a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214"
                  style="font-size: 14px; line-height: 1.7; color:
                  rgb(19, 129, 68);">sip:010@118.193.154.214</a> is
                offline, When the user of <span style="font-size: 14px;
                  line-height: 1.7;"> </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:008@118.193.154.214"
                  style="font-size: 14px; line-height: 1.7; color:
                  rgb(19, 129, 68);">sip:008@118.193.154.214</a> is
                sending message to another user of <a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214"
                  style="font-size: 14px; line-height: 1.7; color:
                  rgb(19, 129, 68);">sip:010@118.193.154.214</a>, the
                message is saved to DB and not reached to destination
                since another user of <span style="font-size: 14px;
                  line-height: 1.7;"> </span><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:sip:010@118.193.154.214"
                  style="font-size: 14px; line-height: 1.7; color:
                  rgb(19, 129, 68);">sip:010@118.193.154.214</a> is
                offline.<span style="font-size: 14px; line-height: 1.7;"> The
                  records for offline messages are saved to DB  as
                  above.</span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="font-size: 14px;
                  line-height: 1.7;"> I could not found anything wrong
                  with records, could you please help me to double check
                  ? appreciate!!!</span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><br>
              </div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><b>The problem that i am facing now:</b></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;">The problem i am facing is that
                record is saved successfully to DB but not offline
                message shown up on linphone android app when offline
                user goes back to online. this issue has already cost us
                a lot of time but not good news, i <span
                  style="font-size: 14px; line-height: 1.7;">appreciate
                  all your help so much,your help gives us hope.<br>
                  The function m_dump() has already be added on my
                  opensips.cfg script, and the following log for success
                  is received. </span><b style="font-size: 14px;
                  line-height: 1.7;"><span style="font-size: 12pt;
                    font-family: Helvetica, sans-serif;" lang="EN-US"> <br>
                  </span></b><span style="font-size: 13px; color:
                  rgb(128, 128, 128);"><b style="font-size: 14px;
                    line-height: 1.7;"><span style="font-size: 13px;
                      font-family: Helvetica, sans-serif;" lang="EN-US">log("MSILO:
                      offline messages dumped - if they were\n"); </span></b></span><span
                  style="font-size: 13px;"><b style="font-size: 14px;
                    line-height: 1.7;"><span style="font-family:
                      Helvetica, sans-serif;" lang="EN-US"> </span></b><span
                    style="line-height: 1.7;"> </span></span></div>
              <div style="font-family: Arial; font-size: 14px;
                line-height: 1.7;"><span style="font-size: 13px;"><span
                    style="line-height: 1.7;"><br>
                  </span></span></div>
              <div><span style="font-family: Arial; font-size:
                  12.727272033691406px; line-height:
                  20.09090805053711px;"><b>my opensips.cfg script<br>
                  </b>The following is my full opensips.cfg scrip, i
                  hope it might help. could you please help me to double
                  check the script if anything wrong? I really could not
                  find out the reason why offline message is not sending
                  from DB to android app when user go back to online. By
                  the way, this script can be run </span><span
                  style="font-size: 12.727272033691406px; line-height:
                  20.09090805053711px;">successfully</span><span
                  style="font-family: Arial; font-size:
                  12.727272033691406px; line-height:
                  20.09090805053711px;">  on my opensips v1.11 and has
                  no error. <br>
                  <br>
                </span></div>
            </div>
          </blockquote>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>