[asterisk-dev] [Code Review]: Extend SIP REFER message originated by Transfer with SIPAddHeader-added headers

Mark Michelson reviewboard at asterisk.org
Thu May 3 10:33:24 CDT 2012



> On May 3, 2012, 10:24 a.m., Olle E Johansson wrote:
> > /trunk/channels/chan_sip.c, line 12911
> > <https://reviewboard.asterisk.org/r/1159/diff/2/?file=16051#file16051line12911>
> >
> >     WHy delete all this code? Are you saying that the user has to add these headers in the dial plan now?

I believe it was removed because transmit_invite() already does this.


- Mark


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


On April 3, 2011, 9:36 p.m., kkm wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1159/
> -----------------------------------------------------------
> 
> (Updated April 3, 2011, 9:36 p.m.)
> 
> 
> Review request for Asterisk Developers, Russell Bryant and Olle E Johansson.
> 
> 
> Summary
> -------
> 
> There is currently no way to augment a REFER message from Transfer with extra headers. The attached patch implements the feature.
> 
> The feature is enabled by default, with a new sip.conf setting to disable it. The rationale for it to be on by default is that it is in fact very controllable from the dialplan: It takes one application call to SIPRemoveHeader with no argument to remove all previously accumulated additional SIP headers. Since Transfer normally terminates the channel, there is no need in practice to keep any SIP headers beyond it in the channel, so that removing these does not impose any dialplan programming complexity.
> 
> A hunk near chan_sip.c line 11697 also fixes an issue with Refer-To header gaining an extra set of <> around the address only when retransmitted due to an authentication request.
> 
> 
> This addresses bug 19059.
>     https://issues.asterisk.org/jira/browse/19059
> 
> 
> Diffs
> -----
> 
>   /trunk/CHANGES 312554 
>   /trunk/channels/chan_sip.c 312554 
>   /trunk/channels/sip/include/sip.h 312554 
>   /trunk/configs/sip.conf.sample 312554 
> 
> Diff: https://reviewboard.asterisk.org/r/1159/diff
> 
> 
> Testing
> -------
> 
> Confirmed working per spec with sip set debug on packet dump.
> 
> Deployed and used on a production server under 1.8.3 and working for 2 weeks already.
> 
> 
> Thanks,
> 
> kkm
> 
>

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


More information about the asterisk-dev mailing list