[reSIProcate] add header
Scott Godin
slgodin at icescape.com
Mon Apr 17 08:18:17 CDT 2006
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 at list.sipfoundry.org
[mailto:resiprocate-devel-bounces at list.sipfoundry.org] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20060417/10130657/attachment.htm>
More information about the resiprocate-devel
mailing list