Hi
Have you tried to urlencode() your message before inserting it to the xml
request?
Regards
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
Visitenos en www.perusms.com
On Thu, Apr 30, 2015 at 6:55 PM, Michael Epstein <[email protected]>
wrote:
> Hi All,
>
> I am trying to send a message with XML post to smssender:
>
> 2015-04-30 23:16:46 [8030] [3] DEBUG: XMLParsing: XML: <<?xml
> version="1.0"?>
> <message>
> <submit>
> <da><number>1XXXXXXXXXX</number></da>
> <oa><number>1YYYYYYYYYY</number></oa>
> <ud>0123456789</ud>
> <meta-data>?smpp?</meta-data>
> <dcs>
> <coding>0</coding>
> </dcs>
> <statusrequest>
> <dlr-mask>31</dlr-mask>
> <dlr-url>ZZZZZZ</dlr-url>
> </statusrequest>
> <from>
> <username>UUUUUU</username>
> <password>PPPPPPPP</password>
> </from>
> <to>SMSC</to>
> </submit>
> </message>>
> 2015-04-30 23:16:46 [8030] [3] INFO: sendsms used by <UUUUUU>
> 2015-04-30 23:16:46 [8030] [3] INFO: sendsms sender:<UUUUUU:1YYYYYYYYYY>
> (PPP.PPP.PPP.PPP) to:<multi-cast> msg:<^A#Eg<89>>
>
> As you can see the msg becomes gibberish.
>
> I have tried all coding [0,1,2] nothing worked.
>
> If there is any non-numberic chars in the message everything works.
>
> It also doesn't seem to be SMSC dependent since I have tired different
> providers all the same result.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Mike
>
>
>
>
>