I am trying to figure out a way to send a call to Twilio either using an API or something else (maybe even PSTN call in format: xxx-xxx-xxxx,, yyy-yyy-yyyy where xxx-xxx-xxxx is Twilio number and yyy-yyy-yyyy the “destination number”).
Then have the twilio “relay” that call, sending out pre-programmed business name and number as caller ID to the destination number.
Business case:
Company A is spinning off a different division. When calls are made on behalf of this division, the caller ID cannot say “Company A”. It must say “company B” with the designated #.
Ok to register a diff acc w Twilio for company B if needed.
I don't think that you can pass info like a templated phone number placeholder to Twilio, itself. However, I think that this case might be a good use of the Gateway pattern. Basically, with the Gateway pattern, you create an API that wraps around and adapts to Twilio, itself. Thus, your consumers call your API and they pass dynamic company names and phone numbers as parameters to your API, and your code in the gateway then marshalls that into the body a Twilio request as per Twilio's quick start docs.
Twilio developer evangelist here.
You can set a caller ID when making a phone call. But caller IDs are phone numbers, not text strings, so this is not possible to do. The name that shows up when you receive a call is the name that you set for the contact in your own phone's address book.
I would recommend that if company A starts splitting off and doing different business to company B to just get company A a new phone number.
Related
I'm new to the Twilio API. I'd like to verify whether a set of phone numbers is "in service" with our account. These are phone numbers like PN0c8XXXX...... and is there a way to send numbers in bulk to be sure that they are associated with our account and in working order? I see a call like this (would Sid be our PN0c8... number?):
GET https://verify.twilio.com/v2/Services/{Sid}
but not clear if this is what we want or if it supports batch mode. Any ideas?
I'm not entirely sure what you mean by verifying a set of phone numbers in "in service" with your account.
However, you can check the details of a phone number in your account using the Incoming Phone Numbers API. If you have a phone number SID, the ID that starts with PN, you can fetch an individual phone number resource by making a request to:
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{PhoneNumberSid}.json
There isn't an API request that allows you to send multiple SIDs, but you can list all your incoming phone numbers and then check against that list in your own code.
As an aside, the URL you asked about in the question is the Twilio Verify API. Verify allows you to verify user's phone numbers over SMS or voice, and can also perform verification via TOTP, push notification or emails. It's meant for verification or two factor authentication.
So I am trying to track more information from our order confirmation emails or shipping confirmation emails. I have read online that tracking pixels can track IP addresses, devices, locations, and so on. I have added something like the following code to our emails to track email opens:
<img src="https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXX-X&t=event&cid=test&cn=test&cs=email&ec=pixel&ea=open&el=my_email" width=1 height=1 style="display:block;">
Is there a way to get any more data using this method? Or do I have to use some other service in combination with the code in the emails?
Is there a way to get any more data using this method?
Sure, manually crafting GA requests is called measurement protocol in Google Analytics jargon. You can add/override a wide list of fields, here's the complete list from the documentation for référence:
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
And an article, also from official Google docs, related to email tracking with measurement prorocol (event though it is quite short):
https://developers.google.com/analytics/devguides/collection/protocol/v1/email
Bé careful for the value used with the cid parameter, as it is used to.discriminate between clients. Using the same value everywhere will count every open as coming from the same user. But I believe the value "test" provided here is just for the sake of the example.
Please also be careful not to send any PII data to GA (name, postal adress, ...)
So say a website has been updated, or some such statistic was put in (by a third party). Now, if I wanted to get this statistic sent to my phone (and this wasn't an option on the website), what would I do?
My first inclination would be to check if this site has a public API to pull information from. If that is so, you could make a server application that polls the API and sends you the data through an sms service like twillio.
I think this would be the most simple and straightforward approach.
Here is the use case:
I want to develop a rest api to send email so that anyone who want to send email to anybody, can use this api.
Now say one client want to send an email BUT before sending the email, he want to do some book keeping. Say, want to store the sender, receiver information in DB. However, not every client want to store those information.
So, in this case which design pattern will be perfect? I am thinking of using strategy but before that I want to evaluate the options. It would be great help, if anyone provides some input
I have an application that uses Dialogic voice boards with PRI phone lines. We make phone calls on behalf of schools and spoof the caller ID to get the school's telephone number to display. When making outbound calls, we set the school's phone number in gc_makecallblk.isdn.origination_phone_number. That works great.
The problem is that our phone vendor is using the caller ID number when determining billing rates, and so most of our calls are getting billed as in-state calls, which are more expensive. I've been told by the vendor that I need to set the BTN (billing telephone number, he also called it ANI, but I think that is a more generic term) to get the correct, out-of-state, billing rates.
I have searched Dialogic's API documentation and I have not been able to find any information about setting the BTN. Are there any Dialogic/Telephony experts out there who know how to set it?
What protocol are you talking about and is this on TDM or VoIP? I am an Aculab expert and we have similar products to Dialogic so perhaps I could help.
It could be that you simply need to set the "National/International" call parameter or edit the ANI (also known as CLI). The more information you can share, the better.
ChrisL#Aculab