Actually, when I am connecting to SMSC using another SMPP simulator, I am
able to receive message with @, but when I am using kannel for the same
SMSC, this @ is getting converted in "I". Any suggestion ???
i had this problem the other way round not long ago. in order to get @
into my messages i need to send ASCII 161. on my _outgoing_ messages, in
PHP i do the following:
$message = str_replace('@',chr(161),$message);
as you can see here:
http://www.asciitable.com/
ASCII 161 is some kind of weird 'i' with an accent over it. so on your
incoming messages, try doing:
$message = str_replace(chr(161),'@',$message);
you can see what the str_replace and chr functions do in PHP here:
http://www.php.net/str_replace
http://www.php.net/chr
which should allow you to find an appopriate function in your language of
choice.
cheers
iain
Ashwani Kumar
Sr Engineer
Professional Service
Phone:
+91 1126686000
Fax:
+91 11 26671230
Mobile:
+91 9910761010
Web:
www.telegentelecom.com
This message contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
exclusively for the use of the addressee(s) named above. Any disclosure,
distribution, copying or use of the information by others is strictly
prohibited. If you are not the addressee, or a person responsible for
delivering the message to the addressee, or if you have simply received this
message in error, please do not make any use of it nor disclose any of its
contents to anyone and please advise the sender by immediate reply and
delete the original message. E-mails are susceptible to corruption,
interception and unauthorized amendment, Tele-Gen does not accept any
liability for any such changes or for their consequences and maintains the
right to take legal action where necessary. Thank you for your co-operation
and compliance.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 24, 2007 2:32 AM
To: ashwani; [email protected]
Subject: Re: receive special character from kannel
known problem, , search the mailing list for the subject of @
in short, your smpp smsc is transcoding @ to a different character.
check when you send @ how the message appears in the handset.
the usual solution is to check the incoming messages for the ASCII code of
the
letter the smsc use to replace @ with, and to replace that with the proper
value.
there is a snippet of php code provided in the maling list as well
cheers
seik
On Fri, Feb 23, 2007 at 05:21:51PM +0530, ashwani wrote:
Hi all,
I am using kannel 1.4.1, I am having problem in receiving messages
from SMSC (I am using SMPP) which have special character (spl @).When
I receive message on my application, the @ sign is converted to "i".
Is it a know problem or I am doing something wrong???
Ashwani Kumar
Sr Engineer
Professional Service
Phone:
+91 1126686000
Fax:
+91 11 26671230
Mobile:
+91 9910761010
Web:
[1]www.telegentelecom.com
[cid:[email protected]]
This message contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
exclusively for the use of the addressee(s) named above. Any
disclosure, distribution, copying or use of the information by others
is strictly prohibited. If you are not the addressee, or a person
responsible for delivering the message to the addressee, or if you
have simply received this message in error, please do not make any use
of it nor disclose any of its contents to anyone and please advise the
sender by immediate reply and delete the original message. E-mails are
susceptible to corruption, interception and unauthorized amendment,
Tele-Gen does not accept any liability for any such changes or for
their consequences and maintains the right to take legal action where
necessary. Thank you for your co-operation and compliance.
References
1. http://www.telegentelecom.com/