I got an email from Twilio saying there were errors. That was great, because there had been no other indication of a failure, so there wasn’t much to go on.
A link to get the last 24 hours of errors is Twilio | Login.
Here are the errors and my responses.
Error - 32101 SIP: Invalid phone number
SIP: Invalid phone number: The called number is not correctly formatted.
The numbers I were trying to call were not E.164 formatted, which requires a
+ (plus) at the beginning of the number, before the country code.
I don’t know how to type that on the T9 keyboard on the WP810. But I do know how to add numbers to the device via the web interface, so I did that.
Future goal: figure out how to type + on the WP810.
Changing that in the contacts and calling a number then gave me a new error. Yay!
Error - 32100 Trial accounts can only call verified caller IDs.
SIP: Trial accounts can only call verified caller IDs: Trial accounts can only call verified caller IDs.
Ah, this is so folks don’t spam others on trial accounts. A verified number is one you verify you own, so you may use it for testing purposes. Which was a conundrum for me, because I didn’t know if I could get it working so I didn’t want to upgrade, but I also didn’t have a number I could verify to test it.
Then I recalled there was a testing number! If I could make that call, then I’d know it worked, and would upgrade to a paid account (which I would use).
The test number is +14154758378, and calling it fortunately gave me a different error message! Now we’re getting somewhere!
Error - 32204 Invalid Caller ID
SIP: ‘From’ phone number not verified: The caller-ID wp810 is unverified. SIP Trunking terminating calls to PSTN must use a valid Caller ID in the From Field. A Valid Caller ID is either a DID you have purchased from Twilio or a verified Caller ID.
Oh wow, this took me a while to figure out, I thought it wasn’t gonna work, because I’ve go no damn idea how to set the Caller ID on the WP810.
Fortunately just searched the user guide PDF for the word “FROM” until I got some description of how “Caller ID Display” is configured, and was able to figure out I would use the E.164 number associated with my SIP trunk (leased from Twilio) as the
SIP User ID, and the login credential in
Authenticate ID, which would put the appropriate data in the FROM field for the request.
And boom, it worked!
First I called the test number and it worked, and then I called @susan and while the connection was not the best (my wifi spot is on an over-saturated part of the mobile network), it called and worked fine, and I now have a working touch-tone phone for a dollar and some change a month.