News for hackers. Stuff that matters.
Re:Ask HN: Most interesting tech you built for just yourself? by nashashmi on Friday April 28, 2023 @10:58PM (#35749603)
How did you do this
Re:Ask HN: Most interesting tech you built for just yourself? by Justin_K on Saturday April 29, 2023 @12:06AM (#35749935)
Probably twilio
Re:Ask HN: Most interesting tech you built for just yourself? by culi on Saturday April 29, 2023 @02:04AM (#35750446)
how can you use Twilio to reroute a call to your phone number?
Re:Ask HN: Most interesting tech you built for just yourself? by Scoundreller on Saturday April 29, 2023 @02:45AM (#35750641)
Either route all calls from that callerid to your twilio number, port your own phone number to twilio and route all other calls to your new number, or what I would do: replace my mom's phone with an ATA and setup a dialplan for how to route calls to the child's number.
Re:Ask HN: Most interesting tech you built for just yourself? by pigcat on Saturday April 29, 2023 @12:51PM (#35754638)
Yep, that's pretty much spot on :D

I never knew about ATA's! I think would have solved things a little more elegantly. Thanks!

Re:Ask HN: Most interesting tech you built for just yourself? by macNchz on Saturday April 29, 2023 @10:35AM (#35753244)
Many phone providers actually offer what they call “Selective Call Forwarding”, which allow you to set up a limited number of basic routing rules to forward calls coming from specific numbers.
Re:Ask HN: Most interesting tech you built for just yourself? by jskopek on Saturday April 29, 2023 @12:58PM (#35754704)
pigcat's brother here :)

In our case, my grandmother always calls my parents home phone number. The phone provider only offers simple call forwarding, so we route all calls to the home phone over to a Twilio number. We have a very simple Twilio Studio flow that routes calls from my grandmother's phone number to the call handler script we created, and all other calls are routed to my dad's cell phone number: https://share.cleanshot.com/ywwhzJ8H

We are a little lucky in that we can forward calls from our landline to a cell phone. If your relative is calling you directly on your cell phone, your carrier would need to offer selective forwarding for this strategy to work

Re:Ask HN: Most interesting tech you built for just yourself? by thawab on Saturday April 29, 2023 @02:29AM (#35750557)
on android you can use tasker to automate this: http://tasker.wikidot.com/call-forwarding . I think IOS has a shortcut that does the same.
Re:Ask HN: Most interesting tech you built for just yourself? by pigcat on Saturday April 29, 2023 @12:45PM (#35754578)
In our case it was a landline, but yeah something like this would work if it was mobile!
Re:Ask HN: Most interesting tech you built for just yourself? by oneplane on Saturday April 29, 2023 @09:45AM (#35752807)
There are many ways to do this. Asterisk and a rented VoIP line, a hosted PBX service you just rent and transfer your line to, a 'Web 2.0' variation of the same (like Twilio), or even a programmable desk phone.
Re:Ask HN: Most interesting tech you built for just yourself? by pigcat on Saturday April 29, 2023 @12:44PM (#35754572)
We use a custom twilio number, some rerouting logic (which is easily configured in twilio), and an api endpoint to determine the next relative that will answer. There is also a minimal frontend to configure things like who is on the roster, their break times, a place to upload a recording, and see call logs.

These are the steps we took:

1. Get a twilio number

2. All incoming phone calls to the home phone are redirected to that twilio number [1]

3. If incoming number == grandma, request from an api endpoint the next relative to dial. Redirect her call to them.

4. If no one is available, play the voice mail

5. If incoming number != grandma, redirect the call to dad's mobile number [2]

[1] A child comment by macNchz noted correctly about "Selective Call Forwarding". This would have simplified the process and we could have skipped step 5, but our telephone provider did not offer it.

[2] Note that this is a bit of a compromise in the setup. The home phone never rings anymore and all non-grandma calls go to dad's cell. But they were happy to accept this.