[SR-Users] '302 Moved temporarily' contact parsing error

Sergiu Pojoga pojogas at gmail.com
Tue Oct 13 22:07:16 CEST 2020


Hmm, it's a tricky one, not sure actually.

https://tools.ietf.org/html/rfc3261#page-167

The answer might be in:

Even if the "display-name" is empty, the "name-addr" form MUST be used
if the "addr-spec" contains a comma, semicolon, or question mark.


On Tue, Oct 13, 2020 at 3:39 PM Sergiu Pojoga <pojogas at gmail.com> wrote:

> Aren't the Contact params supposed to be delimited by semicolon?
>
> On Tue, Oct 13, 2020 at 1:06 PM David VILLAUME <david.villaume at sewan.fr>
> wrote:
>
>> Hello,
>>
>>
>>
>> I see parsing errors on 302 contact header that seems compliant to RFC :
>>
>>
>>
>> Contact:<sip:172.16.0.21:5060>;q=0.5,<sip:172.16.0.22:5060>;q=0.25
>>
>>
>>
>> <core> [core/parser/parse_addr_spec.c:479]: parse_to_param(): invalid
>> character ',' in status 27: [;q=0.5]
>>
>>
>>
>> Is there an error in my contact or is it truly a parsing error ?
>>
>>
>>
>> Regards,
>>
>> David
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201013/a9e78dd7/attachment.htm>


More information about the sr-users mailing list