[asterisk-dev] [Code Review] Fix directed group pickup feature code *8 with pickupsounds enabled , deadlock and segfault, affects 1.8.0 and trunk
Alec Davis
reviewboard at asterisk.org
Wed May 11 06:36:25 CDT 2011
> On 2011-05-10 16:40:50, rmudgett wrote:
> > trunk/channels/chan_sip.c, lines 20879-20881
> > <https://reviewboard.asterisk.org/r/1185/diff/11/?file=16399#file16399line20879>
> >
> > /*!
> > * blah
> > * blah
> > */
serves me right for copy and paste from sip_park
> On 2011-05-10 16:40:50, rmudgett wrote:
> > trunk/channels/chan_sip.c, lines 20882-20896
> > <https://reviewboard.asterisk.org/r/1185/diff/11/?file=16399#file16399line20882>
> >
> > The diff has trailing whitespace in this function.
> >
> > Wonder why there is no red blobs here.
I see the red tonight.
> On 2011-05-10 16:40:50, rmudgett wrote:
> > trunk/include/asterisk/features.h, lines 125-130
> > <https://reviewboard.asterisk.org/r/1185/diff/11/?file=16400#file16400line125>
> >
> > /*!
> > * blah
> > * blah
> > */
not sure I understand.
If it's the formatting of the last */ they are all wrong in features.h
But I think you mean something else?
Please give me another hint..
- Alec
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1185/#review3514
-----------------------------------------------------------
On 2011-05-09 16:45:23, Alec Davis wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1185/
> -----------------------------------------------------------
>
> (Updated 2011-05-09 16:45:23)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> Since 1.8, the new pickupsound and pickupfailsound in features.conf cause many issues.
>
> 1). chan_sip:handle_request_invite() shouldn't be playing out the fail/success audio, as it has 'netlock' locked.
> 2). dialplan applications for directed_pickups shouldn't beep.
> 3). feature code for directed pickup should beep on success/failure if configured.
>
> Moved app_directed:pickup_do() to features:ast_do_pickup().
>
> Functions below, all now use the new ast_do_pickup()
> app_directed_pickup.c:
> pickup_by_channel()
> pickup_by_exten()
> pickup_by_mark()
> pickup_by_part()
> features.c:
> ast_pickup_call()
>
> Created a sip_pickup() thread to handle the pickup and playout the audio, spawned from handle_request_invite.
>
>
> This addresses bug 18654.
> https://issues.asterisk.org/view.php?id=18654
>
>
> Diffs
> -----
>
> trunk/apps/app_directed_pickup.c 317665
> trunk/channels/chan_sip.c 317665
> trunk/include/asterisk/features.h 317665
> trunk/main/features.c 317665
> trunk/res/res_features.exports.in 317665
>
> Diff: https://reviewboard.asterisk.org/r/1185/diff
>
>
> Testing
> -------
>
> pickup using *8 feature code, with pickup sounds enabled/disabled
>
> exten => 71,1,Pickup() ; any ringing extension in same pickupgroup
> exten => 72,1,Pickup(85 at phones) ; dahdi extension
> exten => 73,1,Pickup(823 at phones) ; sip extension
>
>
> Thanks,
>
> Alec
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110511/0b47c1e1/attachment.htm>
More information about the asterisk-dev
mailing list