[asterisk-dev] [Code Review] Make blind transfers not run the 'h' extension prematurely

rmudgett reviewboard at asterisk.org
Fri Jan 20 17:15:17 CST 2012


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



/branches/1.8/main/features.c
<https://reviewboard.asterisk.org/r/1685/#comment9787>

    You will eventually need to clear this flag.  Since you are doing this inside the function where the flag is intended to suppress the h exten, you should just not run the h exten instead.


- rmudgett


On Jan. 20, 2012, 4:54 p.m., Mark Michelson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1685/
> -----------------------------------------------------------
> 
> (Updated Jan. 20, 2012, 4:54 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> A recent change (rev 347595) caused channel technology-specific blind transfers to fail if the called channel transferred the calling channel, and the calling channel was in a context or macro with an h extension.
> 
> Presumably, there was a pre-existing problem since the h extension was being run on the transferee channel, and the transferee channel was not being hung up in the first place. Rather, the transferer (who does not have a PBX running on his channel) was the one being hung up. With the addition of setting the softhangup flag, the problem was compounded since the channel would be hung up unexpectedly.
> 
> My change is to examine the softhangup value on the channel when a bridge is broken and set the AST_FLAG_BRIDGE_HANGUP_DONT flag on the channel if the cause of the bridge breakage is for a "fake" hangup, such as an async goto. This makes it so the h extension is not run on a channel that's actually still alive, and it makes it so that blind transfers are once again fixed.
> 
> My only hesitation with just committing this is that it means that the h extension is no longer run in situations where it once was. However, in my opinion, it was buggy to be running the h extension since the channel was not actually being hung up.
> 
> 
> This addresses bug ASTERISK-19173.
>     https://issues.asterisk.org/jira/browse/ASTERISK-19173
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/main/features.c 351501 
> 
> Diff: https://reviewboard.asterisk.org/r/1685/diff
> 
> 
> Testing
> -------
> 
> Tested blind transfers using SIP phones. Worked for me. Asked reporter of ASTERISK-19173 for testing feedback as well.
> 
> 
> Thanks,
> 
> Mark
> 
>

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


More information about the asterisk-dev mailing list