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

[reSIProcate-users] Content-type header


Hi All,
 
I hope it is the right forum to ask this question.
 I am using resiprocate basicmessage application to send one message to remote SIP phone.
I need to set "Content-Type: text/plain ;charset=iso-8859-1" otherwise I get unsupported MediaType error.
By adding following line of code I can get "Content-Type: text/plain "
 
clientDum.getMasterProfile()->addSupportedMimeType(MESSAGE, Mime("text", "plain"))
 
I want to add charset = UTF-8 in content-type header. So what extra work I need to do?
 
I tried by adding following codes in resip\dum\BaseCreator.cxx  makeInitialRequest()

SharedPtr<SipMessage> mLastRequest;

mLastRequest->header(h_ContentType).param(p_charset) = "UTF-8";
 
but failed to get desired result still "Content-Type: text/plain "
 
Please help.
 
Regards,
  ND