[asterisk-dev] [Code Review] SIP Session Timer: Call drops because misunderstanding of uac and uas refresher role

Mark Michelson reviewboard at asterisk.org
Wed Sep 19 15:16:17 CDT 2012


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



/branches/1.8/channels/chan_sip.c
<https://reviewboard.asterisk.org/r/2118/#comment13707>

    Feel free to fix the goofy spacing on these assignments :)



/branches/1.8/channels/sip/include/sip.h
<https://reviewboard.asterisk.org/r/2118/#comment13703>

    s/refresy/refresh/



/branches/1.8/configs/sip.conf.sample
<https://reviewboard.asterisk.org/r/2118/#comment13704>

    Two things:
    
    1) Red blob on line 550
    
    2) Why did you change the default from uas to uac?


- Mark


On Sept. 18, 2012, 6:12 p.m., Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2118/
> -----------------------------------------------------------
> 
> (Updated Sept. 18, 2012, 6:12 p.m.)
> 
> 
> Review request for Asterisk Developers and Thomas Arimont.
> 
> 
> Summary
> -------
> 
> From the issue:
> The SIP session timer mechanism contains a mandatory 'refresher' parameter (included in the Session-Expires header) which is used in the session timer offer/answer signaling within a SIP Invite dialog. It looks like asterisk is interpreting the uac resp. uas role only as the initial role of client and server (caller is uac, callee is uas). The standard rfc 4028 however assigns the client role to the ((RE)-Invite) requester, the server role to the ((RE)-Invite) responder.
> 
> This patch has Asterisk track the actual refresher as "us" or "them" as opposed to relying on just the configured "uas" or "uac" properties.
> 
> 
> This addresses bug AST-922.
>     https://issues.asterisk.org/jira/browse/AST-922
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/channels/chan_sip.c 373118 
>   /branches/1.8/channels/sip/include/sip.h 373118 
>   /branches/1.8/configs/sip.conf.sample 373118 
> 
> Diff: https://reviewboard.asterisk.org/r/2118/diff
> 
> 
> Testing
> -------
> 
> Calls with clients supporting and not supporting session timers with Asterisk having session-refresher=uas or uac.
> 
> 
> Thanks,
> 
> Terry
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120919/60c915ae/attachment-0001.htm>


More information about the asterisk-dev mailing list