Hi,Bogdan:
I test again ,the head like below:

REGISTER sip:118.193.154.214 SIP/2.0
Via: SIP/2.0/TCP 10.0.2.10:1024;rport;branch=z9hG4bK189760539
From: <sip:[email protected]>;tag=1892155303
To: <sip:[email protected]>
Call-ID: 1489433135
CSeq: 1 REGISTER
Contact: 
<sip:[email protected]:1024;transport=tcp;app-id=622464153529;pn-type=google;pn-


tok=APA91bFCjG6AELwpGdxAbtaQkAGW93EsJcja4fnXi66hpi3RWPkq4K14tup7hrNEMEr2hVuCwkK6TewwD5_GpMyN0wvOXvlzbB7eNva536mCC-


DUzwsyBl2zOxlp07U53DOmuTlqZv7U;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg-


snd=msg.caf;line=eb8ee2c9efe04cc>
Max-Forwards: 70
User-Agent: LinphoneAndroid/2.0.2 (eXosip2/3.6.0)
Expires: 3600
Content-Length: 0




REGISTER sip:118.193.154.214 SIP/2.0
Via: SIP/2.0/TCP 10.0.2.10:1024;rport;branch=z9hG4bK1625593069
From: <sip:[email protected]>;tag=1892155303
To: <sip:[email protected]>
Call-ID: 1489433135
CSeq: 2 REGISTER
Contact: 
<sip:[email protected]:1024;transport=tcp;app-id=622464153529;pn-type=google;pn-


tok=APA91bFCjG6AELwpGdxAbtaQkAGW93EsJcja4fnXi66hpi3RWPkq4K14tup7hrNEMEr2hVuCwkK6TewwD5_GpMyN0wvOXvlzbB7eNva536mCC-


DUzwsyBl2zOxlp07U53DOmuTlqZv7U;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg-


snd=msg.caf;line=eb8ee2c9efe04cc>
Authorization: Digest username="003", realm="118.193.154.214", 


nonce="54d1b3a900000087b0d1245da49b53e193368d0b76f4358c", 
uri="sip:118.193.154.214", 


response="9557d32405a7991c33735aff9d54fcae", algorithm=MD5
Max-Forwards: 70
User-Agent: LinphoneAndroid/2.0.2 (eXosip2/3.6.0)
Expires: 3600
Content-Length: 0






SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 
10.0.2.10:1024;received=59.36.45.241;rport=1273;branch=z9hG4bK1505113328
From: <sip:[email protected]>;tag=1892155303
To: <sip:[email protected]>;tag=5c2831c51ae0c72390d6fc905fc065f7.c43f
Call-ID: 1489433135
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="118.193.154.214", 
nonce="54d1b3aa00000089f875fca1bb2d1287147d37c160ac1921"
Server: OpenSIPS (1.11.3-notls (x86_64/linux))
Content-Length: 0




SIP/2.0 200 OK
Via: SIP/2.0/TCP 
10.0.2.10:1024;received=59.36.45.241;rport=1273;branch=z9hG4bK1183991583
From: <sip:[email protected]>;tag=1892155303
To: <sip:[email protected]>;tag=5c2831c51ae0c72390d6fc905fc065f7.cae6
Call-ID: 1489433135
CSeq: 4 REGISTER
Contact: 
<sip:[email protected]:1273;transport=tcp;app-id=622464153529;pn-type=google;pn-


tok=APA91bFCjG6AELwpGdxAbtaQkAGW93EsJcja4fnXi66hpi3RWPkq4K14tup7hrNEMEr2hVuCwkK6TewwD5_GpMyN0wvOXvlzbB7eNva536mCC-


DUzwsyBl2zOxlp07U53DOmuTlqZv7U;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg-


snd=msg.caf;line=eb8ee2c9efe04cc>;q=1;expires=3600;received="sip:59.36.45.241:1273;transport=TCP"
Server: OpenSIPS (1.11.3-notls (x86_64/linux))
Content-Length: 0


thanks a lot!



At 2015-02-04 13:44:16, "tin" <[email protected]> wrote:

Hi,
    There has a stauts about 401  Unauthorized:


SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 
10.0.2.10:1024;received=59.36.45.241;rport=9782;branch=z9hG4bK1450910565
From: <sip:[email protected]>;tag=2014338328
To: <sip:[email protected]>;tag=5c2831c51ae0c72390d6fc905fc065f7.ab7b
Call-ID: 1547875337
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="118.193.154.214", 
nonce="54d192cf0000001ce25c63b4ab2f9483e02d77ebc3ebeede"
Server: OpenSIPS (1.11.3-notls (x86_64/linux))
Content-Length: 0


thanks a lot!

At 2015-02-03 18:05:43, "Bogdan-Andrei Iancu" <[email protected]> wrote:

Hi Tin,

Once again, can you post the full REGISTER request here ? are you sure that 
REGISTER do advertise "MESSAGE" in the Allow header

Also , you could enable full debug for the m_dump() function:
    set_debug(4);
    m_dump();
    set_debug();

In this case, you may get a clue why the function does not send out the stored 
messages.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 03.02.2015 03:05, tin wrote:

Dear Bogdan, 
         Thanks for all your reply and kindly help. I definitely saw the record 
in DB. here are the records on my DB:
mysql> select * from silo where ctype = 'text/plain';
+------+-------------------------+-------------------------+----------+-----------------+------------+------------+----------+------------+-------+
| id   | src_addr                | dst_addr                | username | domain  
        | inc_time   | exp_time   | snd_time | ctype      | body  |
+------+-------------------------+-------------------------+----------+-----------------+------------+------------+----------+------------+-------+
| 3659 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422859611 | 1422895611 |        0 | text/plain | coi   | 
| 3667 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422860496 | 1423119696 |        0 | text/plain | ggg   | 
| 3669 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422860514 | 1423119714 |        0 | text/plain | qqq   | 
| 3671 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422860599 | 1423119799 |        0 | text/plain | bbbbb | 
| 3719 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422868318 | 1423127518 |        0 | text/plain | 456   | 
| 3718 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422868210 | 1423127410 |        0 | text/plain | 123   | 
| 3717 | sip:[email protected] | sip:[email protected] | 010      | 
118.193.154.214 | 1422867734 | 1423126934 |        0 | text/plain | 999   | 














_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to