Open fallowu opened 1 year ago
[2022-11-04 09:57:40] [14.71ms] SELECT * FROM
channelsWHERE
channels.
deltimeIS NULL AND ((
channels.
channelid= '37070000081318000001')) ORDER BY
channels.
id` ASC LIMIT 1
[1 rows affected or returned ]
time="2022-11-04T09:57:40+08:00" level=trace msg="new tx Call-ID: 2022-11-04 09:57:40"
time="2022-11-04T09:57:40+08:00" level=trace msg="send request,to: 10.10.20.166:5020 txkey: Call-ID: message: \n BYE sip:37070000081318000001@3707000008 SIP/2.0\r\nSupported: \r\nAllow: INVITE, ACK, CANCEL, MESSAGE, REGISTER\r\nVia: SIP/2.0/UDP 10.10.20.160:5060;branch=z9hG4bKpIKHb1HnlFWnxNzNman9qWhNZlrO7uhw;rport\r\nCSeq: 1 BYE\r\nFrom: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nTo: sip:37070000081318000001@3707000008\r\nCall-ID: \r\nContact: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nMax-Forwards: 70\r\nUser-Agent: GoSIP\r\nContent-Type: application/sdp\r\n\r\n"
time="2022-11-04T09:57:40+08:00" level=trace msg="writeTo 502 , [::]:5060 -> 10.10.20.166:5020 \n BYE sip:37070000081318000001@3707000008 SIP/2.0\r\nSupported: \r\nAllow: INVITE, ACK, CANCEL, MESSAGE, REGISTER\r\nVia: SIP/2.0/UDP 10.10.20.160:5060;branch=z9hG4bKpIKHb1HnlFWnxNzNman9qWhNZlrO7uhw;rport\r\nCSeq: 1 BYE\r\nFrom: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nTo: sip:37070000081318000001@3707000008\r\nCall-ID: \r\nContact: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nMax-Forwards: 70\r\nUser-Agent: GoSIP\r\nContent-Type: application/sdp\r\n\r\n"
time="2022-11-04T09:57:52+08:00" level=trace msg="readFrom 530 , 10.10.20.166:5020 -> [::]:5060 \n MESSAGE sip:37070000081118000002@3707000008 SIP/2.0\r\nVia: SIP/2.0/UDP 10.10.20.166:5020;rport;branch=z9hG4bK429721690\r\nFrom: sip:37070000081118000002@3707000008;tag=2022138496\r\nTo: sip:37070000081118000002@3707000008\r\nCall-ID: 1687913856\r\nCSeq: 20 MESSAGE\r\nContent-Type: Application/MANSCDP+xml\r\nMax-Forwards: 70\r\nUser-Agent: IP Camera\r\nContent-Length: 164\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
(C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:1066
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:387
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/callback_update.go:106
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:888
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/main.go:446
D:/beast/gosip/gosip/db/gorm.go:50
D:/beast/gosip/gosip/sip/keepalive.go:41
D:/beast/gosip/gosip/sip/handler.go:56
)
[2022-11-04 09:57:52] [13.67ms] UPDATE devices
SET active
= 1667527072, host
= '10.10.20.166', port
= '5020', source
= '10.10.20.166:5020', uptime
= 1667527072, uri
= 'sip:37070000081118000002@3707000008' WHERE devices
.deltime
IS NULL AND ((deviceid='37070000081118000002'))
[1 rows affected or returned ]
time="2022-11-04T09:57:52+08:00" level=trace msg="send response,to: 10.10.20.166:5020 txkey: Call-ID: 1687913856 message: \n SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 10.10.20.166:5020;rport;branch=z9hG4bK429721690\r\nFrom: sip:37070000081118000002@3707000008;tag=2022138496\r\nTo: sip:37070000081118000002@3707000008\r\nCall-ID: 1687913856\r\nCSeq: 20 MESSAGE\r\n\r\n"
time="2022-11-04T09:57:52+08:00" level=trace msg="writeTo 226 , [::]:5060 -> 10.10.20.166:5020 \n SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 10.10.20.166:5020;rport;branch=z9hG4bK429721690\r\nFrom: sip:37070000081118000002@3707000008;tag=2022138496\r\nTo: sip:37070000081118000002@3707000008\r\nCall-ID: 1687913856\r\nCSeq: 20 MESSAGE\r\n\r\n"
time="2022-11-04T09:57:52+08:00" level=trace msg="new tx Call-ID: rYFU9YTDt7orQQG3c8VmNxdaagCL0Or6 2022-11-04 09:57:52"
time="2022-11-04T09:57:52+08:00" level=trace msg="send request,to: 10.10.20.166:5020 txkey: Call-ID: rYFU9YTDt7orQQG3c8VmNxdaagCL0Or6 message: \n MESSAGE sip:37070000081118000002@3707000008 SIP/2.0\r\nSupported: \r\nAllow: INVITE, ACK, CANCEL, MESSAGE, REGISTER\r\nVia: SIP/2.0/UDP 10.10.20.160:5060;branch=z9hG4bKrYFU9YTDt7orQQG3c8VmNxdaagCL0Or6;rport\r\nCSeq: 1 MESSAGE\r\nFrom: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nTo: sip:37070000081118000002@3707000008\r\nCall-ID: rYFU9YTDt7orQQG3c8VmNxdaagCL0Or6\r\nMax-Forwards: 70\r\nUser-Agent: GoSIP\r\nContent-Type: Application/MANSCDP+xml\r\nContent-Length: 142\r\n\r\n<?xml version=\"1.0\" encoding=\"GB2312\"?>\n
(C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:1066
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/callback_query.go:99
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:888
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/main.go:331
D:/beast/gosip/gosip/db/gorm.go:55
D:/beast/gosip/gosip/sip/devices.go:270
D:/beast/gosip/gosip/sip/handler.go:51
D:/Program Files/Go/src/runtime/asm_amd64.s:1594
)
[2022-11-04 09:57:52] [11.57ms] SELECT * FROM channels
WHERE channels
.deltime
IS NULL AND ((channels
.channelid
= '37070000081318000001') AND (channels
.deviceid
= '37070000081118000002')) ORDER BY channels
.id
ASC LIMIT 1
[1 rows affected or returned ]
(C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:1066
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:387
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/callback_update.go:106
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:888
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/main.go:467
D:/beast/gosip/gosip/db/gorm.go:42
D:/beast/gosip/gosip/sip/devices.go:285
D:/beast/gosip/gosip/sip/handler.go:51
)
[2022-11-04 09:57:52] [8.93ms] UPDATE channels
SET addtime
= 1667474444, uptime
= 1667527072, deltime
= NULL, channelid
= '37070000081318000001', deviceid
= '37070000081118000002', memo
= 'c166', name
= 'channel1', manufacturer
= 'GBT28181', model
= 'IP Camera', owner
= 'Owner', civilcode
= 'CivilCode', address
= 'Address', parental
= 0, safetyway
= 0, registerway
= 1, secrecy
= 0, status
= 'ON', active
= 1667527072, uri
= 'sip:37070000081318000001@3707000008', vf
= '', height
= 0, width
= 0, fps
= 0, streamtype
= 'push', url
= '' WHERE channels
.deltime
IS NULL AND channels
.id
= 1
[1 rows affected or returned ]
time="2022-11-04T09:57:52+08:00" level=trace msg="notify config not found channels.active"
time="2022-11-04T09:57:52+08:00" level=trace msg="send response,to: 10.10.20.166:5020 txkey: Call-ID: 1546788519 message: \n SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 10.10.20.166:5020;rport;branch=z9hG4bK692484468\r\nFrom: sip:37070000081118000002@3707000008;tag=422415801\r\nTo: sip:37070000082008000001@3707000008\r\nCall-ID: 1546788519\r\nCSeq: 20 MESSAGE\r\n\r\n"
time="2022-11-04T09:57:52+08:00" level=trace msg="writeTo 225 , [::]:5060 -> 10.10.20.166:5020 \n SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 10.10.20.166:5020;rport;branch=z9hG4bK692484468\r\nFrom: sip:37070000081118000002@3707000008;tag=422415801\r\nTo: sip:37070000082008000001@3707000008\r\nCall-ID: 1546788519\r\nCSeq: 20 MESSAGE\r\n\r\n"
time="2022-11-04T09:58:00+08:00" level=trace msg="closed tx Call-ID: 2022-11-04 09:58:00"
time="2022-11-04T09:58:00+08:00" level=trace msg="watch closed tx Call-ID: 2022-11-04 09:58:00"
time="2022-11-04T09:58:00+08:00" level=warning msg="checkStreamClosedFail response is nil 37070000081318000001 37070000081118000002 29B92709"
time="2022-11-04T09:58:00+08:00" level=debug msg="checkStreamStreamID 29B9270A 37070000081118000002"
time="2022-11-04T09:58:00+08:00" level=debug msg="checkStreamActiveDevice 29B9270A 37070000081118000002"
time="2022-11-04T09:58:00+08:00" level=debug msg="checkStreamClosed 29B9270A 37070000081118000002"
(C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:1066
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/callback_query.go:99
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/scope.go:888
C:/Users/beast/go/pkg/mod/github.com/panjjo/gorm@v1.0.1/main.go:331
D:/beast/gosip/gosip/db/gorm.go:55
D:/beast/gosip/gosip/sip/stream.go:124
C:/Users/beast/go/pkg/mod/github.com/robfig/cron@v1.2.0/cron.go:92
C:/Users/beast/go/pkg/mod/github.com/robfig/cron@v1.2.0/cron.go:165
)
[2022-11-04 09:58:00] [11.80ms] SELECT * FROM channels
WHERE channels
.deltime
IS NULL AND ((channels
.channelid
= '37070000081318000001')) ORDER BY channels
.id
ASC LIMIT 1
[1 rows affected or returned ]
time="2022-11-04T09:58:00+08:00" level=trace msg="new tx Call-ID: 2022-11-04 09:58:00"
time="2022-11-04T09:58:00+08:00" level=trace msg="send request,to: 10.10.20.166:5020 txkey: Call-ID: message: \n BYE sip:37070000081318000001@3707000008 SIP/2.0\r\nSupported: \r\nAllow: INVITE, ACK, CANCEL, MESSAGE, REGISTER\r\nVia: SIP/2.0/UDP 10.10.20.160:5060;branch=z9hG4bK8qc3YEkABId1TIa854kA8ZhOjMLOYcTC;rport\r\nCSeq: 1 BYE\r\nFrom: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nTo: sip:37070000081318000001@3707000008\r\nCall-ID: \r\nContact: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nMax-Forwards: 70\r\nUser-Agent: GoSIP\r\nContent-Type: application/sdp\r\n\r\n"
time="2022-11-04T09:58:00+08:00" level=trace msg="writeTo 502 , [::]:5060 -> 10.10.20.166:5020 \n BYE sip:37070000081318000001@3707000008 SIP/2.0\r\nSupported: \r\nAllow: INVITE, ACK, CANCEL, MESSAGE, REGISTER\r\nVia: SIP/2.0/UDP 10.10.20.160:5060;branch=z9hG4bK8qc3YEkABId1TIa854kA8ZhOjMLOYcTC;rport\r\nCSeq: 1 BYE\r\nFrom: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nTo: sip:37070000081318000001@3707000008\r\nCall-ID: \r\nContact: \"sipserver\" sip:37070000082008000001@3707000008;tag=Kh1XBJ5Hp30H7ynppJ5j\r\nMax-Forwards: 70\r\nUser-Agent: GoSIP\r\nContent-Type: application/sdp\r\n\r\n"`
从连接中读到udp包,四个字节。这种的应该是检测端口或者扫描端口出现的数据包,不是正常sip数据包,所以会有这个错误提示。
从连接中读到udp包,四个字节。这种的应该是检测端口或者扫描端口出现的数据包,不是正常sip数据包,所以会有这个错误提示。
那我的日志是正常的吗。主要遇到一个问题就是,我只运行了gosip,然后想获取直播流地址,但获取失败。是必须要运行ZLMediaKit服务吗
你必须要运行zlm才行,gosip只是做通信,视频直播流的接受转码等都是zlm处理的。
抓包看看
你好,按照教程只配置gosip服务,海康相机gb28181也填好了。但是解析响应出现这中错误。不知道如何处理?![image](https://user-images.githubusercontent.com/3997050/199868659-eca7f452-b329-4a8d-99b1-9434f5606d6b.png)