Skip to content

ossrs/srs-sip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRS-SIP

Sequence

sequenceDiagram
    Device ->> SRS-SIP : Register(GB28181)
    SRS-SIP ->>  SRS : Publish Request(gb/v1/publish)
    SRS ->> SRS-SIP : Response(with port)
    SRS-SIP ->>  Device : Auto Invite(GB28181)
    Device -->> SRS : Media Stream
    SRS -->> Client : Media Stream

Building from source

Pre-requisites:

  • Go 1.17+ is installed
  • GOPATH/bin is in your PATH

Then run

git clone https://github.com/ossrs/srs-sip
cd srs-sip
./bootstrap.sh
mage

Run

srs-sip -sip-port 5060 -media-addr 127.0.0.1:1985
  • sip-port : the SIP port, this program listen on, for device register with gb28181
  • media-addr : the API address for SRS, typically on port 1985, used to send HTTP requests to "gb/v1/publish"