[OpenSER-Devel] issue with received in REGISTER reply

Dan Pascu dan at ag-projects.com
Tue Dec 18 07:39:34 UTC 2007


The reply for a REGISTER will include a received param to the contact 
header which is included in double quotes. However it doesn't escape the 
content before doing so which results in a bad param string if the 
received param already contains quotes.

Consider this simple example:

received = sip:1.2.3.4:5060;p1="AbQ"

The contact will look like:

Contact: 
<sip:10.0.0.1:5060>;q=1;expires=600;received="sip:1.2.3.4:5060;p1="AbQ""

which is invalid.

-- 
Dan



More information about the Devel mailing list