Re: [asterisk-dev] Handling blind transfers with ARI

2022-06-15 Thread Jean Aunis

Le 15/06/2022 à 16:33, Joshua C. Colp a écrit :

[snip]

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



Hi Joshua,

Thanks for the hint. I'll check why the transferee is also redirected to 
the dialplan.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: [asterisk-dev] Handling blind transfers with ARI

2022-06-15 Thread Joshua C. Colp
On Wed, Jun 15, 2022 at 11:16 AM Jean Aunis  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
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev