[asterisk-dev] Handling blind transfers with ARI

Joshua C. Colp jcolp at sangoma.com
Wed Jun 15 09:33:10 CDT 2022


On Wed, Jun 15, 2022 at 11:16 AM Jean Aunis <jean.aunis at prescom.fr> wrote:

> Hello,
>
> I had no answer to this question on asterisk-app-dev, so I'm trying here.
>
> I'm trying to figure out how blind transfers are supposed to work with ARI.
>
> When two channels are bridged together through ARI, and one of them
> performs a blind SIP transfer, two things happen :
>
> - a Local channel is instantiated and goes through the dialplan at the
> specified destination
>
> - the transferee channel goes through the same dialplan at the specified
> destination
>
> The latter looks fine. The former is strange. I understand that this
> Local channel is created to avoid losing track of the transferee channel
> in ARI, but:
>
> - how am I supposed to handle it ?
>
> - when the transfer is successful, which channel must be placed in which
> bridge ?
>
> - why do both channels go through the same part of the dialplan ? I
> would have expected only one of them to do that.
>
> Any hints ?
>

Based on the test coverage for this[1] you aren't really expected to
manipulate the bridge yourself. The ";1" side of the Local channel is
supposed to automatically go into your ARI application and take the
transferer channel place in the bridge, and then the transferer leaves the
bridge and ARI application. I don't know why both channels are going
through the dialplan in your scenario.

[1]
https://github.com/asterisk/testsuite/tree/master/tests/rest_api/external_interaction/blind_transfer

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20220615/edb17f83/attachment.html>


More information about the asterisk-dev mailing list