|
I'm still running 1.12.3. I'm running multiple endpoints under a single nua. I am calling one endpoint to another via a proxy. What I see is the calling endpoint handle seems to first forget who the From: is, then looses the Contact: info. Everything looks fine until the calling end ACKs. In the ACK the From: header is changed. Then when I re-invite with the NUA_HOLD(1) tag, the Contact: is lost and it seems to grab the contact from some other handle. The application trace on the calling endpoint is: nua_handle() nua_set_hparams( ) with: NUTAG_M_USERNAME( username ), NUTAG_AUTOACK( 1 ), NUTAG_EARLY_ANSWER( 0 ), SOATAG_USER_SDP_STR( SDP ), nua_invite() with: NUTAG_PROXY(regbuf), SIPTAG_TO_STR(tobuf), SIPTAG_FROM_STR( from_str ), SIPTAG_CSEQ_STR(cseq), SOATAG_USER_SDP_STR( SDP ), NUTAG_SESSION_TIMER( 180 ), SIPTAG_EXPIRES_STR( "180" ), Event nua_r_set_params, status 200, phrase OK Event nua_i_state, status 0, phrase INVITE sent Event nua_r_invite, status 401, phrase Unauthorized nua_authenticate( ) Event nua_i_state, status 0, phrase INVITE sent Event nua_r_invite, status 180, phrase Ringing Event nua_i_state, status 180, phrase Ringing Event nua_r_invite, status 183, phrase Session Progress Event nua_i_state, status 183, phrase Session Progress Event nua_r_invite, status 200, phrase OK Event nua_i_state, status 200, phrase OK Event nua_i_active, status 200, phrase Call active nua_invite( ) with: NUTAG_HOLD(1) Event nua_i_state, status 0, phrase INVITE sent Event nua_r_invite, status 200, phrase OK Event nua_i_state, status 200, phrase OK Event nua_i_active, status 200, phrase Call active Here is the SIP trace: This traces shows all SIP for both endpoints, the proxy is 10.3.10.2. ================================================================================= 20:29:09.560792 10.1.64.123.5060 > 10.3.10.2.5060: udp 730 (DF) [tos 0x48] INVITE sip:[EMAIL PROTECTED];user=phone SIP/2.0 Via: SIP/2.0/UDP 10.1.64.123;rport;branch=z9hG4bKQ4ZgSgaytH20r Max-Forwards: 70 From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone> Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002001 INVITE Contact: <sip:[EMAIL PROTECTED];transport=udp> Expires: 180 User-Agent: sofia-sip/1.12.3 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY Supported: timer Session-Expires: 180 Min-SE: 120 Content-Type: application/sdp Content-Disposition: session Content-Length: 127 v=0 o=- 152097587647272856 1704254902480485625 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13058 RTP/AVP 0 ================================================================================= 20:29:09.570791 10.3.10.2.5060 > 10.1.64.123.5060: udp 479 (DF) SIP/2.0 401 Unauthorized WWW-Authenticate: Digest realm="10.3.10.2",nonce="8138e67a3443",stale=false,algorithm=MD5,qop="auth" Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002001 INVITE From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c3a5+728fbc4d Via: SIP/2.0/UDP 10.1.64.123;rport=5060;branch=z9hG4bKQ4ZgSgaytH20r Server: DC-SIP/2.0 Organization: Supported: 100rel Content-Length: 0 ================================================================================= 20:29:09.620799 10.1.64.123.5060 > 10.3.10.2.5060: udp 352 (DF) [tos 0x48] ACK sip:[EMAIL PROTECTED];user=phone SIP/2.0 Via: SIP/2.0/UDP 10.1.64.123;rport;branch=z9hG4bKQ4ZgSgaytH20r Max-Forwards: 70 From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c3a5+728fbc4d Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002001 ACK Content-Length: 0 ================================================================================= 20:29:09.720801 10.1.64.123.5060 > 10.3.10.2.5060: udp 974 (DF) [tos 0x48] INVITE sip:[EMAIL PROTECTED];user=phone SIP/2.0 Via: SIP/2.0/UDP 10.1.64.123;rport;branch=z9hG4bKgjpBBy64ptU3a Max-Forwards: 70 From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone> Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002002 INVITE Contact: <sip:[EMAIL PROTECTED];transport=udp> Expires: 180 User-Agent: sofia-sip/1.12.3 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY Supported: timer Authorization: Digest username="3014243101", realm="10.3.10.2", nonce="8138e67a3443", cnonce="+p65U913EimZWs+iLycMqA==", algorithm=MD5, uri="sip:[EMAIL PROTECTED];user=phone", response="ee1924093574a5264234d1fdd101712a", qop=auth, nc=00000001 Session-Expires: 180 Min-SE: 120 Content-Type: application/sdp Content-Disposition: session Content-Length: 127 v=0 o=- 152097587647272856 1704254902480485625 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13058 RTP/AVP 0 ================================================================================= 20:29:09.720801 10.3.10.2.5060 > 10.1.64.123.5060: udp 416 (DF) SIP/2.0 100 Trying Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002002 INVITE From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c89f+a0865acb Via: SIP/2.0/UDP 10.1.64.123;rport=5060;branch=z9hG4bKgjpBBy64ptU3a Server: DC-SIP/2.0 Organization: Supported: 100rel Contact: <sip:[EMAIL PROTECTED];user=phone> Content-Length: 0 ================================================================================= 20:29:09.730794 10.3.10.2.5060 > 10.1.64.123.5060: udp 714 (DF) INVITE sip:[EMAIL PROTECTED];transport=udp SIP/2.0 Via: SIP/2.0/UDP metaswitch;rport;branch=z9hG4bK-d0eee9f4e00000a3a9dcebf9416b9883-metaswitch-1 Allow-Events: message-summary Allow-Events: refer Allow-Events: dialog Allow-Events: line-seize Max-Forwards: 70 Call-ID: [EMAIL PROTECTED] From: <sip:[EMAIL PROTECTED];transport=udp>;tag=metaswitch+1+438a9f+33787581 To: <sip:[EMAIL PROTECTED]> CSeq: 147165616 INVITE Expires: 180 Organization: Supported: 100rel Content-Length: 122 Content-Type: application/sdp Contact: <sip:[EMAIL PROTECTED];transport=udp> v=0 o=- 1994676236 1994676236 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13058 RTP/AVP 0 a=ptime:10 ================================================================================= 20:29:09.870799 10.1.64.123.5060 > 10.3.10.2.5060: udp 328 (DF) [tos 0x48] SIP/2.0 100 Trying Via: SIP/2.0/UDP metaswitch;rport=5060;branch=z9hG4bK-d0eee9f4e00000a3a9dcebf9416b9883-metaswitch-1;received=10.3.10.2 From: <sip:[EMAIL PROTECTED];transport=udp>;tag=metaswitch+1+438a9f+33787581 To: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 147165616 INVITE Content-Length: 0 ================================================================================= 20:29:09.980801 10.1.64.123.5060 > 10.3.10.2.5060: udp 513 (DF) [tos 0x48] SIP/2.0 180 Ringing Via: SIP/2.0/UDP metaswitch;rport=5060;branch=z9hG4bK-d0eee9f4e00000a3a9dcebf9416b9883-metaswitch-1;received=10.3.10.2 From: <sip:[EMAIL PROTECTED];transport=udp>;tag=metaswitch+1+438a9f+33787581 To: <sip:[EMAIL PROTECTED]>;tag=p43grpK0SUUrm Call-ID: [EMAIL PROTECTED] CSeq: 147165616 INVITE Contact: <sip:[EMAIL PROTECTED];transport=udp> User-Agent: sofia-sip/1.12.3 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY Supported: timer Content-Length: 0 ================================================================================= 20:29:09.980801 10.3.10.2.5060 > 10.1.64.123.5060: udp 417 (DF) SIP/2.0 180 Ringing Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002002 INVITE From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c89f+a0865acb Via: SIP/2.0/UDP 10.1.64.123;rport=5060;branch=z9hG4bKgjpBBy64ptU3a Server: DC-SIP/2.0 Organization: Supported: 100rel Contact: <sip:[EMAIL PROTECTED];user=phone> Content-Length: 0 ================================================================================= 20:29:11.370836 10.1.64.123.5060 > 10.3.10.2.5060: udp 699 (DF) [tos 0x48] SIP/2.0 200 OK Via: SIP/2.0/UDP metaswitch;rport=5060;branch=z9hG4bK-d0eee9f4e00000a3a9dcebf9416b9883-metaswitch-1;received=10.3.10.2 From: <sip:[EMAIL PROTECTED];transport=udp>;tag=metaswitch+1+438a9f+33787581 To: <sip:[EMAIL PROTECTED]>;tag=p43grpK0SUUrm Call-ID: [EMAIL PROTECTED] CSeq: 147165616 INVITE Contact: <sip:[EMAIL PROTECTED];transport=udp> User-Agent: sofia-sip/1.12.3 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY Supported: timer Content-Type: application/sdp Content-Disposition: session Content-Length: 128 v=0 o=- 7809379475926130726 1117129541794602178 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13062 RTP/AVP 0 ================================================================================= 20:29:11.370836 10.3.10.2.5060 > 10.1.64.123.5060: udp 532 (DF) ACK sip:[EMAIL PROTECTED];transport=udp SIP/2.0 Via: SIP/2.0/UDP metaswitch;branch=z9hG4bK-b00e677530552bd8ac2124eb97ddd039-metaswitch-1 Allow-Events: message-summary Allow-Events: refer Allow-Events: dialog Allow-Events: line-seize Max-Forwards: 70 Call-ID: [EMAIL PROTECTED] From: <sip:[EMAIL PROTECTED];transport=udp>;tag=metaswitch+1+438a9f+33787581 To: <sip:[EMAIL PROTECTED]>;tag=p43grpK0SUUrm CSeq: 147165616 ACK Contact: <sip:[EMAIL PROTECTED];transport=udp> Organization: Content-Length: 0 ================================================================================= 20:29:11.370836 10.3.10.2.5060 > 10.1.64.123.5060: udp 581 (DF) SIP/2.0 183 Session Progress Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002002 INVITE From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c89f+a0865acb Via: SIP/2.0/UDP 10.1.64.123;rport=5060;branch=z9hG4bKgjpBBy64ptU3a Server: DC-SIP/2.0 Organization: Supported: 100rel Contact: <sip:[EMAIL PROTECTED];user=phone> Content-Length: 122 Content-Type: application/sdp v=0 o=- 1994676236 1994676236 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13062 RTP/AVP 0 a=ptime:10 ================================================================================= 20:29:11.370836 10.3.10.2.5060 > 10.1.64.123.5060: udp 951 (DF) SIP/2.0 200 OK Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002002 INVITE From: "phone 1" <sip:[EMAIL PROTECTED]>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c89f+a0865acb Via: SIP/2.0/UDP 10.1.64.123;rport=5060;branch=z9hG4bKgjpBBy64ptU3a Server: DC-SIP/2.0 Organization: Allow-Events: message-summary Allow-Events: refer Allow-Events: dialog Allow-Events: line-seize Supported: 100rel Allow: INVITE Allow: ACK Allow: CANCEL Allow: BYE Allow: REGISTER Allow: OPTIONS Allow: PRACK Allow: UPDATE Allow: SUBSCRIBE Allow: NOTIFY Allow: REFER Accept-Encoding: identity Accept: application/sdp Accept: application/simple-message-summary Accept: message/sipfrag Contact: <sip:[EMAIL PROTECTED];user=phone> Content-Length: 122 Content-Type: application/sdp v=0 o=- 1994676236 1994676236 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13062 RTP/AVP 0 a=ptime:10 Weird From: header here: ================================================================================= 20:29:11.680842 10.1.64.123.5060 > 10.3.10.2.5060: udp 591 (DF) [tos 0x48] ACK sip:[EMAIL PROTECTED];user=phone SIP/2.0 Via: SIP/2.0/UDP 10.1.64.123;rport;branch=z9hG4bKa0c4vcZBK3m4c Max-Forwards: 70 From: <sip:10.1.64.123;transport=udp>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c89f+a0865acb Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002002 ACK Authorization: Digest username="3014243101", realm="10.3.10.2", nonce="8138e67a3443", cnonce="+p65U913EimZWs+iLycMqA==", algorithm=MD5, uri="sip:[EMAIL PROTECTED];user=phone", response="ee1924093574a5264234d1fdd101712a", qop=auth, nc=00000001 Content-Length: 0 Bad Contact: and From: headers here: ================================================================================= 20:29:15.650939 10.1.64.123.5060 > 10.3.10.2.5060: udp 935 (DF) [tos 0x48] INVITE sip:[EMAIL PROTECTED];user=phone SIP/2.0 Via: SIP/2.0/UDP 10.1.64.123;rport;branch=z9hG4bK352yytQjFce7e Max-Forwards: 70 From: <sip:10.1.64.123;transport=udp>;tag=XyDpp8tSvj2Qj To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+43c89f+a0865acb Call-ID: fa8a3844-dd77-1229-5a99-cfa22f270ca8 CSeq: 100002003 INVITE Contact: <sip:[EMAIL PROTECTED];transport=udp> User-Agent: sofia-sip/1.12.3 Supported: timer Authorization: Digest username="3014243101", realm="10.3.10.2", nonce="8138e67a3443", cnonce="+p65U913EimZWs+iLycMqA==", algorithm=MD5, uri="sip:[EMAIL PROTECTED];user=phone", response="a428cc52acd44859a1275402924f292c", qop=auth, nc=00000002 Session-Expires: 180 Min-SE: 120 Content-Type: application/sdp Content-Disposition: session Content-Length: 139 v=0 o=- 152097587647272856 1704254902480485626 IN IP4 10.1.64.123 s=- c=IN IP4 10.1.64.123 t=0 0 m=audio 13058 RTP/AVP 0 a=sendonly |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
