Skip to content

SIP Parser fail if a crypto line has session params #71

Description

@ypkoller

If a crypto line in the SDP offer contains session-params, the parser fails with the following error, causing the connection setup to fail entirely:

"error":"cannot parse srtp profile "2 AES_CM_128_HMAC_SHA1_80 inline:j/azhfJjX2cv+xwOOH8W7aks30PDRN7MzyRML7UX|2^48 UNENCRYPTED_SRTCP": invalid lifetime parameter "2^48 UNENCRYPTED_SRTCP": invalid exponent in 2^48 UNENCRYPTED_SRTCP: strconv.ParseUint: parsing "48 UNENCRYPTED_SRTCP": invalid syntax"}

Cause

The parser incorrectly treats the session parameter (e.g., "UNENCRYPTED_SRTCP") as part of the key lifetime, which causes strconv.ParseUint to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions