< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

[reSIProcate] Re: MESSAGE to LCS failing


Hi Sandeep,

I would be surprised if LCS would accept a MESSAGE even if you put a charset-UTF-8 in there. LCS currently only supports session mode (i.e. conversations initiated within the context of an INVITE, etc.). I do not believe they will ever accept an unsolicited, pager-mode MESSAGE signal (unless it is within the context of an already created session).

Chris

Sandeep Sharma wrote:

Hi,

I am trying to send a MESSAGE to LCS but get back "Bad Request". I found
out from reliable sources that it would work if I put charset as part of
Content-Type.

In other words, right now I am sending:
Content-Type: text/plain

whereas LCS wants me to send:
Content-Type: text/plain ;charset=UTF-8

My question is: How do I put the charset in there? I looked at the
classes ContentType and Mime but could not find anything.

Thanks
Sandeep