You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Juliusz Chroboczek 1158f11cb3 Avoid recursion in Param.Get. 6 months ago
.github/workflows Check out first before running tests 6 years ago
dialog Move prefs into dialog package, use python comments 6 years ago
dsp Move dialog handling into own package 6 years ago
example Move dialog handling into own package 6 years ago
fone Move dialog handling into own package 6 years ago
rtp Don't crash on short RTP packet. 6 months ago
sdp Fix incorrect check during SDP parsing. 6 months ago
sip Avoid recursion in Param.Get. 6 months ago
util use crypto/rand instead of math/rand 3 years ago
.gitignore Add github action 6 years ago
AUTHORS License gosip Apache 2.0 6 years ago
CONTRIBUTORS License gosip Apache 2.0 6 years ago
LICENSE License gosip Apache 2.0 6 years ago
README.md Update README.md 6 years ago
go.mod fix: use real port to request and add go.mod 6 years ago
go.sum fix: use real port to request and add go.mod 6 years ago

README.md

gosip

Version: 0.1

About

gosip (pronounced "gossip") is a library that lets you make phone calls using the Go programming language. It provides a full-stack SIP/RTP implementation that's tailored towards making calls over the PSTN through services such as Flowroute.

gosip is most suitable for backend telephony applications. This is especially true for apps that do interesting things with audio. gosip supports DSP out of the box by providing SSE optimised audio mixing, an assembly implementation of the µLaw codec (no other codecs are supported), and a comfort noise generator.

Telephony applications have traditionally been written on top of PBX systems like Asterisk via an extension interface. Frameworks such as Adhearsion have introduced further layers of abstraction to this unwieldy regime. These systems are slow, difficult to administer, and in many cases superfluous to the needs of the telephony app developer. gosip sets you free from Asterisk because you can have everything in a single easy-to-deploy binary.

gosip has excellent support for SRV/NAPTR failover by way of timeouts, ICMP refusal, and 502 Service Unavailable responses. It also supports SIP redirects as well as changing the audio/signalling path mid-call. But most importantly, gosip is lightweight enough that you can actually design your app to use a single process for each phone call (assuming your app is in the audio path.) By taking this non-monolithic approach to design, you can actually build a higher availability global telephony service with zero interruptions during software upgrades.

gosip parses SIP messages using the Ragel finite state machine compiler. Much of the BNF was copied directly from the SIP RFC. This implementation approach offers a fair amount of confidence that the parser is not only fast, but also correct and secure.

gosip is less suitable for PBX, IVR, and VoIP reselling. For these things, you should consider Asterisk, FreeSWITCH, or SER.

RFCs

Example RFCs