<Command name="Send">
<Request type="POST">
<!-- Twilio requires the AccountSid to be specified in the URI -->
<!-- path, so customers will have to override this in the IA -->
<!-- broker config. The '__your_accountsid__' value that will -->
<!-- appear by default should help make this clear. -->
<!-- The account user name must also be set to the AccountSid, -->
<!-- even though it's not used here, because it's used by the -->
<!-- Basic authentication scheme. The account password is the -->
<!-- AuthToken for the account. -->
<WebService path="/2010-04-01/
Accounts/adkndiwnefin/Messages"/>
<Authentication scheme="Basic"/>
<Value name="${Password}" element="AuthToken"/>
<Value name="${CallingNumber}" element="PhoneNumber"/>
<Value name="${CalledNumber}" element="To"/>
<Value name="${CallingNumber}" element="From"/>
<Value name="${Message}" element="Body"/>
<!-- Twilio doesn't provide any client message ID field to hold -->
<!-- the interaction ID. In order to pass it through to the -->
<!-- delivery receipt, include it as a query parameter here. -->
<!-- Twilio's own parameters will appear in the request body -->
<!-- (since they do a POST), and this parameter will appear in the -->
<!-- URI path. i3sms parses both of these for a POST service. -->
<!-- Value name="${ExternalDeliveryStatusURI}?url.com" element="StatusCallback"/ --> </Request>
</Command>
</Commands>
</Send>
This is my send portion of the XML - the yellow are the places I customized it. Under Account tab, I don't have the +1 - just the 10 digit phone number. It's been so long, I'm not completely certain what I'm using as the password, but the Twilio string is in the field for login.
I haven't used it in awhile, but I checked outbound yesterday, and I received my test with no problems.
I hope this helps!
Let me know if I can provide any more info.
Thanks, Nicole
------------------------------
Nicole
------------------------------
Original Message:
Sent: 05-24-2018 08:34
From: Brian Smith
Subject: SMS and Twilio
This is what I have in the outgoing path: /2010-04-01/Accounts/AC6c7f8dfcb1dd8b7c8e6844cdfc1ac967/Messages
I did not add any credentials to the xml file as I assumed the broker configuration would pass those along from the accounts tab. What are you using for the local address? I added our 10 digit number but I'm not sure whether a leading +1 or 1 is necessary.
Thanks for your responses so far!
------------------------------
Brian Smith
Incept
Original Message:
Sent: 05-23-2018 16:53
From: Nicole Rastall
Subject: SMS and Twilio
Also, if you make changes to the broker, I found bouncing the SMS service was necessary after a few changes.
Just recalled that bit of info.
Thanks,
------------------------------
Nicole
Original Message:
Sent: 05-23-2018 16:21
From: Brian Smith
Subject: SMS and Twilio
I'm attempting to just get the initial send to go out. I have it writing to the SMS tables but I'm not seeing the response get to Twilio. I believe I have everything configured correctly and in the logs I can see the http response request but it looks like I'm getting a 301 error after that. I saw this post and tried to comment out some portions of the twilio xml file in the resources folder but I'm not sure that it is actually being used. Any idea what I may be missing?
Thanks,
Brian
------------------------------
Brian Smith
Incept
Original Message:
Sent: 05-23-2018 15:58
From: Nicole Rastall
Subject: SMS and Twilio
I had the same issue. When I started testing, it worked fine (Jan 2017). Then we tabled the project. I started up again late 2017 and now, when I send a message inbound, I can answer, and respond, but the next inbound in that conversation starts a new chat that then sustains for the duration of the conversation. I can't figure out how to avoid two conversations getting created from one inbound message. Just wondering if you are experiencing the same?
I haven't been able to figure it out. Hopefully someone posts here because I would like to see the answer as well.
Thanks!
Nicole
------------------------------
Nicole Rastall
Original Message:
Sent: 05-23-2018 09:48
From: Brian Smith
Subject: SMS and Twilio
I'm having issues with getting Twilio working correctly. I changed the XML but I don't know that it is taking the changes or not. Could you post an excerpt of the changes you made to get this working successfully?
------------------------------
Brian Smith
Incept
Original Message:
Sent: 02-26-2018 14:46
From: Nicole Rastall
Subject: SMS and Twilio
Originally posted by TroyT;36770 Yes, sometime last year Twilio changed their API, and you have to remove that StatusCallback element. I believe we have at least a few customers that are using Twilio, but the delivery receipt feature no longer works for them, because there is not a way to pass in metadata when a message is sent and have it passed back in the delivery receipt. The delivery receipt feature is built around being able to pass in our interaction ID when a message is sent, and get it back in the delivery receipt so we can map the delivery receipt to the corresponding interaction.
OK. I'll give it another test with it disabled. Thanks! Nicole