[asterisk-dev] [Code Review] Add ability to set Max-Forwards header from dialplan, general and device configuration
Matthew Nicholson
mnicholson at digium.com
Wed Aug 11 12:24:47 CDT 2010
> On 2010-08-11 12:15:55, Matthew Nicholson wrote:
> > /trunk/channels/chan_sip.c, lines 8743-8745
> > <https://reviewboard.asterisk.org/r/778/diff/1/?file=11547#file11547line8743>
> >
> > Deadlock avoidance is needed here. It is possible for add_header_max_forwards() to be called with the pvt locked but not the channel; pbx_builtin_getvar_helper() then attempts to lock the channel lock, which may already be held by something else waiting for the pvt lock (ast_indicate, ast_hangup, etc). This causes a deadlock. I have seen this in the blind-transfer-accountcode test on my test box.
Disregard this, I'll commit the fix myself.
- Matthew
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/778/#review2557
-----------------------------------------------------------
On 2010-07-13 11:29:08, Olle E Johansson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/778/
> -----------------------------------------------------------
>
> (Updated 2010-07-13 11:29:08)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> This change adds the ability to set the value of the Max-Forwards header from the Asterisk dialplan and from sip.conf - the general section and per device.
>
>
> Diffs
> -----
>
> /trunk/channels/chan_sip.c 275912
> /trunk/channels/sip/include/sip.h 275912
> /trunk/configs/sip.conf.sample 275912
> /trunk/doc/tex/channelvariables.tex 275912
>
> Diff: https://reviewboard.asterisk.org/r/778/diff
>
>
> Testing
> -------
>
> The 1.4 version has been in use with the dialplan support for a few weeks. The device config is new.
>
>
> Thanks,
>
> Olle E
>
>
More information about the asterisk-dev
mailing list