how to do callback with dialplan?

the idea is when user A(his phone number is, for example 1001) calls a number with a prefix, e.g. **1002, the 

freeswitch will hangup the call leg with user A and originate calls to 1001 and 1002, then bridge 1001 and 1002 after 

both are connected. since originate is a console command, how could i make dialplan to do callback?

maybe it's something like:
    <extension name="callback">
      <condition field="destination_number" expression="^\*\*(\d+)$">
<action application="hangup"/>
<action application="originate" data="sofia/${use_profile}/$1"/>
<action application="originate" data="sofia/${use_profile}/${caller_id_number}"/>
<action application="bridge" data="sofia/${use_profile}/$1 sofia/${use_profile}/${caller_id_number}"/>
      </condition>
    </extension>
but certainly it's not gonna work, can anybody give a hand?