For a school project I need to make a simple python program. I need ideas so if you have something that you want made for you then please post it here. I’ll release it here under a gnu general public license once I’ve finished.

  • 𝚝𝚛𝚔@aussie.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 days ago

    Heres an idea… I made it in PHP and bash, cause I’m terrible at programming. But it works well and would be a neat school project I reckon.

    Our VOIP provider provides webhooks. I have one setup so when someone rings, the webhook calls a script on my web server that looks up a phone book and then uses a Discord webhook to push what is essentially a more advanced caller ID to a private discord channel - their number, their name, company they represent, and some notes like “has a son Chris who plays football, married to Jill” or whatever.

    The “phonebook” lookup first tries a remote shared phonebook (which is given in a Yealink format), and after parsing that data it saves a copy of that remote phonebook before moving on to the rest of the script. If it cant call the remote phonebook for whatever reason, it falls back on using the last saved copy locally.

    The benefit of all this is that on my desktop I always know who’s calling and a bit of a blurb about them before I pick up the phone, and if I’m out of the office I know who’s trying to ring. Since I have VOIP on my phone as an extension I can technically have someone transfer the office to my mobile too so having the discord notification is handy when a transfer appears.

    The members of the private discord channel determines who sees the notifications, and having a single phonebook to update for everyone in the office means it’s always (… usually) kept up to date.