Anonymous CallerId and (Un)conditional Forwarding with Twilio - twilio

When forwarding calls to a twilio number using unconditional forwarding from a mobile phone like this:
*21*0031123456789#
I never get information about the original caller id, or better, I get +266696687 which is the equivalent for ANONYMOUS.
This is a sample of the request parameters that twilio sends
/twilioml?AccountSid=AC9xxxxxxxxxxxxxxxxxx&ToZip=&FromState=&Called=%2B31123456789&FromCountry=LS&CallerCountry=LS&CalledZip=&Direction=inbound&FromCity=&CalledCountry=NL&CallerState=&CallSid=CAxxxxxxxxxxxxxxxxxxxx&CalledState=&From=%2B266696687&CallerZip=&FromZip=&ApplicationSid=APxxxxxxxxxxxxxxxxx&CallStatus=ringing&ToCity=&ToState=&To=%2B31123456789&ToCountry=NL&CallerCity=&ApiVersion=2010-04-01&Caller=%2B266696687&CalledCity=
If I try a conditional call forwarding like this one for example:
*61*0031123456789#
/twilioml?AccountSid=AC9xxxxxxxx&ToZip=&FromState=&Called=%2B31123456789&FromCountry=NL&CallerCountry=NL&CalledZip=&Direction=inbound&FromCity=&CalledCountry=NL&CallerState=&CallSid=CAxxxxxxxxxxxxxxx&CalledState=&From=%2B315555555&CallerZip=&FromZip=&ApplicationSid=APxxxxxxxxxxxxxxxxxx&CallStatus=ringing&ToCity=&ToState=&To=%2B31123456789&ToCountry=NL&CallerCity=&ApiVersion=2010-04-01&Caller=%2B315555555&CalledCity=
In this case, assuming that my number is +315555555, the caller id information is my own number and not the original number that called my phone
I'm trying this from Vodafone Netherlands but I haven't tried with another operator yet.
Is there anyway to make this work? Is it a Vodafone (Netherlands) issue or something at the Twilio side because otherwise I'm afraid this is a major setback to our solution.
Thanks in advance

Can you try this example: https://www.twilio.com/labs/twimlets/forward ?
If that also fails, there's something wrong with the entire process, potentially related to your phone number or carrier.
If it does work, there's probably an error in your TwiML. Would you be able to share the underlying code? Or at least whatever is generated?
Either way, we should be a little closer to the underlying problem. :)

According to Twilio it's an operator issue

Related

Is it possible to relay/forward messages from contact A to contact B using Twilio on WhatsApp?

I would like to be able to have a single phone number that holds a list of contacts. And then for contact A to be able to send a message to that phone number that looks like this: "Fred: Hi fred!", which would then get relayed by Twilio and sent onward to contact B named Fred like so "Alex said: Hi fred!"
So, is it even possible to relay/forward messages from contact A to contact B using Twilio considering?
If there is what would be an indicated way to go about this in python?
Yes, this is absolutely possible :)
In this scenario, you need a Twilio number that acts as a "Man in the middle" and forwards all messages. There is a blog post that describes almost the scenario you mentioned. The only difference is that this sample will use the phone number instead of a contact name before the colon.
+1 415 12341234: Hi, how are you doing?
+1 415 56785678: Good, any you?
Instead of
Fred: Hi, how are you doing?
Alex: Good, any you?
But it shouldn't be too hard to use a JSON object that maps names and phone numbers inside the Twilio function. If you want to go the extra mile, you could probably use an API to sync your contacts as well. But that only works if your address book/ contacts app has an API.

Twilio Voicemail (forwading to cell phone)

I am currently building a call forwarding system with Twilio. I am routing calls to my cell phone. The problem I am having is with the voicemail. My regular cell phones voicemail will pickup sometimes where I want to play a custom message of the business they are calling.
I understand you can use the dial time out. But, I've found that in cases where two calls are coming in on top of each other or in other instances it will still end up going to the regular cell phones voicemail.
My question is, is there any other way around this? I could press a button when I answer like 1 or something if that would work. But, I'm just not seeing a way of doing this. Ideally I would want a 100% success rate with forwarding to the proper voicemail.
Thanks in advance.
You want human detection, you can find more details at the link below, but you use the Dial verb with Number Noun URL parameter (Whisper) and Say/Gather verbs to announce yourself to the dialed party and have them enter any key to answer the call. If they don't enter a key, you know it was the voicemail that answered and direct the inbound call accordingly.
Alternatives to AMD

Twilio voice <gather> with fieldtype

I'm trying to gather data from the caller like their email address.
In twilio autopilot \collect\ there is a fieldtype TWILIO.EMAIL where it will automatically detect email address in the speech and it really do well (also the other fieldtypes)
But in twilio voice \gather\ there's no fieldtype to do that job and it returns
johncarlo#gmail.com to john carlo at gmail com
Is there any way in the docs to apply fieldtype in \gather\?
btw, I'm using \gather\ because some questions are dynamic (depends on the answer on the previous question)
Thanks
Twilio Developer Evangelist here. 👋
I don't think that's possible with gather (will double-check though).
Is there any way in the docs to apply fieldtype in \gather\? btw, I'm using \gather\ because some questions are dynamic (depends on the answer on the previous question)
Autopilot may do the job just fine though. Did you discover the redirect property? Using redirect you can dynamically route to different tasks depending on an answer. :)
Hope that helps. Let me know how it goes. 😊

Anatomy of a Porch.com SMS lead alert

I would like to design the SMS referral link for a lead alerts application. (So the pro would receive the SMS message on their device with a link to click through to the job request details.) I'd like to make it secure and scalable. The link below arrives in the SMS as a shortened URL. That much I understand.
Porch.com does something similar and I'd like to know what the strategy is behind each segment in the URL (or your best estimation). Can someone help me understand?
Here is an example: (Thanks Porch.com)
https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
Twilio developer evangelist here.
First of all, this isn't really a question for Stack Overflow. This is a place for asking questions about code that doesn't work in order to get it to work.
Having said that, the more I looked at the URL as I was commenting on this question, the more I feel I worked out. This is my idea of what the URL is saying.
Here's the URL again: https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
The random string in the URL, 3fd55669-d7cf-4655-892e-252080c34a79, looks like it is the identifier for the project itself. It's long and random, like a uuid, so it would be hard to guess, but can uniquely identify the project.
The email is presumably the email address of the pro that the SMS was sent to, so that the return on sending SMS projects to them can be measured.
The referrerSource is then used to measure how each of their referring sources is performing.
The only parameter that is impossible to really guess at is the c. Removing it (in fact, removing any or all of the query parameters) didn't change the result of loading the page. This implies that it is just another tracking parameter.
Hope that helps.

Twilio API call retrying limit

I was trying to implement voice call using Twilio API(Using node twilio wrapper) in which it would require to retry x number of times if call not answered. It seems that if i ignore call from Twilio, it keeps trying automatically. So, is there any way i can set the retying limit to particular number of times?
Thanks in advance.
Twilio evangelist here.
As far as I know we do not have any auto-retry behavior built into Twilio, so its odd that you are seeing this behavior. I'd suggest sending an email over to help [at] twilio.com with some example CallSids. Our awesome support team can work directly with you to help figure out whats going on.
Hope that helps.

Resources