[asterisk-dev] [Code Review] Fix for SIP peer's allowtransfer setting not being used
Mark Michelson
reviewboard at asterisk.org
Thu May 17 10:51:49 CDT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1923/#review6238
-----------------------------------------------------------
I suspect this will only work for incoming calls for the peer. If a call is placed to the peer, then the allowtransfer setting for that peer still will not be honored.
There are two places where peer settings are typically copied to a sip_pvt.
1. For outbound calls, check create_addr_from_peer().
2. For inbound calls, check check_peer_ok().
Copy the value in those two functions and things should be good to go.
- Mark
On May 15, 2012, 7:31 p.m., elguero wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1923/
> -----------------------------------------------------------
>
> (Updated May 15, 2012, 7:31 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> When setting the global setting in sip.conf for allowtransfer to "no" and then setting the peer's allowtransfer setting to "yes", call transfers are being denied. This would appear to be caused by the dialog not being set to use the peer's allowtransfer setting. The allowtransfer setting is set to the default global setting at the time of creation but never updated to reflect the related peer's setting.
>
> This patch attempts to fix this by setting the dialog's allowtransfer to that of the peer's when there is a related peer found.
>
>
> This addresses bug ASTERISK-19856.
> https://issues.asterisk.org/jira/browse/ASTERISK-19856
>
>
> Diffs
> -----
>
> branches/10/channels/chan_sip.c 366599
>
> Diff: https://reviewboard.asterisk.org/r/1923/diff
>
>
> Testing
> -------
>
> Tested on local machine. Posted patch to issue tracker and hopefully the reporter will test it out as well.
>
>
> Thanks,
>
> elguero
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120517/a1f47394/attachment.htm>
More information about the asterisk-dev
mailing list