<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Tin,<br>
<br>
I see these logs :<br>
</tt><tt>DBG:msilo:m_dump: message[0] mid=4836 already
sent. <br>
<br>
The module keeps an in-memory list with the messages which were
already sent out. It seems OpenSIPS did send the messages out,
at some time before this attempt.<br>
<br>
Do a fresh restart of opensips (to clear the memory list) and
grab the logs for the first REGISTER.<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="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 04.02.2015 07:47, tin wrote:<br>
</div>
<blockquote
cite="mid:63e5ed8a.1acd0.14b53211d05.Coremail.centos168@126.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div>Hi,<span style="font-family: arial; white-space:
pre-wrap; line-height: 1.7;">Bogdan:</span></div>
<div> the e-mail is too big ,so i have to send you
two,this is two.</div>
<div> 2)this code add to the script:</div>
<div>
<div> xlog("m_dump is starting!!");</div>
<div> setdebug(4);</div>
<div> m_dump();</div>
<div> setdebug();</div>
<div> xlog("m_dump was end!!");</div>
</div>
<div><br>
</div>
<div>And the user 003 was didn't receive the offline
message;another i should see the log like below:</div>
<div><br>
</div>
<div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
Register ok :sip:<a moz-do-not-send="true"
href="mailto:003@118.193.154.214">003@118.193.154.214</a>
</div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
m_dump is starting!!</div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:parse_headers: flags=8000 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:m_dump: user <sip:<a moz-do-not-send="true"
href="mailto:003@118.193.154.214">003@118.193.154.214</a>>
online - expires=3600 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:parse_headers: flags=ffffffffffffffff </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:parse_headers: flags=ffffffffffffffff </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:check_message_support: Allow message: 0 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:parse_headers: flags=80 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:get_hdr_field: found end of header </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:mysql_raise_event: MySQL status has not
changed: connected </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_new_result: allocate 48 bytes for result set
at 0x2ac45c768a80 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: 6 columns returned
from the query </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_allocate_columns: allocate 168 bytes for
result columns at 0x2ac45c768148 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x2ac45c768178)[0]=[id] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: use DB_INT result
type </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x2ac45c768188)[1]=[src_addr] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: use DB_STRING result
type </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x2ac45c768198)[2]=[dst_addr] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: use DB_STRING result
type </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x2ac45c7681a8)[3]=[body] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: use DB_BLOB result
type </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x2ac45c7681b8)[4]=[ctype] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: use DB_STRING result
type </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x2ac45c7681c8)[5]=[inc_time] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_get_columns: use DB_INT result
type </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_allocate_rows: allocate 416 bytes for result
rows and values at 0x2ac45c7665d8 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting INT [4836] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting STRING [sip:<a
moz-do-not-send="true"
href="mailto:010@118.193.154.214">010@118.193.154.214</a>] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting STRING [sip:<a
moz-do-not-send="true"
href="mailto:003@118.193.154.214">003@118.193.154.214</a>] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting BLOB [<?xml
version='1.0' encoding='UTF-8'?> <isComposing
xmlns='urn:ietf:params:xml:ns:im-iscomposing'
xmlns:xsi='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'>
<state>active</state>
<contenttype>text/plain</contenttype>
<refresh>60</refresh> </isComposing>] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting STRING
[application/im-iscomposing+xml] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting INT
[1423019838] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting INT [4838] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting STRING [sip:<a
moz-do-not-send="true"
href="mailto:010@118.193.154.214">010@118.193.154.214</a>] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting STRING [sip:<a
moz-do-not-send="true"
href="mailto:003@118.193.154.214">003@118.193.154.214</a>] </div>
<div> ] 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting BLOB [hi,i am
010!</div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting STRING
[text/plain] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:db_mysql:db_mysql_str2val: converting INT
[1423019849] </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:m_dump: dumping [2] messages for <sip:<a
moz-do-not-send="true"
href="mailto:003@118.193.154.214">003@118.193.154.214</a>>!!! </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:msg_list_check_msg: checking msgid=4836 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:msg_list_check_msg: msg already in sent list. </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:m_dump: message[0] mid=4836 already sent. </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:msg_list_check_msg: checking msgid=4838 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:msg_list_check_msg: msg already in sent list. </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:msilo:m_dump: message[1] mid=4838 already sent. </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_free_columns: freeing result columns at
0x2ac45c768148 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_free_rows: freeing 2 rows </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_free_row: freeing row values at
0x2ac45c7665f8 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_free_row: freeing row values at
0x2ac45c7666b8 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_free_rows: freeing rows at 0x2ac45c7665d8 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
DBG:core:db_free_result: freeing result set at
0x2ac45c768a80 </div>
<div>Feb 4 11:38:23 mySer /usr/sbin/opensips[14888]:
m_dump was end!!</div>
</div>
<br>
<div>thanks a lot! i need your help!</div>
<div><br>
</div>
<br>
At 2015-02-03 18:05:43, "Bogdan-Andrei Iancu" <<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>
wrote:<br>
<blockquote id="isReplyContent" style="PADDING-LEFT: 1ex;
MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</div>
</blockquote>
</div>
</div>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span></div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span>
</blockquote>
<br>
</body>
</html>