freeswitch的dialplan中condition变量
来源:互联网 发布:php视频网站源码下载 编辑:程序博客网 时间:2024/05/17 01:28
fs中dialplan中的condition变量可以是channel变量、内置变量
内置变量有:
The following variables, called 'caller profile fields', can be accessed from condition statements directly:
- context Why can we use the context as a field? Give us examples of usages please.
- rdnis Redirected Number, the directory number to which the call was last presented.
- destination_number Called Number, the number this call is trying to reach (within a given context)
- dialplan Name of the dialplan module that are used, the name is provided by each dialplan module. Example: XML
- caller_id_name Name of the caller (provided by the User Agent that has called us).
- caller_id_number Directory Number of the party who called (caller) -- can be masked (hidden)
- ani Automatic Number Identification, the number of the calling party (caller) -- cannot be masked
- aniii The type of device placing the call ANI2
- uuid Unique identifier of the current call? (looks like a GUID)
- source Name of the FreeSWITCH module that received the call (e.g. PortAudio)
- chan_name Name of the current channel (Example: PortAudio/1234). Give us examples when this one can be used.
- network_addr IP address of the signaling source for a VoIP call.
- year Calendar year, 0-9999
- yday Day of year, 1-366
- mon Month, 1-12 (Jan = 1, etc.)
- mday Day of month, 1-31
- week Week of year, 1-53
- mweek Week of month, 1-6
- wday Day of week, 1-7 (Sun = 1, Mon = 2, etc.) or "sun", "mon", "tue", etc.
- hour Hour, 0-23
- minute Minute (of the hour), 0-59
- minute-of-day Minute of the day, (1-1440) (midnight = 1, 1am = 60, noon = 720, etc.)
- time-of-day Time range formatted: hh:mm[:ss]-hh:mm[:ss] (seconds optional) Example: "08:00-17:00"
- date-time Date/time range formatted: YYYY-MM-DD hh:mm[:ss]~YYYY-MM-DD hh:mm[:ss] (seconds optional, note tilde between dates) Example: 2010-10-01 00:00:01~2010-10-15 23:59:59
For example:
详情http://wiki.freeswitch.org/wiki/Dialplan_XML#Conditions<condition field="network_addr" expression="^192\.168\.1\.1$"/> <!-- network address=192.168.1.1 ><condition mon="2"> <!-- month=February -->
0 0
- freeswitch的dialplan中condition变量
- freeswitch dialplan 笔记
- freeswitch dialplan学习总结
- FreeSWITCH dialplan APPlication
- FreeSwitch Lua编程接口(1)dialplan里的配置
- FreeSwitch Lua编程接口(1)dialplan里的配置
- asterisk dialplan 转换成 freeswitch
- asterisk dialplan中MYSQL命令的使用
- 用perl 语言写freeswitch dialplan
- 《FreeSWITCH: VoIP实战》:拨号计划- Dialplan
- 《FreeSWITCH: VoIP实战》:拨号计划- Dialplan
- 《FreeSWITCH: VoIP实战》:拨号计划- Dialplan
- 《FreeSWITCH: VoIP实战》:拨号计划- Dialplan
- Android中Framework层条件变量(condition)的使用方法
- Asterisk 中Dialplan 应用于mysql查询的简单实例
- Asterisk 中之Dialplan 的时间条件(GotoIfTime)实现
- freeswitch 中speak的用法
- Dialplan
- 怎样编写scrapy扩展
- 跟我一起学extjs5(23--模块Form的自定义的设计[1])
- OnDraw函数和OnPaint函数
- 10大Web漏洞扫描程序
- 原材料配送问题的遗传算法实现(C语言)
- freeswitch的dialplan中condition变量
- 字符串基础及常用算法
- 1407280912-hd-第几天?.cpp
- 【Java】变量初始化顺序
- 安装LUA报错
- 【codeforce^5COMBO】#79-84 2014_Summer_Crazy @20140727
- HDUJ 1316 How Many Fibs?
- V4L2 Video Capture - 01
- js中常用的一些方法