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

[reSIProcate] Accessing a header by name determined at runtime


Hi all,

I'm trying to access a header's value by name - but with a name determined at runtime (e.g. Data headerName) rather than by a header token (e.g. h_To). I was assuming that ExtensionHeader could be used for this by passing in the name of the header when constructing the ExtensionHeader - but I just realised that it asserts that you're not trying to define a header which already exists, and so can't be used for dynamically accessing wellknown header types.

I appreciate this is a bit perverse & contrary to the way resip takes pains to nicely type & parse known header types - but can anyone suggest how I might do this?

thanks in advance,

Matthew.

--
Matthew Hodgson <matthew@xxxxxxxxxxxxx>
Media & Systems Project Manager
Tel: +44 (0) 845 666 7778
http://www.mxtelecom.com