Sorry Aldo, no clue with that, what is the output of the service when you
make a manual request?

Anyway, I think you can safely ignore that error.

Regards,

Juan L
On Dec 28, 2012 11:07 PM, "Aldo Zavala" <[email protected]> wrote:

> Sure, this is the smsbox.log output of a service SMS.
>
> 2012-12-28 20:20:05 [46897] [2] DEBUG: HTTP: Creating HTTPClient for
> `192.168.8.188'.
> 2012-12-28 20:20:05 [46897] [2] DEBUG: HTTP: Created HTTPClient area
> 0x28b6b070.
> 2012-12-28 20:20:05 [46897] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <192.168.8.188>
> 2012-12-28 20:20:05 [46897] [3] INFO: sendsms used by <aldo_user107>
> 2012-12-28 20:20:05 [46897] [3] INFO: sendsms sender:<aldo_user107:2265>
> (192.168.8.188) to:<5038845319> msg:<This is a TEST message.>
> 2012-12-28 20:20:05 [46897] [3] DEBUG: Stored UUID
> 1becd6dd-0d47-465d-8cc7-7e1e0e149c5b
> 2012-12-28 20:20:05 [46897] [3] DEBUG: message length 81, sending 1
> messages
> 2012-12-28 20:20:05 [46897] [3] DEBUG: Status: 202 Answer: <Sent.>
> 2012-12-28 20:20:05 [46897] [3] DEBUG: Delayed reply - wait for bearerbox
> 2012-12-28 20:20:05 [46897] [0] DEBUG: Got ACK (0) of
> 1becd6dd-0d47-465d-8cc7-7e1e0e149c5b
> 2012-12-28 20:20:05 [46897] [0] DEBUG: HTTP: Resetting HTTPClient for
> `192.168.8.188'.
> 2012-12-28 20:20:05 [46897] [1] DEBUG: HTTP: Destroying HTTPClient area
> 0x28b6b070.
> 2012-12-28 20:20:05 [46897] [1] DEBUG: HTTP: Destroying HTTPClient for
> `192.168.8.188'.
> 2012-12-28 20:20:05 [46897] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
> 2012-12-28 20:20:05 [46897] [8] DEBUG: HTTP: Received response:
> 2012-12-28 20:20:05 [46897] [8] DEBUG: Octet string at 0x28ac19f0:
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   len:  148
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   size: 1024
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   immutable: 0
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 58 2d 50 6f 77 65 72 65 64
> 2d 42 79 3a 20 50 48   X-Powered-By: PH
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 50 2f 35 2e 34 2e 36 0d 0a
> 43 6f 6e 74 65 6e 74   P/5.4.6..Content
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 2d 74 79 70 65 3a 20 74 65
> 78 74 2f 68 74 6d 6c   -type: text/html
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 3b 20 63 68 61 72 73 65 74
> 3d 55 54 46 2d 38 0d   ; charset=UTF-8.
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 0a 43 6f 6e 74 65 6e 74 2d
> 4c 65 6e 67 74 68 3a   .Content-Length:
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 20 30 0d 0a 44 61 74 65 3a
> 20 53 61 74 2c 20 32    0..Date: Sat, 2
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 39 20 44 65 63 20 32 30 31
> 32 20 30 34 3a 32 30   9 Dec 2012 04:20
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 3a 31 37 20 47 4d 54 0d 0a
> 53 65 72 76 65 72 3a   :17 GMT..Server:
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 20 6c 69 67 68 74 74 70 64
> 2f 31 2e 34 2e 33 31    lighttpd/1.4.31
> 2012-12-28 20:20:05 [46897] [8] DEBUG:   data: 0d 0a 0d 0a
>                       ....
> 2012-12-28 20:20:05 [46897] [8] DEBUG: Octet string dump ends.
> 2012-12-28 20:20:05 [46897] [5] ERROR: Failed to convert msgdata from
> charset <UTF-8> to <UTF-8>, will leave as is.
> 2012-12-28 20:20:05 [46897] [5] INFO: No reply sent, denied.
> 2012-12-28 20:20:11 [46897] [8] DEBUG: HTTP: Server closed connection,
> destroying it <192.168.8.188:80:0::><0x28af4e80><fd:28>.
>
>
> Aldo Zavala
> ________________________________________
> From: Juan Luis Gómez Correa [[email protected]]
> Sent: Friday, December 28, 2012 7:57 PM
> To: Aldo Zavala
> Cc: [email protected]
> Subject: Re: smsbox: Failed to convert msgdata from charset <UTF-8> to
> <UTF-8>
>
> Glad that helped!
>
> Sadly I don't have an explanation for the error you are seeing, can
> you paste a typical output from your service? Is it possible for your
> service to not output any answer and see if that fixes your problem?
>
> Regards,
>
> Juan L
>
> On 28/12/2012, at 22:37, Aldo Zavala <[email protected]> wrote:
>
> > I used to have this:
> >   max-messages = 2
> >   omit-empty = true
> >
> > And now after changed it to max-messages = 0 it finally made the trick
> you are right... I failed to read again the docs... I just did't consider
> that it's necessarily to read it again after upgrade my opensmpp,
> bearerbox, sqlbox to latest SVN... but considering that many things can
> change from one *old* version to latest... I should do it... again thanks!
> >
> > By the way the smsbox log line:  "ERROR: Failed to convert msgdata from
> charset <UTF-8> to <UTF-8>, will leave as is."  is still appearing.. even
> when I setup all my php.ini and inetrnal variables to use UTF-8, also I put
> this on kannel:  "alt-charset = UTF-8"
> >
> > Any idea what causes that?
> >
> > Thanks again!
> >
> >
> > Aldo Zavala
> >
> > ________________________________________
> > From: Juan Luis Gómez Correa [[email protected]]
> > Sent: Friday, December 28, 2012 7:00 PM
> > To: Aldo Zavala; [email protected]
> > Subject: Re: smsbox: Failed to convert msgdata from charset <UTF-8> to
> <UTF-8>
> >
> > Hi Aldo, as you can see from the docs:
> >
> > "This service grabs any SMS with two words and 'www' as the first
> >     word, and then does an HTTP request to an URL which is taken from
> >     the rest of the message. Any result is sent back to the phone
> >     (or requester), but is truncated to the 160 characters that will
> >     fit into an SMS message, naturally."
> >
> > So, the problem you're facing is that kannel is trying to "parse" your
> > service answer as an SMS, and assuming it's an html, then kannel can't
> > convert this answer to an SMS hence the error SMS you're receiving.
> >
> > To avoid this problem your service must not output any answer, then add
> > this variables to the sms-service group:
> >
> > max-messages = 0
> >
> > omit-empty = true
> >
> >
> >
> > Hope this helps!
> >
> >
> > Juan L
> >
> >
> > On 12/28/12 7:57 PM, "Aldo Zavala" <[email protected]> wrote:
> >
> >> am I the only one that has faced this situation...? come on...
> >>
> >> thanks guys!
> >>
> >>
> >> Aldo Zavala
> >> ________________________________________
> >> From: Aldo Zavala
> >> Sent: Monday, December 17, 2012 11:25 AM
> >> To: [email protected]
> >> Subject: smsbox: Failed to convert msgdata from charset <UTF-8> to
> <UTF-8>
> >>
> >> Hi, I am constantly getting this message: "Failed to convert msgdata
> from
> >> charset <UTF-8> to <UTF-8>" from the smsbox.log, it happens after
> execute
> >> a sms service, the process flow works as bearerbox executes the remote
> >> server script, the remote server process the information and request a
> >> sms submission back to bearerbox and then smsbox generated these log
> >> files and it sends the service SMS plus an annoying message that says:
> >> "Result cannot be represented as an SMS message" every time. Could this
> >> be a bug?
> >>
> >> Thanks in advance!
> >>
> >> Aldo Zavala
> >
> >
>

Reply via email to