[ENDPOINT RESPONSE] <-- [401 (Unauthorized)] on Amcrest IP8M Turret Camera



  • Re: Trying Gateway - 401 (Unauthorized)

    See title - I am unable to get any of my cameras working. RTSP streams work flawlessly on VLC player, and in Blue Iris, but monocle gateway is struggling. Before I messed with gateway, they were working on an older, echo show (gen1), but I have an echo show 5 (2019) and it is supposed to require the monocle gateway to work.

    Here is the log from gateway when trying to initialize:

    -------------------------------------------------
    INITIALIZE RTSP STREAM:  Driveway
    -------------------------------------------------
     - NAME  : Driveway
     - LABEL : PRIMARY
     - URL   : rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0
     - UUID  : STREAM:f9753a38-3002-4cac-a622-9179a5535956
     - SESS  : 4fbd2499-ec80-4306-8c90-d9e1c1afe9f7
     - MODIF : Thu Feb 25 2021 23:27:02 GMT-0800 (Pacific Standard Time)
     - TAGS  : @tunnel
    -------------------------------------------------
    
    
    -------------------------------------------------
    RTSP STREAM MODIFIED:  Driveway
      Any existing RTSP steams will be shut down
      and a new stream instance will be registered.
    -------------------------------------------------
    
    2021-02-26T07:27:10.679Z [DEBUG] <RTSP-PROXY> [REQUEST]  --> [DEREGISTER] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0
    2021-02-26T07:27:10.679Z [TRACE] <RTSP-PROXY> [REQUEST]  --> [HEADERS] {
      "cseq": "1",
      "transport": "reuse_connection=0;preferred_delivery_protocol=udp;proxy_url_suffix=STREAM:f9753a38-3002-4cac-a622-9179a5535956"
    }
    2021-02-26T07:27:10.680Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
    2021-02-26T07:27:10.687Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] {
      "cseq": "1",
      "date": "Fri, Feb 26 2021 07:27:10 GMT"
    }
    2021-02-26T07:27:14.513Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP CLIENT SOCKET CONNECTED
    2021-02-26T07:27:14.640Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP CLIENT ATTACHED TO STREAM: Driveway (STREAM:f9753a38-3002-4cac-a622-9179a5535956)
    2021-02-26T07:27:14.651Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP ENDPOINT SOCKET CONNECTED {192.168.1.240:554}
    2021-02-26T07:27:14.652Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [DESCRIBE] rtsp://ef08db87-ddc3-4078-9b64-5758b17e9214.mproxy.io:443/STREAM:f9753a38-3002-4cac-a622-9179a5535956?session=4fbd2499-ec80-4306-8c90-d9e1c1afe9f7
    2021-02-26T07:27:14.652Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [HEADERS] {
      "accept": "application/sdp",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "1"
    }
    2021-02-26T07:27:14.652Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0
    2021-02-26T07:27:14.653Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [HEADERS] {
      "accept": "application/sdp",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "1"
    }
    2021-02-26T07:27:14.691Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [401 (Unauthorized)] <cseq=1> (session=undefined)
    2021-02-26T07:27:14.691Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      "cseq": "1",
      "www-authenticate": "Digest realm=\"Login to AMC05104FA2BD81004\", nonce=\"a6e2ebcac2049b5d8b4fe929640fc0b9\""
    }
    2021-02-26T07:27:14.691Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP ENDPOINT REQUIRES AUTHENTICATION: Digest realm="Login to AMC05104FA2BD81004", nonce="a6e2ebcac2049b5d8b4fe929640fc0b9"
    2021-02-26T07:27:14.692Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP ENDPOINT ATTEMPTING AUTHENTICATION: DIGEST
    2021-02-26T07:27:14.692Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0
    2021-02-26T07:27:14.692Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [HEADERS] {
      "accept": "application/sdp",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "1",
      "authorization": "Digest username=\"admin\", realm=\"Login to AMC05104FA2BD81004\", nonce=\"a6e2ebcac2049b5d8b4fe929640fc0b9\", uri=\"rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0\", response=\"e205a5a828eab69d5f2eff1e2b73976e\""
    }
    2021-02-26T07:27:15.034Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
    2021-02-26T07:27:15.035Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      "cseq": "1",
      "x-accept-dynamic-rate": "1",
      "content-base": "rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/",
      "cache-control": "must-revalidate",
      "content-length": "644",
      "content-type": "application/sdp"
    }
    2021-02-26T07:27:15.036Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [BODY]
     v=0
    o=- 2255688855 2255688855 IN IP4 0.0.0.0
    s=Media Server
    c=IN IP4 0.0.0.0
    t=0 0
    a=control:*
    a=packetization-supported:DH
    a=rtppayload-supported:DH
    a=range:npt=now-
    m=video 0 RTP/AVP 96
    a=control:trackID=0
    a=framerate:15.000000
    a=rtpmap:96 H264/90000
    a=fmtp:96 packetization-mode=1;profile-level-id=640033;sprop-parameter-sets=Z2QAM6wbGoA8AEP//8eIR4gbgICAoAAAfQAADqYdDAA+gAAAHJw4XeXGhgAfQAAADk4cLvLhQAA=,aO44MAA=
    a=recvonly
    m=audio 0 RTP/AVP 97
    a=control:trackID=1
    a=rtpmap:97 MPEG4-GENERIC/16000
    a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408
    a=recvonly
    
    2021-02-26T07:27:15.043Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP ENDPOINT AUTHENTICATION SUCCESSFUL: DIGEST
    2021-02-26T07:27:15.045Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
    2021-02-26T07:27:15.053Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [HEADERS] {
      "cseq": "1",
      "x-accept-dynamic-rate": "1",
      "content-base": "rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/",
      "cache-control": "must-revalidate",
      "content-length": "644",
      "content-type": "application/sdp"
    }
    2021-02-26T07:27:15.053Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [BODY]
     v=0
    o=- 2255688855 2255688855 IN IP4 0.0.0.0
    s=Media Server
    c=IN IP4 0.0.0.0
    t=0 0
    a=control:*
    a=packetization-supported:DH
    a=rtppayload-supported:DH
    a=range:npt=now-
    m=video 0 RTP/AVP 96
    a=rtpmap:96 H264/90000
    a=fmtp:96 packetization-mode=1;profile-level-id=640033;sprop-parameter-sets=Z2QAM6wbGoA8AEP//8eIR4gbgICAoAAAfQAADqYdDAA+gAAAHJw4XeXGhgAfQAAADk4cLvLhQAA=,aO44MAA=
    a=control:trackID=0
    a=recvonly
    a=framerate:15.000000
    m=audio 0 RTP/AVP 97
    a=rtpmap:97 MPEG4-GENERIC/16000
    a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408
    a=control:trackID=1
    a=recvonly
    
    2021-02-26T07:27:15.061Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [SETUP] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/trackID=0
    2021-02-26T07:27:15.069Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [HEADERS] {
      "transport": "RTP/AVP/TCP;interleaved=0-1",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "2"
    }
    2021-02-26T07:27:15.071Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [SETUP] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/trackID=0
    2021-02-26T07:27:15.072Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [HEADERS] {
      "transport": "RTP/AVP/TCP;interleaved=0-1",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "2",
      "authorization": "Digest username=\"admin\", realm=\"Login to AMC05104FA2BD81004\", nonce=\"a6e2ebcac2049b5d8b4fe929640fc0b9\", uri=\"rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0\", response=\"e205a5a828eab69d5f2eff1e2b73976e\""
    }
    2021-02-26T07:27:15.118Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=2> (session=3792914092691;timeout=60)
    2021-02-26T07:27:15.120Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      "cseq": "2",
      "session": "3792914092691;timeout=60",
      "transport": "RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=5C230A18",
      "x-dynamic-rate": "1"
    }
    2021-02-26T07:27:15.128Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=2> (session=3792914092691;timeout=60)
    2021-02-26T07:27:15.128Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [HEADERS] {
      "cseq": "2",
      "session": "3792914092691;timeout=60",
      "transport": "RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=5C230A18",
      "x-dynamic-rate": "1"
    }
    2021-02-26T07:27:15.184Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [SETUP] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/trackID=1
    2021-02-26T07:27:15.185Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [HEADERS] {
      "transport": "RTP/AVP/TCP;interleaved=2-3",
      "session": "3792914092691",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "3"
    }
    2021-02-26T07:27:15.187Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [SETUP] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/trackID=1
    2021-02-26T07:27:15.194Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [HEADERS] {
      "transport": "RTP/AVP/TCP;interleaved=2-3",
      "session": "3792914092691",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "3",
      "authorization": "Digest username=\"admin\", realm=\"Login to AMC05104FA2BD81004\", nonce=\"a6e2ebcac2049b5d8b4fe929640fc0b9\", uri=\"rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0\", response=\"e205a5a828eab69d5f2eff1e2b73976e\""
    }
    2021-02-26T07:27:15.271Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=3> (session=3792914092691;timeout=60)
    2021-02-26T07:27:15.271Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      "cseq": "3",
      "session": "3792914092691;timeout=60",
      "transport": "RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=7E02F413",
      "x-dynamic-rate": "1"
    }
    2021-02-26T07:27:15.273Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=3> (session=3792914092691;timeout=60)
    2021-02-26T07:27:15.280Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [HEADERS] {
      "cseq": "3",
      "session": "3792914092691;timeout=60",
      "transport": "RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=7E02F413",
      "x-dynamic-rate": "1"
    }
    2021-02-26T07:27:15.323Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [PLAY] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/
    2021-02-26T07:27:15.325Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT REQUEST]  --> [HEADERS] {
      "session": "3792914092691",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "4"
    }
    2021-02-26T07:27:15.333Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [PLAY] rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0/
    2021-02-26T07:27:15.334Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT REQUEST]  --> [HEADERS] {
      "session": "3792914092691",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "4",
      "authorization": "Digest username=\"admin\", realm=\"Login to AMC05104FA2BD81004\", nonce=\"a6e2ebcac2049b5d8b4fe929640fc0b9\", uri=\"rtsp://192.168.1.240:554/cam/realmonitor?channel=1&subtype=0\", response=\"e205a5a828eab69d5f2eff1e2b73976e\""
    }
    2021-02-26T07:27:15.413Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=4> (session=3792914092691)
    2021-02-26T07:27:15.422Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      "cseq": "4",
      "session": "3792914092691",
      "rtp-info": "url=trackID=0;seq=11143;rtptime=3800890684,url=trackID=1;seq=1463;rtptime=675774483"
    }
    2021-02-26T07:27:15.423Z [DEBUG] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=4> (session=3792914092691)
    2021-02-26T07:27:15.423Z [TRACE] [192.168.1.25:59366 <H15AG78Md>] [CLIENT RESPONSE] <-- [HEADERS] {
      "cseq": "4",
      "session": "3792914092691",
      "rtp-info": "url=trackID=0;seq=11143;rtptime=3800890684,url=trackID=1;seq=1463;rtptime=675774483"
    }
    2021-02-26T07:27:15.424Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP ENDPOINT PLAYING MEDIA STREAM: Driveway (STREAM:f9753a38-3002-4cac-a622-9179a5535956)
    2021-02-26T07:27:15.426Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP CLIENT PLAYING MEDIA STREAM: Driveway (STREAM:f9753a38-3002-4cac-a622-9179a5535956)
    2021-02-26T07:27:20.233Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP CLIENT SOCKET CLOSED
    2021-02-26T07:27:20.235Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP CLIENT DETACHED FROM STREAM: Driveway (STREAM:f9753a38-3002-4cac-a622-9179a5535956)
    2021-02-26T07:27:20.243Z [INFO]  [192.168.1.25:59366 <H15AG78Md>] RTSP ENDPOINT SOCKET CLOSED [192.168.1.25:59366 <H15AG78Md>]
    


  • I also tested my old echo show 1st gen, and this driveway camera works (as do the others) flawlessly on the old echo show technology.


Log in to reply