[OpenSER-Devel] [ openser-Bugs-1831969 ] parse_methods should ignore invalid/unknown methods

SourceForge.net noreply at sourceforge.net
Thu Nov 15 13:31:27 UTC 2007


Bugs item #1831969, was opened at 2007-11-14 20:52
Message generated for change (Comment added) made by miconda
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1831969&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
Assigned to: Daniel-Constantin Mierla (miconda)
Summary: parse_methods should ignore invalid/unknown methods

Initial Comment:
I was doing some testing with a phone that is sending the "SERVICE" method inside the Allow header.
When the header is parsed, because the "SERVICE" method is not known, the parser just aborts and all the already parsed headers are lost.

It would be nice to skip the unknown headers and keep all the known headers (see the registration case, when the allowed methods are stored in usrloc).

Attached is a patch that will ignore unknown headers.

It will print a warning log like this:
Nov 14 14:08:14 localhost /usr/local/sbin/openser[8922]: core:parse_methods: ignoring invalid method:SERVICE,UPDATE,PRACK 


Regards,
Ovidiu Sas

----------------------------------------------------------------------

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-11-15 15:31

Message:
Logged In: YES 
user_id=1246013
Originator: NO

Hopefully was fixed, with another patch. Let me know if otherwise.

Thanks,
Daniel

----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-11-15 14:43

Message:
Logged In: YES 
user_id=1246013
Originator: NO

Looking in the code, for an unknown method, METHOD_OTHER should be set.
NULL seems to be returned in extreme cases -- but I may be wrong, I will
investigate properly.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1831969&group_id=139143



More information about the Devel mailing list