I do exactly that and more. First, see this page for what the caller hears: https://freeswitch.org/confluence/display/FREESWITCH/macOS

I replace the early media ringing with custom prerecorded messages that includes the caller name.

The I bridge with the parts below built from a LUA program. The called cell phone displays the callerid of the original caller (that took a year to figure out).

What you are after is "sip_h_In-Reply-To=${sip_call_id}”. But… keep two things in mind: First. Your ITSP must support it, in my case I use Callcentric and you MUST inform them you are doing this so they can turn it on for your account. Second, the biggie: with stir/shaken (https://www.fcc.gov/call-authentication) coming up I don’t think this will be possible anymore. See my comment below.

{originate_timeout=48,alert_info=<http://127.0.0.1>;info=Family}${group_call(deskphone@${domain_name}+A)},${group_call(iPads@${domain_name}+A)},${group_call(iPhones@${domain_name}+A)},[leg_delay_start=24,leg_timeout=24,sip_h_In-Reply-To=${sip_call_id}]sofia/gateway/${dial_gateway}/12121234567,[leg_delay_start=24,leg_timeout=24,sip_h_In-Reply-To=${sip_call_id}]sofia/gateway/${dial_gateway}/12127654321

More than you asked about but important to note:
Because of problems below (there are more) bridging to a cell phone, I am trying something different and if it works will put it in the wiki. Instead of bridging the call I want to make the cell phone a simple Freeswitch extension. That resolves all the problems including passing callerID. This is done using VPN and a SIP app, in this case Bria for iPhone which uses Apple Notifications to trigger the app when a call comes on. Only problem is… VPN on demand does not work with Bria because it uses sockets instead of the recommended Apple API. So I have been trying to convince Counterpath to add one DNS lookup to trigger VPN On Demand. This solution would be 1000 percent better than bridging.

Problems with this method: 




On Apr 23, 2019, at 2:19 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:

Hi,
 
My customer wants to ring the local extension, then 15 seconds later connect their cell phone.  I have the leg_delay_start working fine.  What I don’t know is how to pass the internal Caller ID to one and the external caller id to the other?
 
Thanks,
Sean
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com