Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
050b0586
提交
050b0586
authored
5月 12, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@1447
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
d53d9d39
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
68 行增加
和
67 行删除
+68
-67
freeswitch.xml
conf/freeswitch.xml
+68
-67
没有找到文件。
conf/freeswitch.xml
浏览文件 @
050b0586
...
@@ -242,72 +242,73 @@
...
@@ -242,72 +242,73 @@
</settings>
</settings>
</configuration>
</configuration>
</section>
</section>
<section
name=
"dialplan"
description=
"Regex/XML Dialplan"
>
<section
name=
"dialplan"
description=
"Regex/XML Dialplan"
>
<!-- Valid fields in conditions:
<!-- Valid fields in conditions:
"dialplan, caller_id_name, ani, ani2, caller_id_number,
"dialplan, caller_id_name, ani, ani2, caller_id_number,
network_addr, rdnis, destination_number, uuid, source,
network_addr, rdnis, destination_number, uuid, source,
context, chan_name" -->
context, chan_name" -->
<!-- *NOTE* The special context name 'any' will match any context -->
<!-- *NOTE* The special context name 'any' will match any context -->
<context
name=
"default"
>
<context
name=
"default"
>
<extension
name=
"devconf"
>
<extension
name=
"devconf"
>
<condition
field=
"destination_number"
expression=
"^888$"
>
<condition
field=
"destination_number"
expression=
"^888$"
>
<action
application=
"bridge"
data=
"exosip/888@66.250.68.194"
/>
<action
application=
"bridge"
data=
"exosip/888@66.250.68.194"
/>
</condition>
</condition>
</extension>
</extension>
<!-- extensions starting with 4, all the numbers after 4 form a numeric filename
<!-- extensions starting with 4, all the numbers after 4 form a numeric filename
continue=true means keep looking for more extensions to match
continue=true means keep looking for more extensions to match
*NOTE* The entire dialplan is parsed ONCE when the call starts
*NOTE* The entire dialplan is parsed ONCE when the call starts
so any call info acquired after the various actions cannot
so any call info acquired after the various actions cannot
be taken into consideration.
be taken into consideration.
The first match will play a beep and the second one plays
The first match will play a beep and the second one plays
the desired file. This is for demo purposes both actions
the desired file. This is for demo purposes both actions
could have been under the same <extension> tag as well.
could have been under the same <extension> tag as well.
-->
-->
<extension
name=
"playsound1"
continue=
"true"
>
<extension
name=
"playsound1"
continue=
"true"
>
<condition
field=
"source"
expression=
"mod_exosip"
/>
<condition
field=
"source"
expression=
"mod_exosip"
/>
<condition
field=
"destination_number"
expression=
"^4(\d+)"
>
<condition
field=
"destination_number"
expression=
"^4(\d+)"
>
<action
application=
"playback"
data=
"/var/sounds/beep.gsm"
/>
<action
application=
"playback"
data=
"/var/sounds/beep.gsm"
/>
</condition>
</condition>
</extension>
</extension>
<extension
name=
"playsound2"
>
<extension
name=
"playsound2"
>
<condition
field=
"source"
expression=
"mod_exosip"
/>
<condition
field=
"source"
expression=
"mod_exosip"
/>
<condition
field=
"destination_number"
expression=
"^4(\d+)"
>
<condition
field=
"destination_number"
expression=
"^4(\d+)"
>
<action
application=
"playback"
data=
"/root/$1.raw"
/>
<action
application=
"playback"
data=
"/root/$1.raw"
/>
</condition>
</condition>
</extension>
</extension>
<!-- send everything with a certian RDNIS to Wanpipe ISDN -->
<!-- send everything with a certian RDNIS to Wanpipe ISDN -->
<extension
name=
"To PRI"
>
<extension
name=
"To PRI"
>
<condition
field=
"rdnis"
expression=
"8881231234"
/>
<condition
field=
"rdnis"
expression=
"8881231234"
/>
<condition
field=
"destination_number"
expression=
"(.*)"
>
<condition
field=
"destination_number"
expression=
"(.*)"
>
<action
application=
"bridge"
data=
"wanpipe/a/a/$1"
/>
<action
application=
"bridge"
data=
"wanpipe/a/a/$1"
/>
</condition>
</condition>
</extension>
</extension>
<!-- Call *MUST* originate from mod_iax and also be dialing ext 9999-->
<!-- Call *MUST* originate from mod_iax and also be dialing ext 9999-->
<extension
name=
"9999"
>
<extension
name=
"9999"
>
<condition
field=
"source"
expresion=
"mod_iax"
/>
<condition
field=
"source"
expresion=
"mod_iax"
/>
<condition
field=
"destination_number"
expression=
"9999"
>
<condition
field=
"destination_number"
expression=
"9999"
>
<action
application=
"playback"
data=
"/var/sounds/beep.gsm"
/>
<action
application=
"playback"
data=
"/var/sounds/beep.gsm"
/>
</condition>
</condition>
</extension>
</extension>
<!-- Call the FreeSWITCH conference via SIP -->
<!-- Call the FreeSWITCH conference via SIP -->
<extension
name=
"FreeSWITCH Conference SIP"
>
<extension
name=
"FreeSWITCH Conference SIP"
>
<condition
field=
"destination_number"
expression=
"^888$"
>
<condition
field=
"destination_number"
expression=
"^888$"
>
<action
application=
"bridge"
data=
"exosip/888@66.250.68.194"
/>
<action
application=
"bridge"
data=
"exosip/888@66.250.68.194"
/>
</condition>
</condition>
</extension>
</extension>
<!-- Call the FreeSWITCH conference via IAX -->
<!-- Call the FreeSWITCH conference via IAX -->
<extension
name=
"FreeSWITCH Conference IAX"
>
<extension
name=
"FreeSWITCH Conference IAX"
>
<condition
field=
"destination_number"
expression=
"^8888$"
>
<condition
field=
"destination_number"
expression=
"^8888$"
>
<action
application=
"bridge"
data=
"iax/guest@66.250.68.194/888"
/>
<action
application=
"bridge"
data=
"iax/guest@66.250.68.194/888"
/>
</condition>
</condition>
</extension>
</extension>
</context>
</context>
</section>
</section>
<section
name=
"directory"
description=
"User Directory"
>
</section>
<section
name=
"directory"
description=
"User Directory"
>
</section>
</document>
</document>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论