locked
UCC API failed with the UCC_E_SIP_STATUS_CLIENT_UNAUTHORIZED using TLS RRS feed

  • Question

  • I have asked the same question on the "Planning and deployment" forum. But my question is regarding the UCC API developing - this forum could make more sence.

    I built a client to connect to the OCS using the TLS as the transport mode (while the tcp mode works).  It fails with the error 80ef0191 (UCC_E_SIP_STATUS_CLIENT_UNAUTHORIZED ). Following is the trace. Any help appreicated.

     

    09/07/2010|14:13:10.513 C84:E08 INFO  :: module=uccapi flavor=fre version=2.0.6362.123
    09/07/2010|14:13:10.513 C84:E08 INFO  :: CUccPlatform::EnableTracing: tracing enabled
    09/07/2010|14:13:10.543 C84:E08 INFO  :: CUccPlatform::EnableTracing : media stack tracing enabled
    09/07/2010|14:13:15.025 C84:E08 ERROR :: Found non-token char ';' when parsing token
    09/07/2010|14:13:15.035 C84:E08 INFO  :: Outgoing 08E6CBA0-<sip:agent64396@agile.co.nz>, local=(null)
    09/07/2010|14:13:15.035 C84:E08 ERROR :: Found non-token char ';' when parsing token
    09/07/2010|14:13:15.135 C84:E08 TRACE :: SIP_MSG_PROCESSOR::OnDnsResolutionComplete[08E6CBA0] Entered host sip.agile.co.nz
    09/07/2010|14:13:15.135 C84:E08 ERROR :: SIP_STACK::MapDestAddressToNatInternalAddress m_pDirectPlayNATHelp is NULL.  Setting *pIsDestExternalToNat to FALSE
    09/07/2010|14:13:15.135 C84:E08 INFO  :: CSIPCompressor::Initialize - Compression setting 2, threshold 128000, timeout 5000
    09/07/2010|14:13:15.145 C84:E08 TRACE :: Async work item posted for TLS negotiation: this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 09080EB0, this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 09080EB0 sent, this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: Async work item posted for TLS negotiation: this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: Async work item posted for TLS negotiation: this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 09080EB0, this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 09080EB0 sent, this 04FF2980
    09/07/2010|14:13:15.145 C84:E08 TRACE :: Async work item posted for TLS negotiation: this 04FF2980
    09/07/2010|14:13:15.155 C84:E18 TRACE :: SECURE_SOCKET: stream sizes: header 5 trailer 36 max message 16384 buffers 4 block size 16
    09/07/2010|14:13:15.155 C84:E08 INFO  :: CSIPCompressor::StartCompressionNegotiation - Link test not yet performed, checking compression settings configured by core
    09/07/2010|14:13:15.155 C84:E08 INFO  :: CSIPCompressor::StartLinkSpeedDetectionUsingWindows - Testing link bandwidth using adapter info.
    09/07/2010|14:13:15.165 C84:E08 INFO  :: Connection speed detected=100000000, Threshold=128000, returning fUseCompression=FALSE
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_MSG_PROCESSOR::OnRequestSocketConnectComplete - Enter this: 08E6CBA0, callid=(null), ErrorCode: 0x0
    09/07/2010|14:13:15.165 C84:E08 INFO  :: Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 671 bytes:
    09/07/2010|14:13:15.165 C84:E08 INFO  :: REGISTER sip:agile.co.nz SIP/2.0
    Via: SIP/2.0/TLS 192.168.10.121:59404
    Max-Forwards: 70
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 1 REGISTER
    Contact: <sip:192.168.10.121:59404;transport=tls;ms-opaque=f10b238f6a>;methods="INVITE, MESSAGE, INFO, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER, BENOTIFY";proxy=replace;+sip.instance="<urn:uuid:56C5B5CE-569F-5500-9F3B-F7E0C93344BE>"
    User-Agent: UCCAPI/2.0.6362.123
    Supported: gruu-10, adhoclist, msrtc-event-categories
    Supported: ms-forking
    ms-keep-alive: UAC;hop-hop=yes
    Event: registration
    Content-Length: 0


    09/07/2010|14:13:15.165 C84:E08 INFO  :: End of Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 671 bytes
    09/07/2010|14:13:15.165 C84:E08 TRACE :: - encrypted buffer length: 709 bytes.  First 8 bytes:
    09/07/2010|14:13:15.165 C84:E08 TRACE ::     17 03 01 02 C0 43 3F 80  :....ÀC?€
    09/07/2010|14:13:15.165 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 090245D8, this 04FF2980
    09/07/2010|14:13:15.165 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 090245D8 sent, this 04FF2980
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SECURE_SOCKET: decrypting buffer size: 613 (first 8):
    09/07/2010|14:13:15.165 C84:E08 TRACE ::     17 03 01 02 60 3D 82 E5  :....`=‚å
    09/07/2010|14:13:15.165 C84:E08 INFO  :: Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 581 bytes:
    09/07/2010|14:13:15.165 C84:E08 INFO  :: SIP/2.0 401 Unauthorized
    Date: Tue, 07 Sep 2010 02:13:25 GMT
    WWW-Authenticate: NTLM realm="SIP Communications Service", targetname="GOLLUM.agile.local", version=4
    WWW-Authenticate: Kerberos realm="SIP Communications Service", targetname="sip/GOLLUM.agile.local", version=4
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>;tag=923778D552741F34338CFE0CA0868E42
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 1 REGISTER
    Via: SIP/2.0/TLS 192.168.10.121:59404;ms-received-port=59404;ms-received-cid=88E000
    Content-Length: 0


    09/07/2010|14:13:15.165 C84:E08 INFO  :: End of Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 581 bytes
    09/07/2010|14:13:15.165 C84:E08 INFO  :: SIP_MSG_PROCESSOR::GetChallengeListForPlatform ProtocolsFromPlatform=0xf
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_STACK::UpdateProviderSAContextAndSetAuthProtocol adding SA with TargetName: GOLLUM.agile.local Auth: 4 to provider at index 0
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_STACK::AddSAToProvider SA added:GOLLUM.agile.local-0912C6E0 list entry 09024080, this 09129E50
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry- SA not found for TargetName: GOLLUM.agile.local Auth: 4, this 08E6CBA0
    09/07/2010|14:13:15.165 C84:E08 WARN  :: SIP_MSG_PROCESSOR::AddSAToList cannot find SA [0912C6E0] in list, inserting list entry [09024170] into list, TargetName GOLLUM.agile.local, Auth: 4, this 08E6CBA0
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.165 C84:E08 TRACE :: Async work item posted for Init-SA: 0
    09/07/2010|14:13:15.165 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.165 C84:E08 INFO  :: Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 799 bytes:
    09/07/2010|14:13:15.165 C84:E08 INFO  :: REGISTER sip:agile.co.nz SIP/2.0
    Via: SIP/2.0/TLS 192.168.10.121:59404
    Max-Forwards: 70
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 2 REGISTER
    Contact: <sip:192.168.10.121:59404;transport=tls;ms-opaque=f10b238f6a>;methods="INVITE, MESSAGE, INFO, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER, BENOTIFY";proxy=replace;+sip.instance="<urn:uuid:56C5B5CE-569F-5500-9F3B-F7E0C93344BE>"
    User-Agent: UCCAPI/2.0.6362.123
    Authorization: NTLM qop="auth", realm="SIP Communications Service", targetname="GOLLUM.agile.local", gssapi-data="", version=4
    Supported: gruu-10, adhoclist, msrtc-event-categories
    Supported: ms-forking
    ms-keep-alive: UAC;hop-hop=yes
    Event: registration
    Content-Length: 0


    09/07/2010|14:13:15.165 C84:E08 INFO  :: End of Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 799 bytes
    09/07/2010|14:13:15.165 C84:E08 TRACE :: - encrypted buffer length: 837 bytes.  First 8 bytes:
    09/07/2010|14:13:15.165 C84:E08 TRACE ::     17 03 01 03 40 49 99 C2  :....@I™Â
    09/07/2010|14:13:15.165 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 09080F28, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 09080F28 sent, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SECURE_SOCKET: decrypting buffer size: 805 (first 8):
    09/07/2010|14:13:15.175 C84:E08 TRACE ::     17 03 01 03 20 13 22 9C  :.... ."œ
    09/07/2010|14:13:15.175 C84:E08 INFO  :: Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 765 bytes:
    09/07/2010|14:13:15.175 C84:E08 INFO  :: SIP/2.0 401 Unauthorized
    Date: Tue, 07 Sep 2010 02:13:25 GMT
    WWW-Authenticate: NTLM opaque="87E65CCC", gssapi-data="TlRMTVNTUAACAAAAAAAAADgAAADzgpjimrkwqc5G15UAAAAAAAAAAIoAigA4AAAABgBxFwAAAA8CAAoAQQBHAEkATABFAAEADABHAE8ATABMAFUATQAEABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAMAJABHAE8ATABMAFUATQAuAGEAZwBpAGwAZQAuAGwAbwBjAGEAbAAFABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAcACAD9KrNAMk7LAQAAAAA=", targetname="GOLLUM.agile.local", realm="SIP Communications Service", version=4
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>;tag=923778D552741F34338CFE0CA0868E42
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 2 REGISTER
    Via: SIP/2.0/TLS 192.168.10.121:59404;ms-received-port=59404;ms-received-cid=88E000
    Content-Length: 0


    09/07/2010|14:13:15.175 C84:E08 INFO  :: End of Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 765 bytes
    09/07/2010|14:13:15.175 C84:E08 INFO  :: SIP_MSG_PROCESSOR::GetChallengeListForPlatform ProtocolsFromPlatform=0xf
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::AddSAToList found SA [0912C6E0] from list entry [09024170] with TargetName: GOLLUM.agile.local Auth: 4 , this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: signed buffer: <NTLM><96fbe004><1><SIP Communications Service><GOLLUM.agile.local><178a473f822e47a7acf79667dd1db28a><3><REGISTER><sip:agent64396@agile.co.nz><7be25d0392><sip:agent64396@agile.co.nz><><><><> - length- 190. SSPI context:2186600-1267888.
    09/07/2010|14:13:15.175 C84:E08 INFO  :: Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 1549 bytes:
    09/07/2010|14:13:15.175 C84:E08 INFO  :: REGISTER sip:agile.co.nz SIP/2.0
    Via: SIP/2.0/TLS 192.168.10.121:59404
    Max-Forwards: 70
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 3 REGISTER
    Contact: <sip:192.168.10.121:59404;transport=tls;ms-opaque=f10b238f6a>;methods="INVITE, MESSAGE, INFO, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER, BENOTIFY";proxy=replace;+sip.instance="<urn:uuid:56C5B5CE-569F-5500-9F3B-F7E0C93344BE>"
    User-Agent: UCCAPI/2.0.6362.123
    Supported: gruu-10, adhoclist, msrtc-event-categories
    Supported: ms-forking
    ms-keep-alive: UAC;hop-hop=yes
    Event: registration
    Proxy-Authorization: NTLM qop="auth", realm="SIP Communications Service", opaque="87E65CCC", targetname="GOLLUM.agile.local", version=4, gssapi-data="TlRMTVNTUAADAAAAGAAYAIoAAAA2ATYBogAAABYAFgBYAAAAFAAUAG4AAAAIAAgAggAAABAAEADYAQAAVYKQYgYBsB0AAAAPjix9jWmt+gh/F3Bd1SwdCWEAZwBpAGwAZQAuAGMAbwAuAG4AegBhAGcAZQBuAHQANgA0ADMAOQA2AEwAWABUADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYGOM5sejUlPuN4fVoxruQEBAAAAAAAA/SqzQDJOywHtJhAj3XMQqwAAAAACAAoAQQBHAEkATABFAAEADABHAE8ATABMAFUATQAEABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAMAJABHAE8ATABMAFUATQAuAGEAZwBpAGwAZQAuAGwAbwBjAGEAbAAFABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAcACAD9KrNAMk7LAQYABAACAAAACAAwADAAAAAAAAAAAAAAAAAwAAAEfsTM1WVoHsB+v5c29Klr35KsEIsDLmtt00b89MZv+QoAEAAAAAAAAAAAAAAAAAAAAAAACQAkAEcATwBMAEwAVQBNAC4AYQBnAGkAbABlAC4AbABvAGMAYQBsAAAAAAAAAAAAAAAAAIVqJy46+FLl+Ns+8xX6yLM=", crand="96fbe004", cnum="1", response="0100000043004100d879d11b50afb1a4"
    Content-Length: 0


    09/07/2010|14:13:15.175 C84:E08 INFO  :: End of Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 1549 bytes
    09/07/2010|14:13:15.175 C84:E08 TRACE :: - encrypted buffer length: 1589 bytes.  First 8 bytes:
    09/07/2010|14:13:15.175 C84:E08 TRACE ::     17 03 01 06 30 3E C8 42  :....0>ÈB
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 09080F40, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 09080F40 sent, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SECURE_SOCKET: decrypting buffer size: 741 (first 8):
    09/07/2010|14:13:15.175 C84:E08 TRACE ::     17 03 01 02 E0 63 C7 DD  :....àcÇÝ
    09/07/2010|14:13:15.175 C84:E08 INFO  :: Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 709 bytes:
    09/07/2010|14:13:15.175 C84:E08 INFO  :: SIP/2.0 401 Unauthorized
    Date: Tue, 07 Sep 2010 02:13:25 GMT
    WWW-Authenticate: NTLM realm="SIP Communications Service", targetname="GOLLUM.agile.local", version=4
    WWW-Authenticate: Kerberos realm="SIP Communications Service", targetname="sip/GOLLUM.agile.local", version=4
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>;tag=923778D552741F34338CFE0CA0868E42
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 3 REGISTER
    Via: SIP/2.0/TLS 192.168.10.121:59404;ms-received-port=59404;ms-received-cid=88E000
    ms-diagnostics: 1000;reason="Final handshake failed";source="GOLLUM.agile.local";HRESULT="0xC3E93EC3(SIP_E_AUTH_UNAUTHORIZED)"
    Content-Length: 0


    09/07/2010|14:13:15.175 C84:E08 INFO  :: End of Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 709 bytes
    09/07/2010|14:13:15.175 C84:E08 INFO  :: SIP_MSG_PROCESSOR::GetChallengeListForPlatform ProtocolsFromPlatform=0xf
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::AddSAToList found SA [0912C6E0] from list entry [09024170] with TargetName: GOLLUM.agile.local Auth: 4 , this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: Async work item posted for Init-SA: 0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 INFO  :: Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 799 bytes:
    09/07/2010|14:13:15.175 C84:E08 INFO  :: REGISTER sip:agile.co.nz SIP/2.0
    Via: SIP/2.0/TLS 192.168.10.121:59404
    Max-Forwards: 70
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 4 REGISTER
    Contact: <sip:192.168.10.121:59404;transport=tls;ms-opaque=f10b238f6a>;methods="INVITE, MESSAGE, INFO, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER, BENOTIFY";proxy=replace;+sip.instance="<urn:uuid:56C5B5CE-569F-5500-9F3B-F7E0C93344BE>"
    User-Agent: UCCAPI/2.0.6362.123
    Authorization: NTLM qop="auth", realm="SIP Communications Service", targetname="GOLLUM.agile.local", gssapi-data="", version=4
    Supported: gruu-10, adhoclist, msrtc-event-categories
    Supported: ms-forking
    ms-keep-alive: UAC;hop-hop=yes
    Event: registration
    Content-Length: 0


    09/07/2010|14:13:15.175 C84:E08 INFO  :: End of Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 799 bytes
    09/07/2010|14:13:15.175 C84:E08 TRACE :: - encrypted buffer length: 837 bytes.  First 8 bytes:
    09/07/2010|14:13:15.175 C84:E08 TRACE ::     17 03 01 03 40 1E B8 A4  :....@.¸¤
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 09080F28, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 09080F28 sent, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SECURE_SOCKET: decrypting buffer size: 805 (first 8):
    09/07/2010|14:13:15.175 C84:E08 TRACE ::     17 03 01 03 20 62 B9 C4  :.... b¹Ä
    09/07/2010|14:13:15.175 C84:E08 INFO  :: Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 765 bytes:
    09/07/2010|14:13:15.175 C84:E08 INFO  :: SIP/2.0 401 Unauthorized
    Date: Tue, 07 Sep 2010 02:13:25 GMT
    WWW-Authenticate: NTLM opaque="C4A14512", gssapi-data="TlRMTVNTUAACAAAAAAAAADgAAADzgpjiMJ06wr6rrJUAAAAAAAAAAIoAigA4AAAABgBxFwAAAA8CAAoAQQBHAEkATABFAAEADABHAE8ATABMAFUATQAEABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAMAJABHAE8ATABMAFUATQAuAGEAZwBpAGwAZQAuAGwAbwBjAGEAbAAFABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAcACAD9KrNAMk7LAQAAAAA=", targetname="GOLLUM.agile.local", realm="SIP Communications Service", version=4
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>;tag=923778D552741F34338CFE0CA0868E42
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 4 REGISTER
    Via: SIP/2.0/TLS 192.168.10.121:59404;ms-received-port=59404;ms-received-cid=88E000
    Content-Length: 0


    09/07/2010|14:13:15.175 C84:E08 INFO  :: End of Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 765 bytes
    09/07/2010|14:13:15.175 C84:E08 INFO  :: SIP_MSG_PROCESSOR::GetChallengeListForPlatform ProtocolsFromPlatform=0xf
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::AddSAToList found SA [0912C6E0] from list entry [09024170] with TargetName: GOLLUM.agile.local Auth: 4 , this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.175 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.175 C84:E08 TRACE :: signed buffer: <NTLM><62e8c54a><2><SIP Communications Service><GOLLUM.agile.local><178a473f822e47a7acf79667dd1db28a><5><REGISTER><sip:agent64396@agile.co.nz><7be25d0392><sip:agent64396@agile.co.nz><><><><> - length- 190. SSPI context:2186600-1267888.
    09/07/2010|14:13:15.175 C84:E08 INFO  :: Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 1549 bytes:
    09/07/2010|14:13:15.175 C84:E08 INFO  :: REGISTER sip:agile.co.nz SIP/2.0
    Via: SIP/2.0/TLS 192.168.10.121:59404
    Max-Forwards: 70
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 5 REGISTER
    Contact: <sip:192.168.10.121:59404;transport=tls;ms-opaque=f10b238f6a>;methods="INVITE, MESSAGE, INFO, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER, BENOTIFY";proxy=replace;+sip.instance="<urn:uuid:56C5B5CE-569F-5500-9F3B-F7E0C93344BE>"
    User-Agent: UCCAPI/2.0.6362.123
    Supported: gruu-10, adhoclist, msrtc-event-categories
    Supported: ms-forking
    ms-keep-alive: UAC;hop-hop=yes
    Event: registration
    Proxy-Authorization: NTLM qop="auth", realm="SIP Communications Service", opaque="C4A14512", targetname="GOLLUM.agile.local", version=4, gssapi-data="TlRMTVNTUAADAAAAGAAYAIoAAAA2ATYBogAAABYAFgBYAAAAFAAUAG4AAAAIAAgAggAAABAAEADYAQAAVYKQYgYBsB0AAAAPLDwOMGUKO51sj3ojFbhg62EAZwBpAGwAZQAuAGMAbwAuAG4AegBhAGcAZQBuAHQANgA0ADMAOQA2AEwAWABUADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1StkkMH7LYH59uzRfOwkeQEBAAAAAAAA/SqzQDJOywEICRiM06xncQAAAAACAAoAQQBHAEkATABFAAEADABHAE8ATABMAFUATQAEABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAMAJABHAE8ATABMAFUATQAuAGEAZwBpAGwAZQAuAGwAbwBjAGEAbAAFABYAYQBnAGkAbABlAC4AbABvAGMAYQBsAAcACAD9KrNAMk7LAQYABAACAAAACAAwADAAAAAAAAAAAAAAAAAwAAAEfsTM1WVoHsB+v5c29Klr35KsEIsDLmtt00b89MZv+QoAEAAAAAAAAAAAAAAAAAAAAAAACQAkAEcATwBMAEwAVQBNAC4AYQBnAGkAbABlAC4AbABvAGMAYQBsAAAAAAAAAAAAAAAAANG/mP1BfXhCbRUIhesT/nw=", crand="62e8c54a", cnum="2", response="010000004300410076a59cec6db9a6a4"
    Content-Length: 0


    09/07/2010|14:13:15.175 C84:E08 INFO  :: End of Sending Packet - 192.168.0.78:5061 (From Local Address: 192.168.10.121:59404) 1549 bytes
    09/07/2010|14:13:15.175 C84:E08 TRACE :: - encrypted buffer length: 1589 bytes.  First 8 bytes:
    09/07/2010|14:13:15.175 C84:E08 TRACE ::     17 03 01 06 30 96 FB 9E  :....0–ûž
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendOrQueueIfSendIsBlocking sending sendBuffer 09080FA0, this 04FF2980
    09/07/2010|14:13:15.175 C84:E08 TRACE :: ASYNC_SOCKET::SendHelperFn sendBuffer 09080FA0 sent, this 04FF2980
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SECURE_SOCKET: decrypting buffer size: 741 (first 8):
    09/07/2010|14:13:15.185 C84:E08 TRACE ::     17 03 01 02 E0 98 1C 30  :....à˜.0
    09/07/2010|14:13:15.185 C84:E08 INFO  :: Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 709 bytes:
    09/07/2010|14:13:15.185 C84:E08 INFO  :: SIP/2.0 401 Unauthorized
    Date: Tue, 07 Sep 2010 02:13:25 GMT
    WWW-Authenticate: NTLM realm="SIP Communications Service", targetname="GOLLUM.agile.local", version=4
    WWW-Authenticate: Kerberos realm="SIP Communications Service", targetname="sip/GOLLUM.agile.local", version=4
    From: <sip:agent64396@agile.co.nz>;tag=7be25d0392;epid=OCSPlugin
    To: <sip:agent64396@agile.co.nz>;tag=923778D552741F34338CFE0CA0868E42
    Call-ID: 178a473f822e47a7acf79667dd1db28a
    CSeq: 5 REGISTER
    Via: SIP/2.0/TLS 192.168.10.121:59404;ms-received-port=59404;ms-received-cid=88E000
    ms-diagnostics: 1000;reason="Final handshake failed";source="GOLLUM.agile.local";HRESULT="0xC3E93EC3(SIP_E_AUTH_UNAUTHORIZED)"
    Content-Length: 0


    09/07/2010|14:13:15.185 C84:E08 INFO  :: End of Data Received - 192.168.0.78:5061 (To Local Address: 192.168.10.121:59404) 709 bytes
    09/07/2010|14:13:15.185 C84:E08 INFO  :: SIP_MSG_PROCESSOR::GetChallengeListForPlatform ProtocolsFromPlatform=0xf
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SIP_MSG_PROCESSOR::AddSAToList found SA [0912C6E0] from list entry [09024170] with TargetName: GOLLUM.agile.local Auth: 4 , this 08E6CBA0
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SIP_STACK::FindProviderSAContext SA_CONTEXT found:GOLLUM.agile.local- 0912C6E0, SA list entry 09024080, this 09129E50
    09/07/2010|14:13:15.185 C84:E08 TRACE :: SIP_MSG_PROCESSOR::GetSAListEntry SA [0912C6E0] targetname GOLLUM.agile.local, auth 4, this 08E6CBA0
    09/07/2010|14:13:15.185 C84:E08 ERROR :: OUTGOING_TRANSACTION::ProcessAuthRequired-Too many 401/407s seen. Failing the session

    09/07/2010|14:13:15.185 C84:E08 ERROR :: OUTGOING_TRANSACTION::ProcessAuthRequiredResponse - ProcessAuthRequired failed 80ef0191

    09/07/2010|14:13:15.185 C84:E08 TRACE :: CUccServerEndpoint::UpdateEndpointState - Update state from 1 to 0. Status 80EF0191. Status text (null).
    09/07/2010|14:13:15.185 C84:E08 INFO  :: Function: CUccServiceOperationManager::DisableServManager
    09/07/2010|14:13:15.185 C84:E08 ERROR :: Condition failed with 80ee0061: 'm_fServMgrEnabled'
    09/07/2010|14:13:15.185 C84:E08 INFO  :: Function: CUccServerEndpoint::UpdateEndpointState
    09/07/2010|14:13:15.185 C84:E08 ERROR :: HRESULT API failed: 80ee0061 = hr. DisableServManager
    09/07/2010|14:13:15.185 C84:E08 INFO  :: Function: CUccOperationProgressEvent::get_StatusText
    09/07/2010|14:13:15.185 C84:E08 ERROR :: Condition failed with 00000001: 'm_swszText != 0'
    09/07/2010|14:13:15.195 C84:E08 INFO  :: bstrRealm to remove credentials for realm *
    09/07/2010|14:15:18.166 C84:E08 ERROR :: ASYNC_SOCKET::HandleNetworkEvent Error 2745, Event 32 received from socket 00000F68, this 04FF2980
    09/07/2010|14:15:18.166 C84:E08 ERROR :: ASYNC_SOCKET::OnError (0x80072745) - enter
    09/07/2010|14:15:18.166 C84:E08 ERROR :: ASYNC_SOCKET::NotifyError (80072745) this: 04FF2980 - Enter
    09/07/2010|14:15:18.166 C84:E08 ERROR :: ASYNC_SOCKET::NotifyError this: 04FF2980 - Exit

    Tuesday, September 7, 2010 3:40 AM

Answers

  • I have figured it out - in case anyone has the same issue as mine.

    I was using a wrong domain name in my code, the wrong domain name was retrived from the suer acount. It is a little bit tricky of the user account I was using:

    agent64396@agile.co.nz

    based on the above account name, I was using agile.co.nz as the domain name.

    But acctually the domain of the windows system is agile.local , it works after changing the value of the domain to "agile.local ":

    UccCredential credential = m_serverSignalingSettings.CredentialCache.CreateCredential(
                            "agent64396",
                            "12345",
                            "agile.local ");
    • Marked as answer by Roger NZ Wednesday, September 8, 2010 2:33 AM
    Wednesday, September 8, 2010 2:33 AM

All replies

  • I believe you have posted this in multiple forums..  Please review my response in your other posting.

    Moderator please delete this post or merge the threads.


    Mark King | MCTS:UC Voice | MCSE: Messaging | MCITP:Enterprise Messaging | CCNA | www.unplugthepbx.com
    Tuesday, September 7, 2010 1:23 PM
  • I have figured it out - in case anyone has the same issue as mine.

    I was using a wrong domain name in my code, the wrong domain name was retrived from the suer acount. It is a little bit tricky of the user account I was using:

    agent64396@agile.co.nz

    based on the above account name, I was using agile.co.nz as the domain name.

    But acctually the domain of the windows system is agile.local , it works after changing the value of the domain to "agile.local ":

    UccCredential credential = m_serverSignalingSettings.CredentialCache.CreateCredential(
                            "agent64396",
                            "12345",
                            "agile.local ");
    • Marked as answer by Roger NZ Wednesday, September 8, 2010 2:33 AM
    Wednesday, September 8, 2010 2:33 AM