Hi,

you should URL encode the text parameter as required by HTTP protocol.
Basicly change spaces to '+' and other special symbols to ther
equivalent %hexcode or use some function which does url encode.

And please do not cross-post to the lists. This issue should have gone to users.

On Fri, 25 Mar 2005 14:41:09 +0530, Arun Gowda <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi every one,
> 
>             We have connected to an operator SMSC through CIMD2 protocol
> using Kannel stable 1.4.0.
> 
> This is a production environment and we are running this since six months
> without any problems. 
> 
> But from last week we are getting error messages from the SMSC when we
> submit any message having special characters.
> 
>  
> 
> Here is the message and logs
> 
>  
> 
> # lynx --dump
> "http://127.0.0.1:16016/cgi-bin/sendsms?username=XXXX&password=XXXX&to=123456789000&from=test&text=INITIAL
> 04871426 UEM 845-620-6001 fhapps17 - FILESYSTEM opt-bmc FSCapacity greater
> tha n threshold. Threshold FSCapacity between 0 and 90%. Send At 23 33"
> 
>  
> 
> Logs
> 
> 2005-03-25 14:30:13 [27059] [9] DEBUG: boxc_receiver: sms received
> 
> 2005-03-25 14:30:13 [27059] [9] DEBUG: send_msg: sending msg to box:
> <127.0.0.1>
> 
> 2005-03-25 14:30:13 [27059] [7] DEBUG: CIMD2[nokia]: sending message
> 
> 2005-03-25 14:30:13 [27059] [7] DEBUG: CIMD2[nokia]: sending <03:137   
> 021:123456789000        027:test        056:0   055:0044:0   033:INITIAL
> 04871426 UEM 845-620-6001 fhapps17 - FILESYSTEM opt-bmc FSCapacity greater
> tha n threshold. Threshold FSCapacity between 0 and 90%.%20Send At 23 33    
>  E3>
> 
> 2005-03-25 14:30:13 [27059] [7] DEBUG: CIMD2[nokia]: received: <53:137 
> 021:123456789000        900:302 00>
> 
> 2005-03-25 14:30:13 [27059] [7] ERROR: CIMD2[nokia]: Submit message response
> contained error message:
> 
> 2005-03-25 14:30:13 [27059] [7] ERROR: code 302: Syntax error in user data
> parameter
> 
> 2005-03-25 14:30:13 [27059] [1] DEBUG: Dumping 0 messages and 0 acks to
> store
> 
> 2005-03-25 14:30:19 [27059] [7] DEBUG: CIMD2[nokia]: sending <40:139    46>
> 
>  
> 
> We were able to send the same messages a week before with out any problem.
> The operator says he has not done any changes in our account settings.
> 
>  
> 
> Can any one suggest what has gone wrong here?
> 
>  
> 
> warm regards,
> 
> Arun 


-- 
Dziugas

Reply via email to