[asterisk-dev] [Code Review] Pickup problems with channels with no pvt_tech orphaned channels part 2
rmudgett
reviewboard at asterisk.org
Mon Aug 29 19:25:35 CDT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1397/#review4171
-----------------------------------------------------------
/team/irroot/distrotech-customers-1.8/main/channel.c
<https://reviewboard.asterisk.org/r/1397/#comment8216>
This is attempting to hide the fact that "bad things" have happened. The channel is in an unknown state at this point and there is not a good way to recover.
/team/irroot/distrotech-customers-1.8/main/features.c
<https://reviewboard.asterisk.org/r/1397/#comment8217>
Testing for chan->tech_pvt is not a good thing to do here. It is unlikely that a channel driver will not need a tech_pvt to operate but it must be allowed.
- rmudgett
On Aug. 29, 2011, 8:30 a.m., irroot wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1397/
> -----------------------------------------------------------
>
> (Updated Aug. 29, 2011, 8:30 a.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> A sip phone tries to pickup a call but for some reason looses the pvt this causes all sorts of mischief.
>
> Im proposing that sip_hangup return -1 when there is no private it has failed what it should be doing.
> if the hangup fails ast_do_masquerade will kill the channel and return not leaving the channel orphaned.
>
> [Aug 26 10:50:21] NOTICE[29961] app_directed_pickup.c: pickup SIP/2201-0000167c attempt by SIP/2225-0000168c
> [Aug 26 10:50:22] WARNING[29961] chan_sip.c: No SIP tech_pvt! Fixup of SIP/2225-0000168c failed.
> [Aug 26 10:50:22] WARNING[29961] channel.c: Fixup failed on channel SIP/2225-0000168c<MASQ>, strange things may happen.
> [Aug 26 10:51:23] NOTICE[21093] chan_sip.c: Disconnecting call 'SIP/2225-0000168c' for lack of RTP activity in 61 seconds
>
>
> This addresses bug ASTERISK-18273.
> https://issues.asterisk.org/jira/browse/ASTERISK-18273
>
>
> Diffs
> -----
>
> /team/irroot/distrotech-customers-1.8/channels/chan_sip.c 333499
> /team/irroot/distrotech-customers-1.8/main/channel.c 333499
> /team/irroot/distrotech-customers-1.8/main/features.c 333499
>
> Diff: https://reviewboard.asterisk.org/r/1397/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> irroot
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110830/53d33408/attachment.htm>
More information about the asterisk-dev
mailing list