Intercept would potentially work
https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_intercept

but why so complicated?





From: Grant Bagdasarian <GB@cm.nl>
To: "FreeSWITCH Users Help (freeswitch-users@lists.freeswitch.org)" <freeswitch-users@lists.freeswitch.org>
Sent: Tuesday, September 10, 2013 3:54 PM
Subject: [Freeswitch-users] General SIP question and FS possibilities

Hello,
 
How do you group two call legs together when the first is originated by a different server than the second one?
 
For example:
 
FreeSWITCH 1 ----------------- FreeSWITCH 2.
 
A call is originated from FS1 to FS2.
FS2 processes the call, plays some messages etc.
Within the first call leg, FS2 originates a second call leg to FS1.
 
A solution would be to append the CallID of the first call leg as a new header in the INVITE of the second leg. This solution is from the FS2 point of view.
What if we want FS1 to be able to detect two calls are within the same ‘session’. Is that possible?
 
Regards,
 
Grant

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org