<action application="set" data="api_hangup_hook=originate user/1001 &bridge(sofia/gateway/<YOUR GATEWAY>/${caller_id_number})"/>
<action application="hangup" />
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, thefreeswitch will hangup the call leg with user A and originate calls to 1001 and 1002, then bridge 1001 and 1002 afterboth 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?
_________________________________________________________________________
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