[Devel] CVS commitlog: sip-server/parser hf.c msg_parser.c parse_allow.c parse_allow.h

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Dec 7 21:21:16 CET 2005


at the moment I see two options (both involves fixing parse_methods() 
not to return error if string is empty):
    1) revert to the original approach (allocate extra int)
    2) to avoid 0 value after parsing, use a marking bit (1<<31); so far 
only first 15 bits are used to map methods.

regards,
bogdan

Juha Heinanen wrote:

>Bogdan-Andrei Iancu writes:
>
> > 20.5 Allow
> > 
> >    The Allow header field lists the set of methods supported by the UA
> >    generating the message.
>
>if the list is empty, the UA does not support any methods.
>
> > have you found some thing else? ...even so, IMHO the purpose of a 
> > contact which forbids all methods looks strange to me...
>
>well, it may be a machine, for example, that only generates MESSAGE
>methods and doesn't accept any.
>
> > anyhow, this case didn't work even with the former implementation - 
> > parse_methods function returns error if an empty string is supplied 
> > (empty as content, not length)....
>
>then it needs to be fixed.  i'll take a look at it.
>
>-- juha
>  
>




More information about the Devel mailing list