Hi, I agree with that, in the response, Server header should be used to tell its info to the peer, if it wants. And also, IMO, UAS should not copy User-Agent header into the response, even if it receives User-Agent header in the request. There is no requirement and no meaning just to copy any headers from the request to the response, unless otherwise stated like Call-ID, To, From, Via, Record-Route. Just copying headers into the response is nothing, at least.
I think User-Agent header should be a request header and "User-Agent" in the Table 3 in RFC 3261 should be marked as "R". Is this a bug? Note that User-Agent header in HTTP/1.1, RFC 2616, is request-header, which means it appears only in a request. Regards, Takuya > Section 20.41 of RFC3261 stats that the "User-Agent" header contains information > about the UAC originating the request. > According to the description, UAS can not insert its own info in the "User-Agent" > header. > > If the "User-Agent" header is present in a response, it should just copy the header > contents from the request. > > Generally, "Server" header is used to convey the info about the UAS in the > responses. Masashi, this should resolve your problem of conveying UAS information. > > Have fun, > NC > > [EMAIL PROTECTED] wrote: > > > > > Hi Masahi, > Option 2 would be recommended. The User-Agent > header in a SIP message always indicates the UAS that > originated it. I'm not certain though as to how many > UA's actually send User-Agent header in responses since > it's not mandatory for a UA to send this header in the > response. > > Regards, > Subhash. > > > > > > MasashiYamamoto > o.jp> To > [EMAIL PROTECTED] > 06/21/04 01:23 PM cc > [EMAIL PROTECTED], > [EMAIL PROTECTED] > a.edu > Subject > Re: [Sip-implementors] User-Agent > on UAS > > > > > > > > > > > Hi,Subhash > > For instance,if User-Agent header appeared in Initial INVITE, > which response do you recommend when UAS make a response? > Furthermore, which is general behavior UAS will do? > > 1) UAS sets the User-Agent header transparent;y which appeared in Initial > INVITE. > (It indicates information about UAC.) > 2) UAS sets the User-Agent header UAS which indicates UAS itself. > (It indicates information about UAS.) > 3) UAS delete the User-Agent header. > > Thanks in advance, > Masashi Yamamoto > > [EMAIL PROTECTED] wrote: > > > > > > > > > > > The User-Agent header can be used both > > in requests and in responses. Table 3 of the > > RFC does not restrict this header to only > > requests (the "where" column is empty for this > > header). So you can insert the header even in > > responses to indicate the UAS originating the > > response. > > > > Subhash. > > > > > > > > > > > MasashiYamamoto > > > > > o.jp> > To > > Sent by: [EMAIL PROTECTED] > > > sip-implementors- > cc > > [EMAIL PROTECTED] > > > ia.edu > Subject > > [Sip-implementors] User-Agent on > > > UAS > > > 06/21/04 12:51 PM > > > > > > > > > > > > > > > > > > > > > > > > > > I'm trying to get about Information about UAs(UAC,UAS) > > (Including Software Version etc..) > > > > RFC3261(20.41) says > > The User-Agent header field contains information about the UAC > > originating the request. > > > > Mustn't responses (200 etc..) contain User-Agent header? > > > > Or how can the information about UAs(especially about UAS) > > be acquired? > > > > Thanks in advance, > > Masashi Yamamoto > > > > > > _______________________________________________ > > Sip-implementors mailing list > > [EMAIL PROTECTED] > > http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors > > > > > > > > > _______________________________________________ > Sip-implementors mailing list > [EMAIL PROTECTED] > http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > Sip-implementors mailing list > [EMAIL PROTECTED] > http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors > -------- Takuya Sawada KDDI Corporation (KDDI) Garden Air Tower, 3-10-10, Iidabashi, Chiyoda-ku, Tokyo 102-8460, Japan Tel: +81-3-6678-2997 Fax: +81-3-6678-0286 [EMAIL PROTECTED] _______________________________________________ Sip-implementors mailing list [EMAIL PROTECTED] http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
