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

RE: [reSIProcate] add header


For the most part, what you are doing looks right.  Why do you have this line:

        resip::H_CallInfos h_CallInfos;

h_CallInfos should already be defined if you included SipMessage.hxx. 

 

 


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Kevin Wang
Sent: Friday, April 14, 2006 8:14 PM
To: resiprocate-devel
Subject: [reSIProcate] add header

 

I'm trying to add a Call-Info header to my OPTIONS request.

        resip::SipMessage& msg = _uacDum->makeOutOfDialogRequest(uasAor, _uacAor, resip::OPTIONS);

        resip::GenericURI gURI;
        resip::Data dataURI(" http://www.example.com");
        gURI.uri() = dataURI;
        resip::H_CallInfos h_CallInfos;
        msg.header(h_CallInfos).push_front(gURI); // this line is not working

        uacDum->send(msg);


But the Call-Info header value is always "<>" without any value inside. I noticed my URL is not inserted into CallInfos. Could anyone help me on how to add Call-Info header correctly? I'm guessing the parse container is not initialized but not sure how to do it.

Thank you!
Kevin