You dont want to make two outgoing calls, technically you want to establish a bridge initiated TO 2 external phones.
I mention it cause it is a huge diff.
If you want to use an incoming call as a “trigger” to make two (independent) calls outgoing, you would simply fire up a script on the incoming call, generating two callfiles.
But, since you want to ANSWER this incoming call (bridging when answered!), you cant set the CLID cause the dial to the outsidephones is made in one step, NO further processing possible after the DIAL command has been executed.
So what i would do IS, to “mark” the CLID with a prefix, appended by the original CLID.
Like 9999-REAL-ORIGINAL-CLID.
A script for that could be:
exten…conf:
General section:
JohnsHome=5556699
JohnsCell=0177589632
exten => 5554433,1,Set(newclid=9999-${CALLERID(number)})
exten => 5554433,2,Set(CALLERID(number)=${newclid})
exten => 5554433,3,Dial(Zap/g1/johnsCell&Zap/g1/JohnsHome)
exten => 5554433,4,Congestion
exten => 5554433,102,voicemail(bJohnsmailbox)
exten => 5554433,103,Congestion
That way, the call is forwarded to johns home and cellphone and the call is “identified” by a leading 9999-
I am using exactly this “trick” here in our company, where one guy has only a cheap wireless handset only capable to disply numbers.
Since there is a second “VIP” line routed on his phone, i indicate such calls with leading 9999- so he can SEE that this call is coming from the VIP line.