[Serdev] How does SER handle special headers?
Sven Ehlert
ehlert at fokus.fraunhofer.de
Tue Jun 28 17:37:03 UTC 2005
Hello,
After reading the SER Developer guide I wonder how does SER handle some
special formed SIP messages where the header bodies to the same header
field are split among different lines, e.g.
INVITE ...
SomeHeader ...
Contact : <sip:user at here.com>
SomeOtherHeader ...
YetAnotherHeader ...
Contact: <sip:away at where.com>
AndAnotherHeader ...
Contact: <sip:me at there.com>
...
According to the (outdated?) Guide the parser incrementally parses the
message, and stores the first occurence of the Contact field in a
sip_msg->contact field.
I'm wondering where the rest will go, as it says that only the first
occurrence is stored there, further ones all go into the
sip_msg->headers field. But How are they there accessed later? And how
can they be found if the messages is constructed in the (well, highly
unlikely) format as mentioned above?
Did I miss something? Thanx for any advise!
Greetings
/Sven
More information about the Serdev
mailing list