Hi Federico,
1. Do you use "consume_credentials()" function in first place? I repeat: this function removes Authorization header fields after using them.
It can give you more than 200 bytes of margin in typical situation. It is more than enough. What's more, you don't usually want to expose details of your authorization mechanism to outside world. Although we are talking about Digest authorization scheme, it is still interesting for malicious user to know how do you perform authorization and what are digest user names....
2. IMHO e, converting header field names to abbreviated form is actually <more> traumatic, than editing SDP. I rarely see UAs that use abbreviated form of SIP header fields.
-- Regards, Arek
----- Original Message ----- From: "Federico Giannici" giannici@neomedia.it To: "SER Users" serusers@lists.iptel.org Sent: Thursday, November 03, 2005 4:33 PM Subject: Re: [Serusers] Packets fragmentation and message reduction
OK, but what about the idea of rewriting all header field names using the compact form? It seems to me less traumatic than altering the SDP data.
Are there C functions in SER that replace a header name (and only the name, not the value) with a different one? Alternatively, are there C functions to find the pointer to the header field with a given name, delete it and insert a new one?
Thanks.