Hi, I registered an IMS account in PJSUA and after received 200 OK ,PJSUA would send another register request message and the header of expire in the message is 0.But the header of expire is expected to be 300. But in the register of MC, it would send subscribe message after receiving 200 OK and the header of expire is not 0. Now,MC could register and make call successfully, PJSUA could register but could not make call successfully. Is there anything wrong with the registration ? What should I do to change the value of the header expire? The attachment is the packet of PJSUA registration. Thanks. Here's my log file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj947eef8a61504db4aef924a72f606a78 Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=313ec4eed8d748769e83ea42b9e40a60 To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 45cdb06a664642b4b383c9120f7d9542 CSeq: 51648 REGISTER Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 17:29:19.687 tsx00E9630C State changed from Null to Calling, event=TX_MSG 17:29:19.687 pjsua_acc.c Registration sent 17:29:19.703 pjsua_media.c RTP socket reachable at 192.168.9.111:4000 17:29:19.703 pjsua_media.c RTCP socket reachable at 192.168.9.111:4001 17:29:19.718 pjsua_media.c RTP socket reachable at 192.168.9.111:4002 17:29:19.718 pjsua_media.c RTCP socket reachable at 192.168.9.111:4003 17:29:19.718 pjsua_media.c RTP socket reachable at 192.168.9.111:4004 17:29:19.718 pjsua_media.c RTCP socket reachable at 192.168.9.111:4005 17:29:19.734 pjsua_media.c RTP socket reachable at 192.168.9.111:4006 17:29:19.734 pjsua_media.c RTCP socket reachable at 192.168.9.111:4007 17:29:19.890 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=51648 (rdata00E92AFC) 17:29:19.890 pjsua_core.c RX 454 bytes Response msg 401/REGISTER/cseq=51648 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPj947eef8a61504db4aef924a72f606a78;received=222.131.140.173;rport=1104 Call-ID: 45cdb06a664642b4b383c9120f7d9542 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=313ec4eed8d748769e83ea42b9e40a60 To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=ae210a25 CSeq: 51648 REGISTER WWW-Authenticate: Digest realm="huawei.com", nonce="zFiNMbsHkdqk/T9bCKE17w==",algorithm=MD5,qop="auth" Content-Length: 0 --end msg-- 17:29:19.890 tsx00E9630C Incoming Response msg 401/REGISTER/cseq=51648 (rdata00E92AFC) in state Calling 17:29:19.890 tsx00E9630C State changed from Calling to Completed, event=RX_MSG 17:29:19.906 sip_auth_aka.c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??1@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ 17:29:19.906 tsx00EA1C9C Transaction created for Request msg REGISTER/cseq=51649 (tdta00E95278) 17:29:19.906 tsx00EA1C9C Sending Request msg REGISTER/cseq=51649 (tdta00E95278) in state Null 17:29:19.906 sip_resolve.c Target '121.33.232.99:0' type=Unspecified resolved to '121.33.232.99:5060' type=UDP (UDP transport) 17:29:19.906 pjsua_core.c TX 697 bytes Request msg REGISTER/cseq=51649 (tdta00E95278) to UDP 121.33.232.99:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj90717cf621684c36802b7c1de920a49f Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=313ec4eed8d748769e83ea42b9e40a60 To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 45cdb06a664642b4b383c9120f7d9542 CSeq: 51649 REGISTER User-Agent: PJSUA v1.3/win32 Contact: <sip:192.168.9.111:5060> Expires: 300 Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="zFiNMbsHkdqk/T9bCKE17w==", uri="sip:huawei.com", response="0a9fec914c726e317da2192d4f7124df", algorithm=MD5, cnonce="7670a621d5c24f9bbea3d9e80a96f8ed", qop=auth, nc=00000001 Content-Length: 0 --end msg-- 17:29:19.906 tsx00EA1C9C State changed from Null to Calling, event=TX_MSG 17:29:20.046 sip_endpoint.c Processing incoming message: Response msg 200/REGISTER/cseq=51649 (rdata00E92AFC) 17:29:20.046 pjsua_core.c RX 616 bytes Response msg 200/REGISTER/cseq=51649 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPj90717cf621684c36802b7c1de920a49f;received=222.131.140.173;rport=1104 Call-ID: 45cdb06a664642b4b383c9120f7d9542 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=313ec4eed8d748769e83ea42b9e40a60 To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=088892da CSeq: 51649 REGISTER Service-Route: <sip:orig at scscf.huawei.com:30820 ;lr;Dpt=7864-4;ca=c2lwOjIyMi4xMzEuMTQwLjE3MzoxMTA0> P-Associated-URI: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>,< sip:+862088880016 at huawei.com <sip%3A%2B862088880016 at huawei.com>;user=phone> Path: <sip:term at pcscf.huawei.com:30818;lr> Contact: <sip:192.168.9.111:5060>;expires=300 Content-Length: 0 --end msg-- 17:29:20.046 tsx00EA1C9C Incoming Response msg 200/REGISTER/cseq=51649 (rdata00E92AFC) in state Calling 17:29:20.046 tsx00EA1C9C State changed from Calling to Completed, event=RX_MSG 17:29:20.046 pjsua_acc.c IP address change detected for account 1 ( 192.168.9.111:5060 --> 222.131.140.173:1104). Updating registration.. 17:29:20.046 endpoint Request msg REGISTER/cseq=51649 (tdta00EA2698) created. 17:29:20.046 tsx00EA372C Transaction created for Request msg REGISTER/cseq=51650 (tdta00EA2698) 17:29:20.046 tsx00EA372C Sending Request msg REGISTER/cseq=51650 (tdta00EA2698) in state Null 17:29:20.046 sip_resolve.c Target '121.33.232.99:0' type=Unspecified resolved to '121.33.232.99:5060' type=UDP (UDP transport) 17:29:20.046 pjsua_core.c TX 558 bytes Request msg REGISTER/cseq=51650 (tdta00EA2698) to UDP 121.33.232.99:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj9f7faa31f9144e50ae944e73aa8c9806 Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=99f21cf2316741d2bcca37188a6072ac To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 45cdb06a664642b4b383c9120f7d9542 CSeq: 51650 REGISTER Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:192.168.9.111:5060> Expires: 0 Content-Length: 0 --end msg-- 17:29:20.046 tsx00EA372C State changed from Null to Calling, event=TX_MSG 17:29:20.046 pjsua_acc.c Unregistration sent 17:29:20.046 endpoint Request msg REGISTER/cseq=18508 (tdta00EA5D88) created. 17:29:20.046 tsx00EA6E1C Transaction created for Request msg REGISTER/cseq=18509 (tdta00EA5D88) 17:29:20.046 tsx00EA6E1C Sending Request msg REGISTER/cseq=18509 (tdta00EA5D88) in state Null 17:29:20.046 sip_resolve.c Target '121.33.232.99:0' type=Unspecified resolved to '121.33.232.99:5060' type=UDP (UDP transport) 17:29:20.046 pjsua_core.c TX 585 bytes Request msg REGISTER/cseq=18509 (tdta00EA5D88) to UDP 121.33.232.99:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj844eef8bf56a4c65953795fa5e680620 Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=7c657cebdada408ba52be6bbdf4fb81a To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 15bc751902274710870ddd9703f6412f CSeq: 18509 REGISTER Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880016 at 222.131.140.173:1104;transport=UDP> Expires: 300 Content-Length: 0 --end msg-- 17:29:20.046 tsx00EA6E1C State changed from Null to Calling, event=TX_MSG 17:29:20.046 pjsua_acc.c Registration sent 17:29:20.187 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=51650 (rdata00E92AFC) 17:29:20.187 pjsua_core.c RX 454 bytes Response msg 401/REGISTER/cseq=51650 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPj9f7faa31f9144e50ae944e73aa8c9806;received=222.131.140.173;rport=1104 Call-ID: 45cdb06a664642b4b383c9120f7d9542 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=99f21cf2316741d2bcca37188a6072ac To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=46ccba89 CSeq: 51650 REGISTER WWW-Authenticate: Digest realm="huawei.com", nonce="gcuBdn7fGJwujH8NmbDxGQ==",algorithm=MD5,qop="auth" Content-Length: 0 --end msg-- 17:29:20.187 tsx00EA372C Incoming Response msg 401/REGISTER/cseq=51650 (rdata00E92AFC) in state Calling 17:29:20.187 tsx00EA372C State changed from Calling to Completed, event=RX_MSG 17:29:20.187 sip_auth_aka.c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??1@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ 17:29:20.187 tsx00EA861C Transaction created for Request msg REGISTER/cseq=51651 (tdta00EA2698) 17:29:20.187 tsx00EA861C Sending Request msg REGISTER/cseq=51651 (tdta00EA2698) in state Null 17:29:20.187 sip_resolve.c Target '121.33.232.99:0' type=Unspecified resolved to '121.33.232.99:5060' type=UDP (UDP transport) 17:29:20.187 pjsua_core.c TX 695 bytes Request msg REGISTER/cseq=51651 (tdta00EA2698) to UDP 121.33.232.99:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPjb078423ed5e74a19bc8c41adee07b8d8 Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=99f21cf2316741d2bcca37188a6072ac To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 45cdb06a664642b4b383c9120f7d9542 CSeq: 51651 REGISTER User-Agent: PJSUA v1.3/win32 Contact: <sip:192.168.9.111:5060> Expires: 0 Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="gcuBdn7fGJwujH8NmbDxGQ==", uri="sip:huawei.com", response="4d57e991f8e01015c972fb95dd23030e", algorithm=MD5, cnonce="7670a621d5c24f9bbea3d9e80a96f8ed", qop=auth, nc=00000001 Content-Length: 0 --end msg-- 17:29:20.203 tsx00EA861C State changed from Null to Calling, event=TX_MSG 17:29:20.203 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=18509 (rdata00E92AFC) 17:29:20.203 pjsua_core.c RX 454 bytes Response msg 401/REGISTER/cseq=18509 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPj844eef8bf56a4c65953795fa5e680620;received=222.131.140.173;rport=1104 Call-ID: 15bc751902274710870ddd9703f6412f From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=7c657cebdada408ba52be6bbdf4fb81a To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=0a47eafb CSeq: 18509 REGISTER WWW-Authenticate: Digest realm="huawei.com", nonce="gcuBdn7fGJwujH8NmbDxGQ==",algorithm=MD5,qop="auth" Content-Length: 0 --end msg-- 17:29:20.203 tsx00EA6E1C Incoming Response msg 401/REGISTER/cseq=18509 (rdata00E92AFC) in state Calling 17:29:20.203 tsx00EA6E1C State changed from Calling to Completed, event=RX_MSG 17:29:20.203 sip_auth_aka.c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??1@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ 17:29:20.203 tsx00EA8E4C Transaction created for Request msg REGISTER/cseq=18510 (tdta00EA5D88) 17:29:20.203 tsx00EA8E4C Sending Request msg REGISTER/cseq=18510 (tdta00EA5D88) in state Null 17:29:20.203 sip_resolve.c Target '121.33.232.99:0' type=Unspecified resolved to '121.33.232.99:5060' type=UDP (UDP transport) 17:29:20.203 pjsua_core.c TX 722 bytes Request msg REGISTER/cseq=18510 (tdta00EA5D88) to UDP 121.33.232.99:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj03c31a72227f4c7db446eeefdec00ff7 Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=7c657cebdada408ba52be6bbdf4fb81a To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 15bc751902274710870ddd9703f6412f CSeq: 18510 REGISTER User-Agent: PJSUA v1.3/win32 Contact: <sip:88880016 at 222.131.140.173:1104;transport=UDP> Expires: 300 Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="gcuBdn7fGJwujH8NmbDxGQ==", uri="sip:huawei.com", response="63f73d6187deb42e04df6b12a4caa2c2", algorithm=MD5, cnonce="ace6df61d3fa4ac49fc4977f72e5fc3d", qop=auth, nc=00000001 Content-Length: 0 --end msg-- 17:29:20.203 tsx00EA8E4C State changed from Null to Calling, event=TX_MSG 17:29:20.328 sip_endpoint.c Processing incoming message: Response msg 403/REGISTER/cseq=51651 (rdata00E92AFC) 17:29:20.328 pjsua_core.c RX 424 bytes Response msg 403/REGISTER/cseq=51651 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 403 Forbidden Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPjb078423ed5e74a19bc8c41adee07b8d8;received=222.131.140.173;rport=1104 Call-ID: 45cdb06a664642b4b383c9120f7d9542 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=99f21cf2316741d2bcca37188a6072ac To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=649a5e48 CSeq: 51651 REGISTER Warning: 399 0173402624.S.huawei.com.207.030.051.00063. "Conflictive contact" Content-Length: 0 --end msg-- 17:29:20.328 tsx00EA861C Incoming Response msg 403/REGISTER/cseq=51651 (rdata00E92AFC) in state Calling 17:29:20.328 tsx00EA861C State changed from Calling to Completed, event=RX_MSG 17:29:20.343 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=18510 (rdata00E92AFC) 17:29:20.343 pjsua_core.c RX 465 bytes Response msg 401/REGISTER/cseq=18510 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPj03c31a72227f4c7db446eeefdec00ff7;received=222.131.140.173;rport=1104 Call-ID: 15bc751902274710870ddd9703f6412f From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=7c657cebdada408ba52be6bbdf4fb81a To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=0fee3baa CSeq: 18510 REGISTER WWW-Authenticate: Digest realm="huawei.com", nonce="g6yxW9CgSiwrIZMGNuFzdg==",stale=true,algorithm=MD5,qop="auth" Content-Length: 0 --end msg-- 17:29:20.343 tsx00EA8E4C Incoming Response msg 401/REGISTER/cseq=18510 (rdata00E92AFC) in state Calling 17:29:20.343 tsx00EA8E4C State changed from Calling to Completed, event=RX_MSG 17:29:20.343 sip_auth_aka.c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??1@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ 17:29:20.343 tsx00E94A7C Transaction created for Request msg REGISTER/cseq=18511 (tdta00EA5D88) 17:29:20.343 tsx00E94A7C Sending Request msg REGISTER/cseq=18511 (tdta00EA5D88) in state Null 17:29:20.343 sip_resolve.c Target '121.33.232.99:0' type=Unspecified resolved to '121.33.232.99:5060' type=UDP (UDP transport) 17:29:20.343 pjsua_core.c TX 722 bytes Request msg REGISTER/cseq=18511 (tdta00EA5D88) to UDP 121.33.232.99:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPja4f8bcd758b54ceaa8a5611c0e3cf9c5 Route: <sip:121.33.232.99;lr> Max-Forwards: 70 From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=7c657cebdada408ba52be6bbdf4fb81a To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>> Call-ID: 15bc751902274710870ddd9703f6412f CSeq: 18511 REGISTER User-Agent: PJSUA v1.3/win32 Contact: <sip:88880016 at 222.131.140.173:1104;transport=UDP> Expires: 300 Authorization: Digest username="88880016 at huawei.com", realm="huawei.com", nonce="g6yxW9CgSiwrIZMGNuFzdg==", uri="sip:huawei.com", response="68390a626010196a7882bcf5e49dc136", algorithm=MD5, cnonce="ace6df61d3fa4ac49fc4977f72e5fc3d", qop=auth, nc=00000001 Content-Length: 0 --end msg-- 17:29:20.343 tsx00E94A7C State changed from Null to Calling, event=TX_MSG 17:29:20.484 sip_endpoint.c Processing incoming message: Response msg 200/REGISTER/cseq=18511 (rdata00E92AFC) 17:29:20.484 pjsua_core.c RX 653 bytes Response msg 200/REGISTER/cseq=18511 (rdata00E92AFC) from UDP 121.33.232.99:5060: SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.9.111:5060 ;branch=z9hG4bKPja4f8bcd758b54ceaa8a5611c0e3cf9c5;received=222.131.140.173;rport=1104 Call-ID: 15bc751902274710870ddd9703f6412f From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com> >;tag=7c657cebdada408ba52be6bbdf4fb81a To: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>;tag=4fe9993d CSeq: 18511 REGISTER Service-Route: <sip:orig at scscf.huawei.com:30820 ;lr;Dpt=7864-4;ca=c2lwOjg4ODgwMDE2QDIyMi4xMzEuMTQwLjE3MzoxMTA0> P-Associated-URI: <sip:88880016 at huawei.com <sip%3A88880016 at huawei.com>>,< sip:+862088880016 at huawei.com <sip%3A%2B862088880016 at huawei.com>;user=phone> Path: <sip:term at pcscf.huawei.com:30818;lr> Contact: <sip:88880016 at 222.131.140.173:1104;transport=udp>;expires=300 Content-Length: 0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091103/dfb0325d/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: PJSUA_REGISTER1.pcap Type: application/octet-stream Size: 8894 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091103/dfb0325d/attachment-0001.pcap>