diff --git a/lib/grammar.js b/lib/grammar.js index d8178e8..fb276fb 100644 --- a/lib/grammar.js +++ b/lib/grammar.js @@ -45,9 +45,9 @@ var grammar = module.exports = { // m=video 51744 RTP/AVP 126 97 98 34 31 // NB: special - pushes to session // TODO: rtp/fmtp should be filtered by the payloads found here? - reg: /^(\w*) (\d*) ([\w/]*)(?: (.*))?/, - names: ['type', 'port', 'protocol', 'payloads'], - format: '%s %d %s %s' + reg: /^(\w*) (\d*)(?:\/(\d*))? ([\w/]*)(?: (.*))?/, + names: ['type', 'port', 'portCount', 'protocol', 'payloads'], + format: '%s %d %d %s %s' }], a: [ {