< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
Data[] aHeaders = {"xx","yy","zz","11"};
int nHeaders = 4;
SharedPtr<SipUserProfile> profile = "">
ClientPagerMessageHandle cpmh = mDum.makePagerMessage(NameAddr(toURI),profile);
auto_ptr<Contents> content(new PlainContents(Data(message)));
for(int i=0; i< nHeaders; i+=2){
Data name = aHeaders[i];
Data value = aHeaders[i+1];
UnknownHeaderType h_customHeader(name);
content->header(h_customHeader).push_back(StringCategory(value));
//error C2664: 'resip::H_ContentType::Type &resip::Contents::header(const resip::H_ContentType &) const' : cannot convert parameter 1 from 'resip::UnknownHeaderType' to 'const resip::H_ContentType
}
cpmh.get()->page(content);