asterbilling-0.12 使用reselleroutbound.agi 可以让不同的代理使用指定的中继进行外呼,并且新增支持为代理商指定一个备用中继
使用方法如下:
a) 添加一个dialplan来执行reselleroutbound.agi, 在astercc软件包中的scripts目录提供了一个extensions_astercc.conf文件,其中[asterbilling- outbound] 是用于执行reselleroutbound.agi的context,,如果你是通过install.sh安装astercc的,该文件会被复制到你的 asterisk etc目录下,并在extensions.conf 增加一行“#include extensions_astercc.conf”,此时你可以直接使用extensions_astercc.conf中的context,当然如果你 使用的是asterCC-Box, 情况也是一样的。如果不是以上两种情况安装的astercc,你就需要手动复制extensions_astercc.conf 到你的asterisk etc目录(一般会是/etc/asterisk 你知道的),并在extensions.conf中包含它们(#include extensions_astercc.conf,如果是基于freepbx的系统请将这句加到extensions_custom.conf中)
b)设置代理商中继
中继1为首先中继,中继2为备用中继,如果通过中继1拨号失败,则尝试使用中继2呼出
设置中继时有自动,默认,自定义 三种类型可选:
自动:reselleroutbound.agi 不做任何处理,直接进入context下面的流程
默认:是使用asterbilling.conf.php 中[resellertrunk] 部分设置的系统默认中继,此处可设置两个系统默认中继,如:
[resellertrunk] trunk1_type = siptrunk1= reselleroutbound1
trunk2_type = sip
trunk2= reselleroutbound2
自定义:手动添加中继,按实际中继情况添加中继信息,并指定该当为代理商使用,保存后需点击页面中的”重新载入”按钮来生成asterisk配置文件


