• Anthony Minessale's avatar
    Modifying the behaviour of the dialplan engine · 741b8329
    Anthony Minessale 提交于
    the 'data' field in action tags may now refer to variables and api functions
    to be expanded at runtime.
    
    Syntax:
    
    $varname
    ${varname}
    &func_name(func args)
    
    
    Exception:
    variables that are numeric are still expanded at dialplan compile time based on the regex eg $1 $2 etc
    
    Example:
    
    <extension name="1000">
      <condition field="destination_number" expression="^(1000)$">
        <action appplication="my_route_app" data="$1"/>
        <action appplication="bridge" data="$destination"/>
      </condition>
    </extension>
    
    Here the $1 is ecaluated before the call begins setting it to 1000 based on the regex ^(1000)$
    $destination is evaluated on the fly in execution once the my_route_app has run and has had a 
    chance to set the variable 'destination' to the correct value.
    
    
    
    git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2994 d0543943-73ff-0310-b7d9-9358b9ac24b2
    741b8329
名称
最后提交
最后更新
build 正在载入提交数据...
conf 正在载入提交数据...
docs 正在载入提交数据...
libs 正在载入提交数据...
mac/xcode 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
support 正在载入提交数据...
w32 正在载入提交数据...
.indent.pro 正在载入提交数据...
AUTHORS 正在载入提交数据...
COPYING 正在载入提交数据...
ChangeLog 正在载入提交数据...
Freeswitch.sln 正在载入提交数据...
INSTALL 正在载入提交数据...
Makefile.am 正在载入提交数据...
Makefile.in 正在载入提交数据...
NEWS 正在载入提交数据...
README 正在载入提交数据...
aclocal.m4 正在载入提交数据...
build.sh 正在载入提交数据...
configure 正在载入提交数据...
configure.in 正在载入提交数据...
generic_mod.mk 正在载入提交数据...
indent_options.sh 正在载入提交数据...
modules.conf.in 正在载入提交数据...