< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
Jason,Thanks!I looked in the wiki and found nothing. Do you have a link to something specific?What's h_CallInfo and where's it defined?Bill Kovar
From: jason.fischl@xxxxxxxxx [mailto:jason.fischl@xxxxxxxxx] On Behalf Of Jason Fischl
Sent: Thursday, May 18, 2006 6:36 PM
To: Kovar, William (Bill)
Cc: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [reSIProcate] Need info on SipMessage.addHeader() argumentsYou wouldn't use the addHeader method directly. Have you looked at http://wiki.resiprocate.org?
Here's how you would add a Call-Info header.
SipMessage msg;
msg.header (h_CallInfo) = Data("foobar");
On 5/18/06, Kovar, William (Bill) <bkovar@xxxxxxxxx> wrote:I'm looking to add a Header into a SIP msg before sending it out and assume addHeader() is the right way to go. However, the signature is confusing to me. Can someone explain the method args??SipMessage::addHeader(Headers::Type header, // what's this?? Would it be GenericUriconst char* headerName, // what's this?? Would it be "Call-Info"int headerlen, // I assume this is the length of headerNameconst char* start, // points to header data, a.k.a. the 'info' part as per RFC3261int len) // length of startI'm not sure about the first 2 args. Can someone set me right?Also, if I'm adding a Call-Info header, is everything that I want to add after the "Call-Info:" part in the 'start' argument, including the info-param(s)? Or is there some special way to add them in.Thanks!!Bill Kovar
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel