[Serdev] contact parser update

Jan Janak jan at iptel.org
Wed Jul 2 12:21:47 UTC 2003


Hello,

I fixed the contact parser today. Originally if Contact header field
contained a name-addr part (i.e. something like this:
Contact: "Jan Janak" <sip:jan at 195.37.78.248>) then the uri field of the
contact_t structure contained also the name part.

The new contact_structure has a new field called name which contains
only the name part (i.e. "Jan Janak" in the example above) and the uri
field contains only raw URI (i.e. 'sip:jan at 195.37.78.248'), so you can
use it directly as a URI.

Module writers: Please check your modules and update your code if
necessary. The following modules use contact_t structure somehow:

mangler
nathelper
registrar - Updated
tm/dlg - Updated
vm

You need to update your module if you extract the raw URI from 'uri'
field of contact_t somehow. You don't have to extract it anymore since the 
field now contains only the raw URI -- that will simplify your module a bit.

   Jan.



More information about the Serdev mailing list