Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#64 closed enhancement (fixed)

Allow whitespaces at the end of SDP lines

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.5.10
Component: pjmedia Version: 0.5.9
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

Some UAs (non-compliant UAs, I might say) have a bad habit of adding whitespaces at the end of SDP lines. This is non-conformant, of course, but in the spirit of "be lenient on what you receive", the SDP parser should probably forgive this.

Thanks Briac Hardouin for pointing this out.

Change History (4)

comment:1 Changed 13 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

Done in r889:

Basically the approach in SDP parsing is: "Get only what you need and ignore anything else". Which means after we get all we need from an SDP line, ignore whatever else that is coming after that until newline is found.

comment:2 Changed 13 years ago by bennylp

More fix in r901.

comment:3 Changed 13 years ago by bennylp

  • Description modified (diff)

comment:4 Changed 13 years ago by bennylp

  • Description modified (diff)
Note: See TracTickets for help on using tickets.