Endpoint swapped in bridged channel

Hi,

how to get information in dialplan when EP are swapped in a bridged
channel? TRANSFERED_BY is empty, TRANSFER_CONTEXT in not taken in account.

I face a problem with bria softphone who is starting a new call on
attented transfer -different callID- and from there I’m unable to do
some stuff like setting variables.

Thanks for advice

Daniel

No one? How do you treat actions to be done when users are swapped in an attended transfer?

I’m not too clear what you are trying to do, and there was a big change in the handling of masquerades after the version whose internal I know best. However, on the versions I’m familiar with channels can be accessed by their unique ID, as well as the channel name, and the channel name should be readable using the CHANNEL function.

An explanation of what your dialplan is trying to do might help, as I suspect most people find they don’t have to treat this case specially.

Hi David, thanks for your reply.

Calls are entering into queue and as soon as an agent take a call I have
to set the start time of the call to be able to calculate the total
communication time for the agent when call is ended. This works
perfectly if there is no transfer or a blind transfer: datas as stored
in DB using the callID as key.

Problem arise with attended transfer: a new callID is generated and
variable TRANSFERED_BY is empty. I tried with adding PJSIP headers or
using SHARED(myvar) but can’t get a solution. What I need is to get the
hand when EP are swapped after attended transfer so I can set the start
time for the new EP.

Hope it’s clearer now. Asterisk version is 22.

Daniel

Le 17/01/2026 à 18:37, david551 a écrit :

[david551] david551 https://community.asterisk.org/u/david551
January 17

I’m not too clear what you are trying to do, and there was a big
change in the handling of masquerades after the version whose internal
I know best. However, on the versions I’m familiar with channels can
be accessed by their unique ID, as well as the channel name, and the
channel name should be readable using the CHANNEL function.

An explanation of what your dialplan is trying to do might help, as I
suspect most people find they don’t have to treat this case specially.


Visit Topic
https://community.asterisk.org/t/endpoint-swapped-in-bridged-channel/111622/3
or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here
<>.


Daniel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.