Hi all,
I am trying to use asterisk to split a call to two devices (voice recorders). For this I use ConfBridge and Originate. If a call (from a Cisco build-in-bridge) comes in, I connect the two targets to a conference and join the incoming call to it. The calls use one-way-audio only.
[default]
include => split
[split]
exten => _X.,1,Originate(SIP/${EXTEN}@vr01,exten,conf,8901)
exten => _X.,n,Originate(SIP/${EXTEN}@vr02,exten,conf,8901)
exten => _X.,n,ConfBridge(8901)
exten => _X.,h,Hangup
[conf]
exten => 8901,1,NoOp(${SIP_HEADER(From)})
exten => 8901,n,ConfBridge(8901)
This works fine (I will set number and confBridge ID to a random value later. I know that only one call splitting is possible at once at the moment as well as hangup does not work correctly).
My problem is, that I have to keep the From-Header of the origin call as it has some extra values needed to identify the calls correctly. e.g.:
"John Doe" <sip:1234@10.20.30.40;x-farend;x-refci=26842882;x-nearendclusterid=StandAloneCluster;x-nearenddevice=SEP2834A2812345;x-nearendaddr=1100;x-farendrefci=26842881;x-farendclusterid=StandAloneCluster;x-farenddevice=172.173.174.175;x-farendaddr=0123456789>;tag=317996~0f300c08-d36d-435d-b9b6-66ebb8b14330-26842893
I can get the full from-tag with SIPHEADER and share it as shared variable. But how can I set the values that they are used for the originating call to the targets vr01 and vr02?
Thanks for any idea.
Best Regards
Achim