• she/her

annoying @vogon since 2014. still gay tho.
low energy software menace. i like taking photos, learning weird programming languages and being on the internet.


profile picture by
cohost.org/mleelunsford

this week i’ve read a bit around the topic of how Audio over IP works and it turns out moving the audio is a solved problem. you use RTP and an appropriate codec, which might be linear 24 bit PCM if you’re using AES67 hardware or AAC if you’re on Airplay. The difficult bit is the signaling. i’ve successfully figured out how to nail up an RTP steam using both ffmpeg and gstreamer and using both PCM and Opus. I’ve learned to write SDP files, and I’ve found VLC is way too fussy to talk to any multicast stream I could make. Also, I figured out how to send a SIP invite by hand, although I think from here I need code to do a full call establishment due to deadline timings.

Anyway, not sure where I’m going with this but it’s probably gonna be the dumbest mashup possible. Like a dial-in multicast Opus stream of my stereo. One thing that does seem clear is that you could probably, with a bit of cunning, initiate a phone call as a MITM, essentially making two SIP dialogs and then optionally dropping yourself out of the signaling circuit. Other open questions include whether you can SIP-dial directly to various providers rather than going through the PSTN which, to a large extent, is now mostly selling phone numbers rather than connectivity.


You must log in to comment.

in reply to @zip's post:

it's kind of wild how RTP is just like "okay, that's solved" and then EVERYTHING else is a flaming fucking disaster. there's 500 ways to do everything, none of them are complete, none work reliably, nothing agrees on syntax, every available stack shits the bed and explodes if you use the wrong grammar instead of making any kind of intelligent guesses, but then once it's nailed up, you just send RTP.

RTP is to voip (etc) as bitcoin miners are to post-2010s computer security. no matter how clever the wrapping protocol, no matter how brilliantly novel the Hack is, in the end it always delivers the exact same boring payload

Yup! Though I think parsers are getting stricter for two reasons, namely: being generous in what you accept is a security liability and also encourages not being strict about what you transmit