<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 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 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 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 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='http://www.w3.org/2001/XMLSchema-instance'> <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 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 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 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><div></div><div id="divNeteaseMailCard"></div><br>At 2015-02-03 18:05:43, "Bogdan-Andrei Iancu" <<a 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 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>