[Freeswitch-users] how to do callback with dialplan?

Vincent Xia gmangudai at gmail.com
Wed Jun 5 17:20:41 MSD 2013


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130605/e10e5ef5/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list