├── .gitignore ├── examples ├── gb28181_server │ ├── main.go │ ├── makefile │ └── sip │ │ ├── broadcast.go │ │ ├── catalog.go │ │ ├── client.go │ │ ├── device.go │ │ ├── keepalive.go │ │ └── server.go └── sip_client │ ├── call_in │ └── main.go │ ├── call_out │ ├── main.go │ ├── makefile │ └── test.wav │ └── webrtc │ ├── main.go │ └── views │ └── index.html ├── go.mod ├── go.sum ├── pkg ├── authentication │ ├── auth.go │ └── auth_test.go ├── client │ ├── client.go │ └── handler.go ├── dialog │ ├── dialog.go │ ├── from.go │ ├── state.go │ └── to.go ├── gb28181 │ ├── broadcast.go │ ├── cmd_type.go │ ├── control.go │ ├── control__ptz.go │ ├── gb28181.go │ ├── handler.go │ ├── invite.go │ ├── keepalive.go │ ├── query.go │ ├── query__catalog.go │ ├── query__device_config.go │ ├── query__device_info.go │ ├── query__device_status.go │ └── query__preset_query.go ├── log │ └── log.go ├── message │ ├── address.go │ ├── body.go │ ├── content_type.go │ ├── header.go │ ├── header__accept.go │ ├── header__allow.go │ ├── header__allow_event.go │ ├── header__authorization.go │ ├── header__call_id.go │ ├── header__contact.go │ ├── header__content_length.go │ ├── header__content_type.go │ ├── header__cseq.go │ ├── header__date.go │ ├── header__event.go │ ├── header__expires.go │ ├── header__from.go │ ├── header__max_forwards.go │ ├── header__reason.go │ ├── header__record_route.go │ ├── header__request_uri.go │ ├── header__route.go │ ├── header__server.go │ ├── header__subject.go │ ├── header__subscription_state.go │ ├── header__supported.go │ ├── header__to.go │ ├── header__user_agent.go │ ├── header__via.go │ ├── header__warning.go │ ├── header__www_authenticate.go │ ├── message.go │ ├── params.go │ ├── parse.go │ ├── request.go │ └── response.go ├── method │ └── method.go ├── sdp │ └── sdp.go ├── server │ ├── client.go │ ├── handler.go │ └── server.go ├── sip │ └── sip.go ├── transport │ ├── listener.go │ ├── tcp.go │ ├── transport.go │ └── udp.go └── utils │ ├── branch_id.go │ ├── host.go │ ├── ip.go │ ├── ptz │ └── ptz.go │ ├── rand.go │ └── xml.go └── readme.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/.gitignore -------------------------------------------------------------------------------- /examples/gb28181_server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/main.go -------------------------------------------------------------------------------- /examples/gb28181_server/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/makefile -------------------------------------------------------------------------------- /examples/gb28181_server/sip/broadcast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/sip/broadcast.go -------------------------------------------------------------------------------- /examples/gb28181_server/sip/catalog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/sip/catalog.go -------------------------------------------------------------------------------- /examples/gb28181_server/sip/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/sip/client.go -------------------------------------------------------------------------------- /examples/gb28181_server/sip/device.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/sip/device.go -------------------------------------------------------------------------------- /examples/gb28181_server/sip/keepalive.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/sip/keepalive.go -------------------------------------------------------------------------------- /examples/gb28181_server/sip/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/gb28181_server/sip/server.go -------------------------------------------------------------------------------- /examples/sip_client/call_in/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/sip_client/call_in/main.go -------------------------------------------------------------------------------- /examples/sip_client/call_out/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/sip_client/call_out/main.go -------------------------------------------------------------------------------- /examples/sip_client/call_out/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/sip_client/call_out/makefile -------------------------------------------------------------------------------- /examples/sip_client/call_out/test.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/sip_client/call_out/test.wav -------------------------------------------------------------------------------- /examples/sip_client/webrtc/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/sip_client/webrtc/main.go -------------------------------------------------------------------------------- /examples/sip_client/webrtc/views/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/examples/sip_client/webrtc/views/index.html -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/go.sum -------------------------------------------------------------------------------- /pkg/authentication/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/authentication/auth.go -------------------------------------------------------------------------------- /pkg/authentication/auth_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/authentication/auth_test.go -------------------------------------------------------------------------------- /pkg/client/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/client/client.go -------------------------------------------------------------------------------- /pkg/client/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/client/handler.go -------------------------------------------------------------------------------- /pkg/dialog/dialog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/dialog/dialog.go -------------------------------------------------------------------------------- /pkg/dialog/from.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/dialog/from.go -------------------------------------------------------------------------------- /pkg/dialog/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/dialog/state.go -------------------------------------------------------------------------------- /pkg/dialog/to.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/dialog/to.go -------------------------------------------------------------------------------- /pkg/gb28181/broadcast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/broadcast.go -------------------------------------------------------------------------------- /pkg/gb28181/cmd_type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/cmd_type.go -------------------------------------------------------------------------------- /pkg/gb28181/control.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/control.go -------------------------------------------------------------------------------- /pkg/gb28181/control__ptz.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/control__ptz.go -------------------------------------------------------------------------------- /pkg/gb28181/gb28181.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/gb28181.go -------------------------------------------------------------------------------- /pkg/gb28181/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/handler.go -------------------------------------------------------------------------------- /pkg/gb28181/invite.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/invite.go -------------------------------------------------------------------------------- /pkg/gb28181/keepalive.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/keepalive.go -------------------------------------------------------------------------------- /pkg/gb28181/query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/query.go -------------------------------------------------------------------------------- /pkg/gb28181/query__catalog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/query__catalog.go -------------------------------------------------------------------------------- /pkg/gb28181/query__device_config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/query__device_config.go -------------------------------------------------------------------------------- /pkg/gb28181/query__device_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/query__device_info.go -------------------------------------------------------------------------------- /pkg/gb28181/query__device_status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/query__device_status.go -------------------------------------------------------------------------------- /pkg/gb28181/query__preset_query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/gb28181/query__preset_query.go -------------------------------------------------------------------------------- /pkg/log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/log/log.go -------------------------------------------------------------------------------- /pkg/message/address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/address.go -------------------------------------------------------------------------------- /pkg/message/body.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/body.go -------------------------------------------------------------------------------- /pkg/message/content_type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/content_type.go -------------------------------------------------------------------------------- /pkg/message/header.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header.go -------------------------------------------------------------------------------- /pkg/message/header__accept.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__accept.go -------------------------------------------------------------------------------- /pkg/message/header__allow.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__allow.go -------------------------------------------------------------------------------- /pkg/message/header__allow_event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__allow_event.go -------------------------------------------------------------------------------- /pkg/message/header__authorization.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__authorization.go -------------------------------------------------------------------------------- /pkg/message/header__call_id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__call_id.go -------------------------------------------------------------------------------- /pkg/message/header__contact.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__contact.go -------------------------------------------------------------------------------- /pkg/message/header__content_length.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__content_length.go -------------------------------------------------------------------------------- /pkg/message/header__content_type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__content_type.go -------------------------------------------------------------------------------- /pkg/message/header__cseq.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__cseq.go -------------------------------------------------------------------------------- /pkg/message/header__date.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__date.go -------------------------------------------------------------------------------- /pkg/message/header__event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__event.go -------------------------------------------------------------------------------- /pkg/message/header__expires.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__expires.go -------------------------------------------------------------------------------- /pkg/message/header__from.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__from.go -------------------------------------------------------------------------------- /pkg/message/header__max_forwards.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__max_forwards.go -------------------------------------------------------------------------------- /pkg/message/header__reason.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__reason.go -------------------------------------------------------------------------------- /pkg/message/header__record_route.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__record_route.go -------------------------------------------------------------------------------- /pkg/message/header__request_uri.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__request_uri.go -------------------------------------------------------------------------------- /pkg/message/header__route.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__route.go -------------------------------------------------------------------------------- /pkg/message/header__server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__server.go -------------------------------------------------------------------------------- /pkg/message/header__subject.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__subject.go -------------------------------------------------------------------------------- /pkg/message/header__subscription_state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__subscription_state.go -------------------------------------------------------------------------------- /pkg/message/header__supported.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__supported.go -------------------------------------------------------------------------------- /pkg/message/header__to.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__to.go -------------------------------------------------------------------------------- /pkg/message/header__user_agent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__user_agent.go -------------------------------------------------------------------------------- /pkg/message/header__via.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__via.go -------------------------------------------------------------------------------- /pkg/message/header__warning.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__warning.go -------------------------------------------------------------------------------- /pkg/message/header__www_authenticate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/header__www_authenticate.go -------------------------------------------------------------------------------- /pkg/message/message.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/message.go -------------------------------------------------------------------------------- /pkg/message/params.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/params.go -------------------------------------------------------------------------------- /pkg/message/parse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/parse.go -------------------------------------------------------------------------------- /pkg/message/request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/request.go -------------------------------------------------------------------------------- /pkg/message/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/message/response.go -------------------------------------------------------------------------------- /pkg/method/method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/method/method.go -------------------------------------------------------------------------------- /pkg/sdp/sdp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/sdp/sdp.go -------------------------------------------------------------------------------- /pkg/server/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/server/client.go -------------------------------------------------------------------------------- /pkg/server/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/server/handler.go -------------------------------------------------------------------------------- /pkg/server/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/server/server.go -------------------------------------------------------------------------------- /pkg/sip/sip.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/sip/sip.go -------------------------------------------------------------------------------- /pkg/transport/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/transport/listener.go -------------------------------------------------------------------------------- /pkg/transport/tcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/transport/tcp.go -------------------------------------------------------------------------------- /pkg/transport/transport.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/transport/transport.go -------------------------------------------------------------------------------- /pkg/transport/udp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/transport/udp.go -------------------------------------------------------------------------------- /pkg/utils/branch_id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/utils/branch_id.go -------------------------------------------------------------------------------- /pkg/utils/host.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/utils/host.go -------------------------------------------------------------------------------- /pkg/utils/ip.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/utils/ip.go -------------------------------------------------------------------------------- /pkg/utils/ptz/ptz.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/utils/ptz/ptz.go -------------------------------------------------------------------------------- /pkg/utils/rand.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/utils/rand.go -------------------------------------------------------------------------------- /pkg/utils/xml.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/pkg/utils/xml.go -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-av/gosip/HEAD/readme.md --------------------------------------------------------------------------------