Juha Heinanen writes:
tom,

i cannot understand, how anything can work if there is no to tag in
response that establishes dialog, because dialog  matching is based on
to and from tag.

-- juha
Juha,

I agree... And the funny thing is that the To tag is in the 401, but somehow it's not recognized by sipctrl. See the SEMS logging (level 3) below. Notice the To tag in the 401 and the Debug message about the missing To tag...

INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.95.168.135:5080;branch=z9hG4bKn0YVTaig
From: <sip:[email protected]>;tag=257D14C7-4A08806B000D96A0-B6E6BBB0
To: <sip:[email protected]>
CSeq: 10 INVITE
Call-ID: [email protected]
Contact: <sip:[email protected]:5080>
P-Asserted-Identity: tel:0031123456789
Content-Type: application/sdp
Content-Length: 241

v=0
o=root 28107 28107 IN IP4 194.140.xx.xx
s=session
c=IN IP4 194.140.xx.xx
t=0 0
m=audio 12686 RTP/AVP 8 0 96
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
a=silenceSupp:off - - - -
--++--
(31877) DEBUG: [b6d46bb0] reset_timer (sip_trans.cpp:151): New timer of type A at time=518 (31877) DEBUG: [b6d46bb0] reset_timer (sip_trans.cpp:151): New timer of type B at time=2093
(31877) DEBUG: [b6d46bb0] ~sip_msg (sip_parser.cpp:92): ~sip_msg()
(31877) DEBUG: [b6d46bb0] processEvents (AmEventQueue.cpp:71): event processed (31877) DEBUG: [b6d46bb0] run (AmSession.cpp:342): [email protected] dlg.getUACTransPending() = 1
(31877) DEBUG: [b6fb0bb0] run (udp_trsp.cpp:140): recvd msg
--++--
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 80.95.xx.xx:5080;branch=z9hG4bKn0YVTaig
From: <sip:[email protected]>;tag=257D14C7-4A08806B000D96A0-B6E6BBB0
To: <sip:[email protected]>
Contact: sip:[email protected]:5060
Call-ID: [email protected]
CSeq: 10 INVITE
Server: (Very nice Sip Registrar/Proxy Server)
Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO,MESSAGE
WWW-Authenticate: Digest realm="voip.zb.gntel.nl",nonce="1666928515",algorithm=MD5
Content-Length: 0

--++--
(31877) DEBUG: [b6fb0bb0] received_msg (trans_layer.cpp:734): parse_sip_msg returned 0 (31877) DEBUG: [b6fb0bb0] received_msg (trans_layer.cpp:818): Reply matched an existing transaction (31877) DEBUG: [b6fb0bb0] update_uac_trans (trans_layer.cpp:861): reply code = 401 (31877) DEBUG: [b6fb0bb0] update_uac_trans (trans_layer.cpp:888): To-tag missing in final reply (see sipctrl.conf?) (31877) DEBUG: [b6fb0bb0] reset_timer (sip_trans.cpp:105): Clearing old timer of type A (31877) DEBUG: [b6fb0bb0] send_non_200_ack (trans_layer.cpp:1142): About to send ACK
(31877) DEBUG: [b6fb0bb0] send (udp_trsp.cpp:244): send  msg
--++--
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 80.95.xx.xx:5080;branch=z9hG4bKn0YVTaig
From: <sip:[email protected]>;tag=257D14C7-4A08806B000D96A0-B6E6BBB0
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 10 ACK

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to