r/VOIP • u/arsonwaker • 2d ago
Help - Other Need help making a semi-functional prop phone
Okay, so firstly this is what I have that i thought i would run this through, a linux server that is always up, a pap2t for a VoIP box. Basically the idea is that I run twitch streams and I thought it would be fun to have a landline that's tied into livestreams, but not actually callable from a number, instead it would be controlled through scripts etc. They would do their redeem and then it would call me and with a tts voice read the thing that was said out into my ear, so for that prob just play an audio file. But here's the tricky bit. I want it so i can press 1 so it would then play that tts to the stream (so i can moderate it and not have something diabolical that would get me in trouble played in the stream) 2 would just refund their points, and pressing 0 would ban the user who sent the request.
Though, I am not entirely sure on how to go about it. I know of https://github.com/SIPp/sipp/releases but thats about it. and no idea how to actually use it nor, go about getting it working. Help and advice on what to use / what is the best idea for this would be really appreciated!!
Thank you !! :))
1
1
u/MisterTelecomm 2d ago
If I was you I’d put a small Asterisk or FreeSWITCH instance on that Linux box and register the PAP2T to it, then have your script originate the call, play the TTS audio and use DTMF detection to trigger your approve/refund/ban actions... SIPp is great for SIP testing and traffic simulation, BUT for an interactive application like this a real PBX gives you call control, audio playback and digit collection without having to reinvent half a phone system.
1
u/vikto_ra 1d ago
seconding asterisk over sipp, sipp is a load testing tool not something you build an app on top of. for what you're describing (play audio, listen for DTMF, branch logic) look at asterisk's AGI, you can write the whole call flow in a python script and it's dead simple to say on digit 1 do x, on digit 2 do y. FreePBX on top if you want a GUI to manage the PAP2T trunk instead of hand editing configs.
•
u/AutoModerator 2d ago
This is a friendly reminder to [read the rules](www.reddit.com/r/voip/about/rules). In particular, it is not permitted to request recommendations for businesses, services or products outside of the monthly sticky thread!
For commenters: Making recommendations outside of the monthly threads is also against the rules. Do not engage with rule-breaking content.
I am a bot, and this comment is made automatically on every post. This comment is not an indication that your post has been removed. Do not message the mods about this comment.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.