Errores #22

'from-spec' is more restrictive than 'name-addr'

Added by Iñaki Baz Castillo over 3 years ago. Updated over 3 years ago.

Status:Nueva Start:02/05/2009
Priority:Normal Due date:
Assigned to:Iñaki Baz Castillo % Done:

60%

Category:Ragel
Target version:Phase 1

Description

This shouldn't be possible:

./sip_parser.sh "name_addr" '   <tel:+1234> '

Compiling 'parser.rl' ...
OK

Parsing 'name_addr':  {{{   <tel:+1234> }}} ...
  --------------------------------
  Finished:  cs: 588  p: 16  pe: 16
  Time:      0.000538
  --------------------------------
OK
./sip_parser.sh "from-spec" '   <tel:+1234> '

Compiling 'parser.rl' ...
OK

Parsing 'from_spec':  {{{   <tel:+1234> }}} ...
  --------------------------------
  Finished:  cs: 0  p: 15  pe: 16
  Time:      0.00056
  --------------------------------
ERROR parsing the data!
ERROR

History

Updated by Iñaki Baz Castillo over 3 years ago

  • % Done changed from 0 to 40

I think this occurs due to the RAQUOT grammar:

RAQUOT  =  ">" SWS ; right angle quote

It allows spaces ant the beginning and the end of the ">" symbol:

name-addr ends with RAQUOT but from-spec ends with *( SEMI from-param ) (and this doesn't allow spaces at the end).

Perhaps I should change the BNF grammar (but the above is what the painful RFC3261 BNF allows!).

Updated by Iñaki Baz Castillo over 3 years ago

  • % Done changed from 40 to 60

After some commits, the error has dissapeared. Not sure why and not sure if the actual behaviour is correct (I hope yes). Need to check it.

Updated by Iñaki Baz Castillo over 3 years ago

  • Target version set to Phase 1

Also available in: Atom PDF