[asterisk-dev] [Code Review]: Handle Session-Expires less than local Min-SE in 200 OK

opticron reviewboard at asterisk.org
Mon Dec 10 08:26:28 CST 2012



> On Dec. 7, 2012, 5:10 p.m., Matt Jordan wrote:
> > Might as well create a test for the Test Suite using the modified SIPp scenario as well.

I'll get that committed in the next couple hours.


> On Dec. 7, 2012, 5:10 p.m., Matt Jordan wrote:
> > branches/1.8/channels/chan_sip.c, lines 20797-20799
> > <https://reviewboard.asterisk.org/r/2237/diff/1/?file=32339#file32339line20797>
> >
> >     Since an invalid refresher value in parse_session_expires produces an AST_WARNING, it seems fair that a value we determine is invalid for the actual min interval should also produce a warning.  The effect is the same in both cases - we hang up the call - so they probably both deserve a WARNING.

Done.


> On Dec. 7, 2012, 5:10 p.m., Matt Jordan wrote:
> > branches/1.8/channels/chan_sip.c, line 20799
> > <https://reviewboard.asterisk.org/r/2237/diff/1/?file=32339#file32339line20799>
> >
> >     Blob

Done.


- opticron


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2237/#review7507
-----------------------------------------------------------


On Dec. 7, 2012, 5:01 p.m., opticron wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2237/
> -----------------------------------------------------------
> 
> (Updated Dec. 7, 2012, 5:01 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Currently, all versions of Asterisk will accept any value for Session-Expires in an incoming 200 OK as long as it's parseable as a number.  This includes values less than the local Min-SE and even values less than the RFC-defined minimum of 90.  This patch ensures that calls setup in this scenario are immediately torn down.
> 
> 
> This addresses bug ASTERISK-20653.
>     https://issues.asterisk.org/jira/browse/ASTERISK-20653
> 
> 
> Diffs
> -----
> 
>   branches/1.8/channels/chan_sip.c 377388 
> 
> Diff: https://reviewboard.asterisk.org/r/2237/diff
> 
> 
> Testing
> -------
> 
> Tested with a tweaked version of an existing integration test (basic_uac_refresh).
> 
> 
> Thanks,
> 
> opticron
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20121210/3edd8c6a/attachment.htm>


More information about the asterisk-dev mailing list