You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by fclose <fr...@closebase.com> on 2013/02/26 08:47:31 UTC
Camel smpp special characters for sending sms
Hello,
I'm working on a project where I'm sending messages coming from an activeMQ
queue to an sms-c.
This works fine except that I'm currently unable to send special characters
used in french like: é è à : those characters are not displayed correctly on
mobile phones.
Do you have any idea what I should change in my configuration to send those
characters correctly ?
Which smpp options should I change ? http://camel.apache.org/smpp.html
Is it the datacoding, encoding or alphabet I should change ? or probably the
combination of the 3.
I was told to use UCS2 for datacoding and alphabet but this didn't work
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Camel smpp special characters for sending sms
Posted by fclose <fr...@closebase.com>.
Hello,
I found the solution to my problem and I wanted to update you about it.
On the initial tests I did I was setting the dataCoding / alphabet (= 8
UCS2) as URI options.
This didn't work.
If I set the alphabet to UCS2 as a Producer Message Header and encoding =
UTF-16BE as URI options then it works :-)
(Note that I'm using a spring based endpoint configuration)
What I'm wondering is why setting the alphabet at the URI options is not
taken into account ?
Final question why is not possible to set the encoding as a producer message
headers ?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728300.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Camel smpp special characters for sending sms
Posted by fclose <fr...@closebase.com>.
I'll try to do that
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728203.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Camel smpp special characters for sending sms
Posted by Christian Müller <ch...@gmail.com>.
Can you provide a test case for it?
Sent from a mobile device
Am 26.02.2013 06:06 schrieb "fclose" <fr...@closebase.com>:
> already tried UTF-16BE without success.
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728174.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
RE: Camel smpp special characters for sending sms
Posted by fclose <fr...@closebase.com>.
already tried UTF-16BE without success.
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728174.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: Camel smpp special characters for sending sms
Posted by Zhemzhitsky Sergey <Se...@sberbank-cib.ru>.
Leave all the parameters as default except the encoding which should be set to UTF-16BE.
Best Regards,
Sergey Zhemzhitsky
Phone. +7 495 2580500 ext. 1246
-----Original Message-----
From: fclose [mailto:fred@closebase.com]
Sent: Tuesday, February 26, 2013 2:25 PM
To: users@camel.apache.org
Subject: Re: Camel smpp special characters for sending sms
Something strange if I try with alphabet = 8 and *dataCoding = 3*
I have an IllegalArgumentException
java.lang.IllegalArgumentException: *No enum const Alphabet with value 3*
bug ?
2013-02-26 11:19:49,386 ERROR [Camel (camel-1) thread #15 - JmsConsumer[immediatesms]] o.a.c.p.DeadLetterChannel [CamelLogger.java:215] Failed delivery for (MessageId: ID:3B4H5R1-56977-1361873931177-21:1:2:1:1 on
ExchangeId: ID-3B4H5R1-56949-1361873923297-0-11). Exhausted after delivery
attempt: 2 caught: java.lang.IllegalArgumentException: No enum const Alphabet with value 3. Processed by failure processor:
sendTo(Endpoint[jms://queue:DL-immediateSms] InOnly)
at org.jsmpp.bean.Alphabet.valueOf(Alphabet.java:85)
~[org.apache.servicemix.bundles.jsmpp-2.1.0_4.jar:na]
at
org.apache.camel.component.smpp.SmppSmCommand.determineAlphabet(SmppSmCommand.java:108)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppSmCommand.getShortMessage(SmppSmCommand.java:61)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppSubmitSmCommand.createSubmitSm(SmppSubmitSmCommand.java:93)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppSubmitSmCommand.execute(SmppSubmitSmCommand.java:45)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppProducer.process(SmppProducer.java:139)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
~[camel-core-2.10.3.jar:2.10.3]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
[camel-core-2.10.3.jar:2.10.3]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
[camel-core-2.10.3.jar:2.10.3]
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728163.html
Sent from the Camel - Users mailing list archive at Nabble.com.
_______________________________________________________
CONFIDENTIALITY NOTICE: This email and any files attached to it may be confidential. If you are not the intended recipient you are notified that using, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify the sender and delete this email.
Re: Camel smpp special characters for sending sms
Posted by fclose <fr...@closebase.com>.
Something strange if I try with alphabet = 8 and *dataCoding = 3*
I have an IllegalArgumentException
java.lang.IllegalArgumentException: *No enum const Alphabet with value 3*
bug ?
2013-02-26 11:19:49,386 ERROR [Camel (camel-1) thread #15 -
JmsConsumer[immediatesms]] o.a.c.p.DeadLetterChannel [CamelLogger.java:215]
Failed delivery for (MessageId: ID:3B4H5R1-56977-1361873931177-21:1:2:1:1 on
ExchangeId: ID-3B4H5R1-56949-1361873923297-0-11). Exhausted after delivery
attempt: 2 caught: java.lang.IllegalArgumentException: No enum const
Alphabet with value 3. Processed by failure processor:
sendTo(Endpoint[jms://queue:DL-immediateSms] InOnly)
at org.jsmpp.bean.Alphabet.valueOf(Alphabet.java:85)
~[org.apache.servicemix.bundles.jsmpp-2.1.0_4.jar:na]
at
org.apache.camel.component.smpp.SmppSmCommand.determineAlphabet(SmppSmCommand.java:108)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppSmCommand.getShortMessage(SmppSmCommand.java:61)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppSubmitSmCommand.createSubmitSm(SmppSubmitSmCommand.java:93)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppSubmitSmCommand.execute(SmppSubmitSmCommand.java:45)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.component.smpp.SmppProducer.process(SmppProducer.java:139)
~[camel-smpp-2.10.3.jar:2.10.3]
at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
~[camel-core-2.10.3.jar:2.10.3]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
[camel-core-2.10.3.jar:2.10.3]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
[camel-core-2.10.3.jar:2.10.3]
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728163.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel smpp special characters for sending sms
Posted by fclose <fr...@closebase.com>.
Hi,
yes I tried setting encoding to UTF-8, without success.
-- Frederic
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152p5728155.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel smpp special characters for sending sms
Posted by Willem jiang <wi...@gmail.com>.
Camel is using the UTF-8 by default.
Can you try to set the encoding to UTF-8 ?
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Tuesday, February 26, 2013 at 3:47 PM, fclose wrote:
> Hello,
>
> I'm working on a project where I'm sending messages coming from an activeMQ
> queue to an sms-c.
>
> This works fine except that I'm currently unable to send special characters
> used in french like: é è à : those characters are not displayed correctly on
> mobile phones.
>
> Do you have any idea what I should change in my configuration to send those
> characters correctly ?
>
> Which smpp options should I change ? http://camel.apache.org/smpp.html
>
> Is it the datacoding, encoding or alphabet I should change ? or probably the
> combination of the 3.
>
> I was told to use UCS2 for datacoding and alphabet but this didn't work
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-smpp-special-characters-for-sending-sms-tp5728152.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).