12-17-2021 05:22 AM
Dears,
I am writing a JAVA class for my CVP VXML server. this JAVA class will have to send an SMS toward an SMS gateway. the Call toward this SMS gateway is a REST call.
if the message content is in English, the API call works fine and the SMS gateway respond with 200 OK. now if the message content is in Arabic, the SMS gateway is not responding at all.
to note that i tried to encode the message using UTF-8 encoding.
Any idea on the issue whenever i send the message body in Arabic or a mix of Arabic and English ?
Regards,
Solved! Go to Solution.
12-26-2021 06:20 AM
As a test, what if you rule out your custom Java, and instead use the native CVP REST element to do a test SMS. Does that work?
12-17-2021 06:56 AM
12-20-2021 04:36 AM
Hi ,
I tried sending the message in English with UTF-8 encoding at it fails as well.
The SMS gateway Team are claiming that they are receiving anything on their end.
Appreciate your feedback on this matter please.
Kind regards,
12-20-2021 07:33 AM
Before you continue to you need to have the SMS team is they are able to see your requests. Can they see English only messages? If so, maybe there's something in the way that's discarding your requests.
david
12-20-2021 08:52 AM
The SMS Gateway team are saying that they are not receiving anything from the VXML server when I set the encoding to UTF-8.
I was wondering if the VVB is not able to browse the VXML document when the characters are encoded.
Anything needs to be set on the VVB ??
regards,
12-21-2021 06:43 AM
Time to break out RTMT and check out the MIVR logs from the VVB. Get the logs for an english SMS and the same encoded SMS message.
david
12-21-2021 10:53 AM
Hi David,
I will get the logs and try to analyze them, and will share them with you as well.
Regards,
12-19-2021 06:51 AM
This may sound strange, but in addition to doing the test @david.macias noted below, I would also try and see if you're able to send another non-English SMS like Chinese as an example. We had a client that had issues of this nature with foreign character sets and it was around the UTF-8 encoding on their side.
This way, if you see a similar issue with multiple non-English languages, you might be able to narrow it down.
You may also find this of note if you have the logs.
12-19-2021 11:30 AM
i will try Todo the above 2 tests and will get back to you by tomorrow
12-21-2021 10:00 PM
Hi Bill,
None of the languages are being sent when we encode the URL of the REST API or even the body of the Message.
And what logs are you referring in your previous reply? Anything I can look at on the CVP VXML server or even on the VVB other than the MIVR logs?
Thank you for your kind support
12-24-2021 05:28 AM
So are you able to do SMS for these other languages not via VVB via some type of REST client?
In other words, does it only not work with VVB and does everywhere else? Or do all foreign language SMS fail?
12-24-2021 09:02 AM
Hi Bill,
First I want to note that I am trying to call the SMS gateway using the action element(java class)
Whenever I try to send a rest call toward the SMS gateway with the message body other than the English language, Call studio will save the class in UTF-8 encoding mode. So after I save the class, and build the java project then pass the compiled class to the call flow, the VXML server is not sending any request toward the API. although when I go to the application Logs, I see the proper URL, but no response from the SMS gateway. Now if I change the body to english and save the java class with Cp1252 encoding, the class works fine and the SMS gateway will respond properly. So in brief, my SMS gateway is not responding the the action element when the class is saved in UTF-8 encoding mode.
To note that the same call form postman is working fine.
Thank you for your feedback
Regards,
12-26-2021 06:20 AM
As a test, what if you rule out your custom Java, and instead use the native CVP REST element to do a test SMS. Does that work?
12-29-2021 10:28 AM
Thank you a lot Bill. It worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide