Ok, I am moving forward in my stupidity ! :))

I have figured out that CMS ERROR: 500 in MY CASE is:
1) My modem is, by default, in "text mode" for SMS sending and Kannel
(bearerbox) is sending messages in PDU mode
2) Kannel, as far as I can see can work only in PDU mode
3) I have to initialize my modem, not in "text mode", but in PDU mode

So, CMR ERROR: 500 is showing when there is some kind of inconsistency in
modem configuration (working in text mode trying to send PDU messages... or
vice versa) with having no specific and more precise explanation in error
description ... which sucks...

Now, I have another problem:
When try using minicom to work with modem using AT commands I can send
messages in PDU mode, let's say:
AT+CMGF=0;+CSCS="UCS2";+CMGS=25
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx Ctrl+Z

and part "xxxxxxxxxxx" I have converted using this tool
http://twit88.com/home/utility/sms-pdu-encode-decode

this procedure give me message on receiving phone. 

So, it should be same procedure in Kannel - just need to initialize modem in
proper way:
AT+CMGF=0 (work in PDU mode)
AT+CSCS="UCS2" (using Hex)
AT+CMGS=25 (calculated for every particular message, in our case calculated
by Kannel)
xxxxxxxxxxxxxx (calculated by Kannel, containing among other things SMS
Center number and text of SMS message)

So, I need to add AT+CMGF=0 and AT+CSCS="UCS2" withing init-string of my
Huawei E220 modem.
Till this moment, my initial script line in kannel.conf was:
init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1"

Now, when I add to above line: +CMGF=0; +CSCS=UCS2 
init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1;+CMGF=0;+CSCS=UCS2"

I have an error in bearerbox log file - ERROR: Initialization error....

I supose I am making mistake in sintax of "init-string = ..."

Any help will save me days of google-ing  ....






Knut Olafson wrote:
> 
> Regarding this comment that there is something relevant on this forum I
> have found just this link:
> 
> http://old.nabble.com/Kannel-can-not-send-sms-tc32930548.html#a32930548
> 
> but there is no help or solution for this problem. 
> 
> I have exact the same problem... Having no hep on this, I have upgraded to
> Kannel 1.5.0 version and problem persists.
> 
> On Google there is some comments but I can't find anything usefull. The
> most frequent comment is to check SIM card if it is full, and to check if
> you have enough credits on your SIM card. Both of this problems I don't
> have... .but still getting CMS ERROR 500.
> 
> I have found an BUG Report on Kannel's web site, regarding this problem,
> posted more that a year ago. But, if it is treated as bug it would be
> resolved by now.... So, I have concluded that developers treat this as NOT
> a bug.
> 
> In futher, analyzing log files myself, I have concluded that using URL for
> sending SMS the request is getting to smsbox and it processes request to
> bearerbox which cannot send that SMS (for Unknown reason) and put the
> message in queue. After that, bearerbox in cycle of 60sec trying to resend
> that message endlessly...
> 
> 
> 
> Willy Mularto-2 wrote:
>> 
>> please check google and or the archive ;)
>> 
>> 
>> 
>> 
>> On Jan 10, 2012, at 4:17 PM, Zaharia Constantin wrote:
>> 
>>>  
>>>  hy, i have this config   http://bin.cakephp.org/view/1699351229 and is
>>> working just fine for all the numbers on both modems, but when i try to
>>> send a message to this number 0729827318 i get this error:
>>>> 2012-01-10 11:11:25 [3708] [6] DEBUG: AT2[cosmote_SMSC]: <-- +CPMS:
>>>> "SM",0,40,"SM",0,40,"SM",0,40
>>>> 2012-01-10 11:11:25 [3708] [6] DEBUG: AT2[cosmote_SMSC]: <-- OK
>>>> 2012-01-10 11:11:26 [3708] [7] DEBUG: AT2[vodafone_SMSC]: --> AT^M
>>>> 2012-01-10 11:11:26 [3708] [7] DEBUG: AT2[vodafone_SMSC]: <-- OK
>>>> 2012-01-10 11:11:26 [3708] [7] DEBUG: AT2[vodafone_SMSC]: -->
>>>> AT+CPMS?^M
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: <-- +CPMS:
>>>> "SM",0,10,"SM",0,10,"SM",0,10
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: <-- OK
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]:
>>>> TP-Validity-Period: 24.0 hours
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: -->
>>>> AT+CMGS=18^M
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: <-- >
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: send command
>>>> status: 1
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: -->
>>>> 0011000A8170922837810000A705F4F29C5E06
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: --> ^Z
>>>> 2012-01-10 11:11:27 [3708] [7] DEBUG: AT2[vodafone_SMSC]: <-- >
>>>> 2012-01-10 11:11:29 [3708] [7] DEBUG: AT2[vodafone_SMSC]: <-- +CMS
>>>> ERROR: 500
>>>> 2012-01-10 11:11:29 [3708] [7] ERROR: AT2[vodafone_SMSC]: +CMS ERROR:
>>>> +CMS ERROR: 500
>>>> 2012-01-10 11:11:29 [3708] [7] ERROR: AT2[vodafone_SMSC]: +CMS ERROR:
>>>> An unknown error occurred (500)
>>>> 2012-01-10 11:11:29 [3708] [7] DEBUG: AT2[vodafone_SMSC]: send command
>>>> status: 1
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: handling message
>>>> (0x8d215e0 vs 0x8d215e0)
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: re-queing SMS not-yet-to-be
>>>> resent
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: handling message
>>>> (0x8d215e0 vs 0x8d215e0)
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: re-queing SMS not-yet-to-be
>>>> resent
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: time to sleep 30.00
>>>> secs.
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: gwlist_len = 1
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: handling message
>>>> (0x8d215e0 vs 0x8d215e0)
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: re-queing SMS not-yet-to-be
>>>> resent
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: handling message
>>>> (0x8d215e0 vs 0x8d215e0)
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: re-queing SMS not-yet-to-be
>>>> resent
>>>> 2012-01-10 11:11:29 [3708] [8] DEBUG: sms_router: time to sleep 30.00
>>>> secs.
>>> any ideea way? i have try everthing and is not working....
>> 
>> Willy Mularto
>> F300HD+MR18DE (NLC1725)
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Kannel-and-one-phone-number-produce-500-code-error-tp33112878p33194002.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to