<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>asterCC, asterisk 呼叫中心和计费解决方案 &#187; asterBilling</title>
	<atom:link href="http://cn.astercc.org/tag/asterbilling/feed" rel="self" type="application/rss+xml" />
	<link>http://cn.astercc.org</link>
	<description>asterCC, asterCRM, asterBilling 文档</description>
	<lastBuildDate>Thu, 09 Sep 2010 02:16:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>为什么能看到正在进行的通话但是在窗口里看不到历史记录?</title>
		<link>http://cn.astercc.org/2009/07/15/%e4%b8%ba%e4%bb%80%e4%b9%88%e8%83%bd%e7%9c%8b%e5%88%b0%e6%ad%a3%e5%9c%a8%e8%bf%9b%e8%a1%8c%e7%9a%84%e9%80%9a%e8%af%9d%e4%bd%86%e6%98%af%e5%9c%a8%e7%aa%97%e5%8f%a3%e9%87%8c%e7%9c%8b%e4%b8%8d%e5%88%b0.html</link>
		<comments>http://cn.astercc.org/2009/07/15/%e4%b8%ba%e4%bb%80%e4%b9%88%e8%83%bd%e7%9c%8b%e5%88%b0%e6%ad%a3%e5%9c%a8%e8%bf%9b%e8%a1%8c%e7%9a%84%e9%80%9a%e8%af%9d%e4%bd%86%e6%98%af%e5%9c%a8%e7%aa%97%e5%8f%a3%e9%87%8c%e7%9c%8b%e4%b8%8d%e5%88%b0.html#comments</comments>
		<pubDate>Wed, 15 Jul 2009 07:03:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[话吧]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=417</guid>
		<description><![CDATA[如何解决在话吧窗口中看不到通话记录的问题]]></description>
			<content:encoded><![CDATA[<p>一些客户发现他们能够在窗口中看到正在进行的通话(图-1) 但是通话结束后 页面上并没有按预料的显示出历史通话记录(图-2)</p>
<p style="text-align: center;"><img class="attachment wp-att-609 centered" src="http://astercc.org/wp-content/uploads/2009/07/2.jpg" alt="live call in booth window" width="480" height="330" /></p>
<p style="text-align: center;"><img class="attachment wp-att-610 centered" src="http://astercc.org/wp-content/uploads/2009/07/3.jpg" alt="nothing in booth box" width="480" height="330" /></p>
<p>这个原因是在设置&#8221;clid&#8221;的时候, 管理员设置的SIP账户 而不是主叫号码</p>
<p>检查表&#8221;mycdr&#8221;,  可以发现&#8221;src&#8221;字段和&#8221;channel&#8221;字段中的数值并不匹配</p>
<p>解决方法: 到&#8221;clid(主叫号码)&#8221;页面, 将SIP账户改为你在&#8221;src&#8221;字段中看到的主叫号码</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2009/07/15/%e4%b8%ba%e4%bb%80%e4%b9%88%e8%83%bd%e7%9c%8b%e5%88%b0%e6%ad%a3%e5%9c%a8%e8%bf%9b%e8%a1%8c%e7%9a%84%e9%80%9a%e8%af%9d%e4%bd%86%e6%98%af%e5%9c%a8%e7%aa%97%e5%8f%a3%e9%87%8c%e7%9c%8b%e4%b8%8d%e5%88%b0.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何升级astercc</title>
		<link>http://cn.astercc.org/2009/06/27/%e5%a6%82%e4%bd%95%e5%8d%87%e7%ba%a7astercc.html</link>
		<comments>http://cn.astercc.org/2009/06/27/%e5%a6%82%e4%bd%95%e5%8d%87%e7%ba%a7astercc.html#comments</comments>
		<pubDate>Sat, 27 Jun 2009 03:49:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[asterCC]]></category>
		<category><![CDATA[asterCRM]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=411</guid>
		<description><![CDATA[1.升级数据库 将astercc的zip包解压缩 进入“sql”目录 0.12版本你应该会看到如下文件: astercc0.1b-0.1.sql astercc0.1-0.11.sql astercc0.11-0.12b.sql astercc0.12b-0.12.sql astercc.sql 加入你现在使用的版本是0.1b, 那么你需要依次执行 astercc0.1b-0.1.sql, astercc0.1-0.11.sql, astercc0.11-0.12b.sql, astercc0.12b-0.12.sql 这样你就升级到0.12的数据库了 执行方法可以为 mysql -uyouruser -pyourpass astercc &#60; astercc0.1b-0.1.sql youruser: 你的数据库用户名 yourpass: 你的数据库密码 astercc: astercc使用的数据库名称 2. 停掉astercc的进程 /opt/asterisk/scripts/astercc/asterccd stop 3. 将新版本的网页和进程文件拷贝相应的目录 4.  更新配置文件 配置文件包括 astercc.conf, asterbilling.conf.php, astercrm.conf.php 5. 启动astercc进程 /opt/asterisk/scripts/astercc/asterccd start 6. 登入检查是否已经是新版本]]></description>
			<content:encoded><![CDATA[<div class="postContent">
<p>1.升级数据库</p>
<p>将astercc的zip包解压缩 进入“sql”目录</p>
<p>0.12版本你应该会看到如下文件:</p>
<p>astercc0.1b-0.1.sql<br />
astercc0.1-0.11.sql<br />
astercc0.11-0.12b.sql<br />
astercc0.12b-0.12.sql<br />
astercc.sql</p>
<p>加入你现在使用的版本是0.1b, 那么你需要依次执行 astercc0.1b-0.1.sql, astercc0.1-0.11.sql, astercc0.11-0.12b.sql, astercc0.12b-0.12.sql 这样你就升级到0.12的数据库了</p>
<p>执行方法可以为</p>
<p>mysql -uyouruser -pyourpass astercc &lt; astercc0.1b-0.1.sql</p>
<p>youruser: 你的数据库用户名</p>
<p>yourpass: 你的数据库密码</p>
<p>astercc: astercc使用的数据库名称</p>
<p>2. 停掉astercc的进程</p>
<p>/opt/asterisk/scripts/astercc/asterccd stop</p>
<p>3. 将新版本的网页和进程文件拷贝相应的目录</p>
<p>4.  更新配置文件</p>
<p>配置文件包括 astercc.conf, asterbilling.conf.php, astercrm.conf.php</p>
<p>5. 启动astercc进程</p>
<p>/opt/asterisk/scripts/astercc/asterccd start</p>
<p>6. 登入检查是否已经是新版本</p></div>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2009/06/27/%e5%a6%82%e4%bd%95%e5%8d%87%e7%ba%a7astercc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterbilling新功能: 费率提示</title>
		<link>http://cn.astercc.org/2009/03/17/asterbilling%e6%96%b0%e5%8a%9f%e8%83%bd-%e8%b4%b9%e7%8e%87%e6%8f%90%e7%a4%ba.html</link>
		<comments>http://cn.astercc.org/2009/03/17/asterbilling%e6%96%b0%e5%8a%9f%e8%83%bd-%e8%b4%b9%e7%8e%87%e6%8f%90%e7%a4%ba.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 08:18:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[费率]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=362</guid>
		<description><![CDATA[在新一版本的asterbilling中 我们提供了一个新功能, 挡手动添加费率的时候你可以看到购买时的费率。 例如系统管理员为代理商设置了三条销售费率 default 0.2 对所有代理商 0086 0.25 对代理商: reseller1 00852 0.3 对所有代理商 然后代理商 reseller1 登入 然后要给他下面的话吧设置费率 1. 先加入一条到北美的费率, 号码前缀是001, 在你输入001的时候 在输入框后面会给出针对这个前缀的购买费率(我们在代理商费率中没有针对001的费率, 所以购买时的费率就是默认费率 &#8216;default&#8217; ) 2. 加入一条到中国的费率, 前缀为0086, 在输入框后同样会给出购买费率 3. 再加入一条到香港的, 前缀为 00852 同样, 当组管理员添加销售给客户的费率时, 也可以看到他从分销商那里购买时的费率]]></description>
			<content:encoded><![CDATA[<p>在新一版本的asterbilling中 我们提供了一个新功能, 挡手动添加费率的时候你可以看到购买时的费率。</p>
<p>例如系统管理员为代理商设置了三条销售费率<br />
default     0.2       对所有代理商<br />
0086        0.25     对代理商: reseller1<br />
00852      0.3        对所有代理商</p>
<p><img class="attachment wp-att-363 centered alignnone" src="http://cn.astercc.org/wp-content/uploads//2009/03/new_feature_rate_hint_cn_1.png" alt="new_feature_rate_hint_cn_1" width="450" height="180" /></p>
<p>然后代理商 reseller1 登入 然后要给他下面的话吧设置费率</p>
<p>1. 先加入一条到北美的费率, 号码前缀是001, 在你输入001的时候 在输入框后面会给出针对这个前缀的购买费率(我们在代理商费率中没有针对001的费率, 所以购买时的费率就是默认费率 &#8216;default&#8217; )</p>
<p><img class="attachment wp-att-366 centered alignnone" src="http://cn.astercc.org/wp-content/uploads//2009/03/new_feature_rate_hint_cn_2.png" alt="new_feature_rate_hint_cn_2" width="450" height="180" /></p>
<p>2. 加入一条到中国的费率, 前缀为0086, 在输入框后同样会给出购买费率</p>
<p><img class="attachment wp-att-366 centered alignnone" src="http://cn.astercc.org/wp-content/uploads//2009/03/new_feature_rate_hint_cn_2.png" alt="new_feature_rate_hint_cn_2" width="450" height="180" /></p>
<p>3. 再加入一条到香港的, 前缀为 00852</p>
<p><img class="attachment wp-att-368 centered" src="http://cn.astercc.org/wp-content/uploads//2009/03/new_feature_rate_hint_cn_4.png" alt="new_feature_rate_hint_cn_4" width="450" height="180" /></p>
<p>同样, 当组管理员添加销售给客户的费率时, 也可以看到他从分销商那里购买时的费率</p>
<p><img class="attachment wp-att-369 centered alignnone" src="http://cn.astercc.org/wp-content/uploads//2009/03/new_feature_rate_hint_cn_5.png" alt="new_feature_rate_hint_cn_5" width="450" height="180" /></p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2009/03/17/asterbilling%e6%96%b0%e5%8a%9f%e8%83%bd-%e8%b4%b9%e7%8e%87%e6%8f%90%e7%a4%ba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为什么有些通话记录在asterBilling的通话记录页面中看不到</title>
		<link>http://cn.astercc.org/2008/12/14/%e4%b8%ba%e4%bb%80%e4%b9%88%e6%9c%89%e4%ba%9b%e9%80%9a%e8%af%9d%e8%ae%b0%e5%bd%95%e5%9c%a8asterbilling%e7%9a%84%e9%80%9a%e8%af%9d%e8%ae%b0%e5%bd%95%e9%a1%b5%e9%9d%a2%e4%b8%ad%e7%9c%8b%e4%b8%8d.html</link>
		<comments>http://cn.astercc.org/2008/12/14/%e4%b8%ba%e4%bb%80%e4%b9%88%e6%9c%89%e4%ba%9b%e9%80%9a%e8%af%9d%e8%ae%b0%e5%bd%95%e5%9c%a8asterbilling%e7%9a%84%e9%80%9a%e8%af%9d%e8%ae%b0%e5%bd%95%e9%a1%b5%e9%9d%a2%e4%b8%ad%e7%9c%8b%e4%b8%8d.html#comments</comments>
		<pubDate>Sun, 14 Dec 2008 14:49:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[asterCC]]></category>
		<category><![CDATA[asterisk 计费]]></category>
		<category><![CDATA[asterisk丢失CDR记录]]></category>
		<category><![CDATA[historycdr]]></category>
		<category><![CDATA[mycdr]]></category>
		<category><![CDATA[通话记录]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=251</guid>
		<description><![CDATA[有些时候，当我们到通话记录页面中去查看代理商、话吧或分机的通话记录时，发现里面没有任何记录或是缺少了一些记录，但是检查数据库会发现，实际这些记录都是在&#8217;mycdr&#8217;表中存在的，但是为什么在astterBilling 界面中看不到呢？ 原因 1: historyCdr 的问题 到asterBilling 主目录，检查你的 asterbilling.conf.php 配置文件中的‘useHistoryCdr’参数： 默认设置为 “useHistoryCdr = 1″，所以asterbilling 通话记录页会到“historycdr” 表中获取数据,但是 astercc 过程只会将数据插入“mycdr”表中，直到对记录进行“checkout” 操作（分机窗口或报告中），记录才会被转移到“historycdr”表中, 所以如果你发现在通话记录页面中缺少数据，你可以将设置“useHistoryCdr = 0″ 或是记录进行“checkout”操作。 Reason 2: 分机设置问题 虽然astercc进程会将所有通话记录插入到数据库中，但是不是所有的记录都会被计费，只有你在asterBiling中设置过的分机才会被计费。所以如果你看到数据表“mycdr”的记录中，字段 “resellerid” 和 “groupid” 是 -1的话，请在asterBilling中检查你的“分机”设置。]]></description>
			<content:encoded><![CDATA[<div class="postContent">
<p>有些时候，当我们到通话记录页面中去查看代理商、话吧或分机的通话记录时，发现里面没有任何记录或是缺少了一些记录，但是检查数据库会发现，实际这些记录都是在&#8217;mycdr&#8217;表中存在的，但是为什么在astterBilling 界面中看不到呢？</p>
<p>原因 1: historyCdr 的问题</p>
<p>到asterBilling 主目录，检查你的 asterbilling.conf.php 配置文件中的‘useHistoryCdr’参数：</p>
<p><a href="http://astercc.org/wp-content/uploads/2008/12/sc1.png"><img class="alignnone size-full wp-image-413" title="sc1" src="http://astercc.org/wp-content/uploads/2008/12/sc1.png" alt="sc1" width="433" height="110" /></a></p>
<p>默认设置为 “useHistoryCdr = 1″，所以asterbilling 通话记录页会到“historycdr” 表中获取数据,但是 astercc 过程只会将数据插入“mycdr”表中，直到对记录进行“checkout” 操作（分机窗口或报告中），记录才会被转移到“historycdr”表中, 所以如果你发现在通话记录页面中缺少数据，你可以将设置“useHistoryCdr = 0″ 或是记录进行“checkout”操作。</p>
<p><a href="http://cn.astercc.org/wp-content/uploads/2008/12/sc2.png"><img class="alignnone size-full wp-image-252" title="sc2" src="http://cn.astercc.org/wp-content/uploads/2008/12/sc2.png" alt="" width="405" height="337" /></a><a href="http://astercc.org/wp-content/uploads/2008/12/sc2.png"> </a></p>
<p>Reason 2: 分机设置问题</p>
<p>虽然astercc进程会将所有通话记录插入到数据库中，但是不是所有的记录都会被计费，只有你在asterBiling中设置过的分机才会被计费。所以如果你看到数据表“mycdr”的记录中，字段 “resellerid” 和 “groupid” 是 -1的话，请在asterBilling中检查你的“分机”设置。</p>
<p><a href="http://cn.astercc.org/wp-content/uploads/2008/12/sc3.png"><img class="alignnone size-full wp-image-253" title="sc3" src="http://cn.astercc.org/wp-content/uploads/2008/12/sc3.png" alt="" width="500" height="155" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/12/14/%e4%b8%ba%e4%bb%80%e4%b9%88%e6%9c%89%e4%ba%9b%e9%80%9a%e8%af%9d%e8%ae%b0%e5%bd%95%e5%9c%a8asterbilling%e7%9a%84%e9%80%9a%e8%af%9d%e8%ae%b0%e5%bd%95%e9%a1%b5%e9%9d%a2%e4%b8%ad%e7%9c%8b%e4%b8%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调整astercc的参数,以获取更高的对asterisk计费的性能</title>
		<link>http://cn.astercc.org/2008/11/23/%e8%b0%83%e6%95%b4astercc%e7%9a%84%e5%8f%82%e6%95%b0%e4%bb%a5%e8%8e%b7%e5%8f%96%e6%9b%b4%e9%ab%98%e7%9a%84%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e7%9a%84%e6%80%a7%e8%83%bd.html</link>
		<comments>http://cn.astercc.org/2008/11/23/%e8%b0%83%e6%95%b4astercc%e7%9a%84%e5%8f%82%e6%95%b0%e4%bb%a5%e8%8e%b7%e5%8f%96%e6%9b%b4%e9%ab%98%e7%9a%84%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e7%9a%84%e6%80%a7%e8%83%bd.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 12:50:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterCC]]></category>
		<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[astercc.conf]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[billing]]></category>
		<category><![CDATA[计费]]></category>
		<category><![CDATA[话吧]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=199</guid>
		<description><![CDATA[在astercc 进程的配置文件astercc.conf中，有一些参数，我们可以通过改变它们来获取更高的对asterisk计费的性能。 请注意：你修改配置文件后，你需要重启asterrc进程以便重新载入新参数。 refreshrate = 60 refreshrate 这个参数定义了asterrc去数据中重新载入数据的间隔时间(秒)，当你修改了asterBilling很多设置的时候，如：费率、分机等等，则你需要使用这个参数以便让asterrc更及时的读取新数据。如果你的系统稳定运营，不再做什么修改，则你可以将这个参数设置为&#8217;refreshrate = -1&#8242;，那么asterrc只会在每次重启的时候将数据载入，而不会在进行期间不断的去连接数据库重新载入数据。 refreshlock = 30 定义astercclock每间隔多少秒去数据库读取一次数据，以则锁定或解锁分机、组及代理商。 calculateallcdr = no 当将此参数设置为&#8217;yes&#8217;时，asterrc将mycdr表中所有通话记录进行重新计算，包括groupid =-1 or resellerid = -1的记录，这个功能一般在你需要计算包括之前未计费的通话记录在内的所有通话的费用时使用。 calculateoldcdr = no 此参数设置为&#8217;yes&#8217;时，asterrc将重新计算mycdr中所有的记录。一般在你需要计算历史通话记录时使用，主要可能因为你改变了通话费率，所以想重置所用账户的额度。 callbackbill = src 在使用回拨功能时： ; src: 只对主叫计费 ; dst: 只对被叫计费 ; both: 对双方计费 removeNonSysCDR = 0 ; 控制asterrc是否清除非系统用户(resellerid = -1 or groupid = -1)的通话记录。&#8217;0&#8242;为不清除;&#8217;1&#8242;为清除。 removeNoAnswerCDR = 0 ; [...]]]></description>
			<content:encoded><![CDATA[<p>在astercc 进程的配置文件astercc.conf中，有一些参数，我们可以通过改变它们来获取更高的对asterisk计费的性能。</p>
<p>请注意：你修改配置文件后，你需要重启asterrc进程以便重新载入新参数。</p>
<p><span style="color: #0000ff;"><strong>refreshrate </strong></span>= 60</p>
<p>refreshrate 这个参数定义了asterrc去数据中重新载入数据的间隔时间(秒)，当你修改了asterBilling很多设置的时候，如：费率、分机等等，则你需要使用这个参数以便让asterrc更及时的读取新数据。如果你的系统稳定运营，不再做什么修改，则你可以将这个参数设置为&#8217;<span style="color: #0000ff;"><strong>refreshrate </strong></span>= -1&#8242;，那么asterrc只会在每次重启的时候将数据载入，而不会在进行期间不断的去连接数据库重新载入数据。</p>
<p><strong><span style="color: #0000ff;">refreshlock </span></strong>= 30</p>
<p>定义astercclock每间隔多少秒去数据库读取一次数据，以则锁定或解锁分机、组及代理商。</p>
<p><strong><span style="color: #0000ff;">calculateallcdr </span></strong>= no</p>
<p>当将此参数设置为&#8217;yes&#8217;时，asterrc将mycdr表中所有通话记录进行重新计算，包括groupid =-1 or resellerid = -1的记录，这个功能一般在你需要计算包括之前未计费的通话记录在内的所有通话的费用时使用。</p>
<p><strong><span style="color: #0000ff;">calculateoldcdr </span></strong>= no</p>
<p>此参数设置为&#8217;yes&#8217;时，asterrc将重新计算mycdr中所有的记录。一般在你需要计算历史通话记录时使用，主要可能因为你改变了通话费率，所以想重置所用账户的额度。</p>
<p><strong><span style="color: #0000ff;">callbackbill </span></strong>= src</p>
<p>在使用回拨功能时：<br />
; src: 只对主叫计费<br />
; dst: 只对被叫计费<br />
; both: 对双方计费</p>
<p><strong><span style="color: #0000ff;">removeNonSysCDR </span></strong>= 0</p>
<p>; 控制asterrc是否清除非系统用户(resellerid = -1 or groupid = -1)的通话记录。&#8217;0&#8242;为不清除;&#8217;1&#8242;为清除。</p>
<p><strong><span style="color: #0000ff;">removeNoAnswerCDR</span></strong> = 0</p>
<p>; 控制asterrc是否清除未接通电话的通话记录。&#8217;0&#8242;为不清除;&#8217;1&#8242;为清除。</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/11/23/%e8%b0%83%e6%95%b4astercc%e7%9a%84%e5%8f%82%e6%95%b0%e4%bb%a5%e8%8e%b7%e5%8f%96%e6%9b%b4%e9%ab%98%e7%9a%84%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e7%9a%84%e6%80%a7%e8%83%bd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterbilling与asterisk2billing(a2billing)对asterisk计费的区别</title>
		<link>http://cn.astercc.org/2008/11/22/asterbilling%e4%b8%8easterisk2billinga2billing%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e7%9a%84%e5%8c%ba%e5%88%ab.html</link>
		<comments>http://cn.astercc.org/2008/11/22/asterbilling%e4%b8%8easterisk2billinga2billing%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e7%9a%84%e5%8c%ba%e5%88%ab.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 02:41:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[a2billing]]></category>
		<category><![CDATA[asteisk]]></category>
		<category><![CDATA[asterisk billing]]></category>
		<category><![CDATA[asterisk计费]]></category>
		<category><![CDATA[calling card]]></category>
		<category><![CDATA[实时计费]]></category>
		<category><![CDATA[电话卡]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=194</guid>
		<description><![CDATA[a2billing 是一个被广泛应用的计费系统，它与asterBilling 有什么区别呢？ 系统工作原理： a2billing 通过AGI与astersisk结合工作，每个电话都需要要经过a2billing.agi进行处理，所以你需要修改你的asterisk的拨号路由，将每个通话送入a2billing.agi进行处理，当然你需要将a2billing的脚本放入你的asterisk服务器中。 asterbilling 作为一个运行在linux中的守护进程, 由TCP协议承载通过AMI连接asterisk,你不需要对你的asterisk做任何修改，就可以用asaterbilling 进行计费。甚至asterBilling可以与a2billing系统一起工作。 许可 &#38; 费用： a2billing: 100% 开源，完全免费。 asterbilling: web脚本开源，提供五个免费并发通道许可，如果需要更多，则要购买许可。 性能： a2billing: 大概每单台服务器能支持100个并发？我还没有具体测试过&#8230; asterbilling: 经测试的可超过 240个并发,还没有测试过更大的并发。 最佳应用： a2billing: 电话卡，回拨或话务批发方案。 asterbilling: 对嵌入式astiersk系统计费, pbx (如所有基于 freepbx 的系统), 话吧, 集中式连锁话吧方案，多级计费。 其它方面： a2billing: openser asterbilling: 实时计费,代理商/话吧/客户 三级计费]]></description>
			<content:encoded><![CDATA[<p>a2billing 是一个被广泛应用的计费系统，它与asterBilling 有什么区别呢？</p>
<h4><strong>系统工作原理：</strong></h4>
<p>a2billing 通过AGI与astersisk结合工作，每个电话都需要要经过a2billing.agi进行处理，所以你需要修改你的asterisk的拨号路由，将每个通话送入a2billing.agi进行处理，当然你需要将a2billing的脚本放入你的asterisk服务器中。</p>
<p>asterbilling 作为一个运行在linux中的守护进程, 由TCP协议承载通过AMI连接asterisk,你不需要对你的asterisk做任何修改，就可以用asaterbilling 进行计费。甚至asterBilling可以与a2billing系统一起工作。</p>
<p><strong>许可 &amp; 费用：</strong></p>
<p>a2billing: 100% 开源，完全免费。</p>
<p>asterbilling: web脚本开源，提供五个免费并发通道许可，如果需要更多，则要购买许可。<strong></strong></p>
<p><strong>性能：<br />
</strong>a2billing: 大概每单台服务器能支持100个并发？我还没有具体测试过&#8230; <img src='http://cn.astercc.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>asterbilling: 经测试的可超过 240个并发,还没有测试过更大的并发。</p>
<p><strong>最佳应用：</strong></p>
<p>a2billing: 电话卡，回拨或话务批发方案。</p>
<p>asterbilling: 对嵌入式astiersk系统计费, pbx (如所有基于 freepbx 的系统), 话吧, 集中式连锁话吧方案，多级计费。</p>
<p><strong>其它方面：</strong></p>
<p>a2billing: openser</p>
<p>asterbilling: 实时计费,代理商/话吧/客户 三级计费</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/11/22/asterbilling%e4%b8%8easterisk2billinga2billing%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e7%9a%84%e5%8c%ba%e5%88%ab.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用asterBilling对asterisk计费时的费率设置方法</title>
		<link>http://cn.astercc.org/2008/11/21/%e4%bd%bf%e7%94%a8asterbilling%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e6%97%b6%e7%9a%84%e8%b4%b9%e7%8e%87%e8%ae%be%e7%bd%ae%e6%96%b9%e6%b3%95.html</link>
		<comments>http://cn.astercc.org/2008/11/21/%e4%bd%bf%e7%94%a8asterbilling%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e6%97%b6%e7%9a%84%e8%b4%b9%e7%8e%87%e8%ae%be%e7%bd%ae%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Fri, 21 Nov 2008 08:03:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[asterisk 计费]]></category>
		<category><![CDATA[hosted callshop]]></category>
		<category><![CDATA[realtime billing]]></category>
		<category><![CDATA[代理商]]></category>
		<category><![CDATA[实时计费]]></category>
		<category><![CDATA[计费]]></category>
		<category><![CDATA[话吧]]></category>
		<category><![CDATA[费率]]></category>
		<category><![CDATA[连锁话吧]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=182</guid>
		<description><![CDATA[在asterBilling中有三种费率表，代理商费率、话吧费率和用户费率。 代理商费率：admin出售给代理商的费率。 话吧费率 (组费率)： 代理商出售给话吧(组)的费率。 用户费率：话吧出售给客户的费率。 asterBilling 中的费率是可以被继承的，例如，有两条记录在 resellerrate表中： dialpreifx = 0086 number length = 0 connect charge = 0.2 init block = 60 rate = 0.1 billing block = 60 resellerid = 0 dialpreifx = 0049 number length = 0 connect charge = 0.4 init block = 60 rate = 0.4 billing block = [...]]]></description>
			<content:encoded><![CDATA[<p>在asterBilling中有三种费率表，代理商费率、话吧费率和用户费率。</p>
<ul>
<li>代理商费率：admin出售给代理商的费率。</li>
<li>话吧费率 (组费率)： 代理商出售给话吧(组)的费率。</li>
<li>用户费率：话吧出售给客户的费率。</li>
</ul>
<p>asterBilling 中的费率是可以被继承的，例如，有两条记录在 resellerrate表中：</p>
<p><a href="http://cn.astercc.org/wp-content/uploads/2008/11/asterbilling_resellerrate1_add.png"><img class="alignnone size-full wp-image-183" title="asterbilling_resellerrate1_add" src="http://cn.astercc.org/wp-content/uploads/2008/11/asterbilling_resellerrate1_add.png" alt="" width="500" height="421" /></a></p>
<p>dialpreifx = 0086<br />
number length = 0<br />
connect charge = 0.2<br />
init block = 60<br />
rate = 0.1<br />
billing block = 60<br />
<strong><span style="color: #ff0000;">resellerid = 0</span></strong></p>
<p>dialpreifx = 0049<br />
number length = 0<br />
connect charge = 0.4<br />
init block = 60<br />
rate = 0.4<br />
billing block = 60<br />
<span style="color: #ff0000;"><strong>resellerid = 0</strong></span></p>
<p>因为我们没有为这条费率指定一个代理商，所有这条费率会被应用于所有代理商。如果你不想让某一个代理商应用这条默认的费率，非常简单，只需要为这个代理商添加一条费率：</p>
<p>dialpreifx = 0086<br />
number length = 0<br />
connect charge = 0.2<br />
init block = 60<br />
rate = 0.2<br />
billing block = 60<br />
<span style="color: #ff0000;"><strong> resellerid = 1</strong></span></p>
<p>上面这条费率我们指定了代理商(resellerid=1)，当他的客户拨一个0086开头的号码时，将会应用这条新费率计费。</p>
<p>与代理商费率一样，话吧费率也可以被继承：</p>
<p>A:<br />
dialpreifx = 0086<br />
number length = 0<br />
connect charge = 0.2<br />
init block = 60<br />
rate = 0.2<br />
billing block = 60<br />
<strong><span style="color: #ff0000;">resellerid = 1<br />
</span></strong><strong><span style="color: #ff0000;">grouprid = 1</span></strong></p>
<p>B:</p>
<p><a href="http://cn.astercc.org/wp-content/uploads/2008/11/asterbilling_grouprate_add.png"><img class="alignnone size-full wp-image-184" title="asterbilling_grouprate_add" src="http://cn.astercc.org/wp-content/uploads/2008/11/asterbilling_grouprate_add.png" alt="" width="500" height="445" /></a><br />
dialpreifx = 0086<br />
number length = 0<br />
connect charge = 0.4<br />
init block = 60<br />
rate = 0.4<br />
billing block = 60<br />
<strong><span style="color: #ff0000;">resellerid = 1<br />
</span></strong><strong><span style="color: #ff0000;">grouprid = 0</span></strong></p>
<p>C:</p>
<p><a href="http://cn.astercc.org/wp-content/uploads/2008/11/asterbilling_grouprate1_add.png"><img class="alignnone size-full wp-image-186" title="asterbilling_grouprate1_add" src="http://cn.astercc.org/wp-content/uploads/2008/11/asterbilling_grouprate1_add.png" alt="" width="500" height="447" /></a></p>
<p>dialpreifx = 0086<br />
number length = 0<br />
connect charge = 0.4<br />
init block = 60<br />
rate = 0.4<br />
billing block = 60<br />
<span style="color: #ff0000;"><strong>resellerid = 0<br />
groupid = 0</strong></span></p>
<p>费率C将被应用于所有代理商和组，费率B将被应用于reseller1下的所有组，费率A 仅被应用于group1。</p>
<p>通过继承费率，admin可以更容易的控制费率，比如设置一套费率用于所在代理商，只调整需要不同费率的部分，代理商也可以所有组设置一套费率，对特殊费率进行小范围的调整。</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/11/21/%e4%bd%bf%e7%94%a8asterbilling%e5%af%b9asterisk%e8%ae%a1%e8%b4%b9%e6%97%b6%e7%9a%84%e8%b4%b9%e7%8e%87%e8%ae%be%e7%bd%ae%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asterbilling + asterisk 的集中式连锁话吧方案</title>
		<link>http://cn.astercc.org/2008/11/21/asterbilling-asterisk-%e7%9a%84%e9%9b%86%e4%b8%ad%e5%bc%8f%e8%bf%9e%e9%94%81%e8%af%9d%e5%90%a7%e6%96%b9%e6%a1%88.html</link>
		<comments>http://cn.astercc.org/2008/11/21/asterbilling-asterisk-%e7%9a%84%e9%9b%86%e4%b8%ad%e5%bc%8f%e8%bf%9e%e9%94%81%e8%af%9d%e5%90%a7%e6%96%b9%e6%a1%88.html#comments</comments>
		<pubDate>Fri, 21 Nov 2008 05:43:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[asterCC]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[callshop]]></category>
		<category><![CDATA[Elastix]]></category>
		<category><![CDATA[freepbx]]></category>
		<category><![CDATA[代理商]]></category>
		<category><![CDATA[实时计费]]></category>
		<category><![CDATA[话吧]]></category>
		<category><![CDATA[集中式话吧]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=179</guid>
		<description><![CDATA[asterBilling 是对asterisk进行实时计费的软件，通过asterBilling，你可以很容易的基于asterisk建立集中管理分布运营的连连锁话。 asterBilling 集中式话吧方案的特性： 代理商，话吧，客户 三级计费 全部功能基于web页面 高性能 适用于所有基于asterisk的系统 在这里，我们简单介绍一下如何就asterisk和asterbilling建立一个集中式话吧。 1. 安装asterisk 2. 在asterisk中添加中继和拨号计划 编辑 /etc/asterisk/sip.conf ，在这里添加中继信息： 设置拨号计划，编辑 /etc/asterisk/extensions.conf 添加一个context 3. 安装asterBilling 4. 设置 asterbilling.conf.php 你需要设置asterbilling 配置文件适用你的服务器设置，编辑asterbilling目录中的asterbilling.conf.php，找到[sipbuddy]部分，修改&#8217;context＝from-booth&#8217;，此时由asterbilling生成的sip 分机会使用&#8217;from-booth&#8217;这条路由拨出。 默认情况下，asterbilling 将生成的所有分机配置信息存入文件 &#8220;/etc/asterisk/sip_astercc&#8221;，你可以在配置文件中通过参数&#8217;sipfile&#8217;更改目标文件，如果你不希望用asterbilling生成sip 分机，则将其设置为空。 另外要注意的是，如果你使用了asterbilling 生成sip分机，你需要将存储分机信息的文件包含在sip.conf中。 编辑 /etc/asterisk/sip.conf 添加： #include sip_astercc.conf 5. 设置代理商和话吧 6. 设置通话费率 7. 查看报告]]></description>
			<content:encoded><![CDATA[<p>asterBilling 是对asterisk进行实时计费的软件，通过asterBilling，你可以很容易的基于asterisk建立集中管理分布运营的连连锁话。</p>
<p>asterBilling 集中式话吧方案的特性：</p>
<ul>
<li>代理商，话吧，客户 三级计费</li>
<li>全部功能基于web页面</li>
<li>高性能</li>
<li>适用于所有基于asterisk的系统</li>
</ul>
<p>在这里，我们简单介绍一下如何就asterisk和asterbilling建立一个集中式话吧。</p>
<p>1. 安装asterisk</p>
<p>2. 在asterisk中添加中继和拨号计划</p>
<p>编辑 /etc/asterisk/sip.conf ，在这里添加中继信息：</p>
<p><a href="http://astercc.org/wp-content/uploads/2008/11/asterisk_trunk_setting.png"><img class="alignnone size-full wp-image-341" title="asterisk_trunk_setting" src="http://astercc.org/wp-content/uploads/2008/11/asterisk_trunk_setting.png" alt="" width="344" height="156" /></a></p>
<p>设置拨号计划，编辑 /etc/asterisk/extensions.conf 添加一个context</p>
<p><a href="http://astercc.org/wp-content/uploads/2008/11/asterisk_extensions_setting.png"><img class="alignnone size-full wp-image-343" title="asterisk_extensions_setting" src="http://astercc.org/wp-content/uploads/2008/11/asterisk_extensions_setting.png" alt="" width="395" height="92" /></a></p>
<p>3. 安装asterBilling</p>
<p>4. 设置 asterbilling.conf.php</p>
<p>你需要设置asterbilling 配置文件适用你的服务器设置，编辑asterbilling目录中的asterbilling.conf.php，找到[sipbuddy]部分，修改&#8217;context＝from-booth&#8217;，此时由asterbilling生成的sip 分机会使用&#8217;from-booth&#8217;这条路由拨出。</p>
<p><a href="http://astercc.org/wp-content/uploads/2008/11/asterbilling_conf_set_1.png"><img class="alignnone size-full wp-image-345" title="asterbilling_conf_set_1" src="http://astercc.org/wp-content/uploads/2008/11/asterbilling_conf_set_1.png" alt="" width="250" height="188" /></a></p>
<p>默认情况下，asterbilling 将生成的所有分机配置信息存入文件 &#8220;/etc/asterisk/sip_astercc&#8221;，你可以在配置文件中通过参数&#8217;sipfile&#8217;更改目标文件，如果你不希望用asterbilling生成sip 分机，则将其设置为空。</p>
<p><a href="http://astercc.org/wp-content/uploads/2008/11/asterbilling_conf_set_2.png"><img class="alignnone size-full wp-image-346" title="asterbilling_conf_set_2" src="http://astercc.org/wp-content/uploads/2008/11/asterbilling_conf_set_2.png" alt="" width="663" height="72" /></a></p>
<p>另外要注意的是，如果你使用了asterbilling 生成sip分机，你需要将存储分机信息的文件包含在sip.conf中。</p>
<p>编辑 /etc/asterisk/sip.conf 添加：</p>
<p><em><strong>#include sip_astercc.conf</strong></em></p>
<p><a href="http://astercc.org/wp-content/uploads/2008/11/asterisk_include_setting.png"><img class="alignnone size-full wp-image-347" title="asterisk_include_setting" src="http://astercc.org/wp-content/uploads/2008/11/asterisk_include_setting.png" alt="" width="477" height="54" /></a></p>
<p>5. 设置代理商和话吧</p>
<p>6. 设置通话费率</p>
<p>7. 查看报告</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/11/21/asterbilling-asterisk-%e7%9a%84%e9%9b%86%e4%b8%ad%e5%bc%8f%e8%bf%9e%e9%94%81%e8%af%9d%e5%90%a7%e6%96%b9%e6%a1%88.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用astercc和asterrc进程对你的asterisk系统进行计费</title>
		<link>http://cn.astercc.org/2008/11/18/%e4%bd%bf%e7%94%a8astercc%e5%92%8casterrc%e8%bf%9b%e7%a8%8b%e5%af%b9%e4%bd%a0%e7%9a%84asterisk%e7%b3%bb%e7%bb%9f%e8%bf%9b%e8%a1%8c%e8%ae%a1%e8%b4%b9.html</link>
		<comments>http://cn.astercc.org/2008/11/18/%e4%bd%bf%e7%94%a8astercc%e5%92%8casterrc%e8%bf%9b%e7%a8%8b%e5%af%b9%e4%bd%a0%e7%9a%84asterisk%e7%b3%bb%e7%bb%9f%e8%bf%9b%e8%a1%8c%e8%ae%a1%e8%b4%b9.html#comments</comments>
		<pubDate>Tue, 18 Nov 2008 07:59:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[asterCC]]></category>
		<category><![CDATA[asterisk计费]]></category>
		<category><![CDATA[asterrc]]></category>
		<category><![CDATA[实时计费]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=151</guid>
		<description><![CDATA[asterrc 是asterCC软件包中的一个计费脚本，asterrc与astercc进程一起工作，可以为你的asterisk系统提供计费功能。 在&#8217;curcdr&#8217;中有一些用于计费的字段，它们包括： `credit` : 当前通话分机的实时话费 (根据&#8217;myrate&#8217;表中的费率计算) `callshopcredit`: 当次通话话吧的实时话费 (rates in table &#8216;callshoprate&#8217;) `resellercredit`: 当次通话代理商的实时话费 (rates in table &#8216;resellerrate&#8217;) `creditlimit`: 如果对当前通话设置了话费限额，当&#8217;credit&#8217;值达到这个限额值的时候，通话将会被自动挂断 `destination` : 从&#8217;myrate&#8217;表中读取的目的地信息 `memo` : 根据&#8217;myrate&#8217;表对当前通话的计费信息 在一个通话期间，asterrc 将实时维护更新上面的字段。此外，在&#8217;mycdr&#8217; 表中，也有与上面相同的字段，当一个通话结束后，该通话的最终信息会被存入&#8217;mycdr&#8217;表中，我们可以通过这个表获得历史通话信息。 在&#8217;clid&#8217;, &#8216;accountgroup&#8217;,'resellergroup&#8217; 表中也包含了计费相关字段： `curcredit` 当前发生的话费 (作为计费标识) `credit_clid` 分机的话费总计 `credit_group` 组(话吧)的话费总计 `credit_reseller` 代理商的话费总计 下面的段落详细介绍asterrc的工作流程： 假设我们定义了一个费率表：给代理商的费率是每分钟0.1元，代理商给话吧的费率是每分钟0.2元，话吧给最终用户的费率是每分钟0.4元，计费间隔都是60秒，当最终用户拨打一个电话时，astercc得到实时通话信息并存入&#8217;curcdr&#8217;中，asterrc从&#8217;curcdr&#8217;中发现这条信息，当接通时间到达第一个60秒时，asterrc会将本条通话信息的&#8217;credit&#8217;, &#8216;callshopcredit&#8217;, &#8216;resellercredit&#8217;字段分别插入值0.4，0.2，0.1，到了第二个60秒时，asterrc将分别更新&#8217;credit&#8217;, &#8216;callshopcredit&#8217;, &#8216;resellercredit&#8217;字段的值为0.8, 0.4, 0.2&#8230;&#8230;当到了两分半(150秒)时，客户挂断了电话，此时我们会得到此次通话的最终计费信息&#8217;credit&#8217;值为1.2，&#8217;callshopcredit&#8217;值为0.6,&#8217;resellercredit&#8217;值为0.3。同时，在 clid, accountgroup 和resellergroup表中的计费字段值也会被更新 credit_clid = [...]]]></description>
			<content:encoded><![CDATA[<p>asterrc 是asterCC软件包中的一个计费脚本，asterrc与astercc进程一起工作，可以为你的asterisk系统提供计费功能。</p>
<p>在&#8217;curcdr&#8217;中有一些用于计费的字段，它们包括：</p>
<p>`credit` : 当前通话分机的实时话费 (根据&#8217;myrate&#8217;表中的费率计算)<br />
`callshopcredit`: 当次通话话吧的实时话费 (rates in table &#8216;callshoprate&#8217;)<br />
`resellercredit`: 当次通话代理商的实时话费 (rates in table &#8216;resellerrate&#8217;)<br />
`creditlimit`: 如果对当前通话设置了话费限额，当&#8217;credit&#8217;值达到这个限额值的时候，通话将会被自动挂断<br />
`destination` : 从&#8217;myrate&#8217;表中读取的目的地信息<br />
`memo` : 根据&#8217;myrate&#8217;表对当前通话的计费信息</p>
<p>在一个通话期间，asterrc 将实时维护更新上面的字段。此外，在&#8217;mycdr&#8217; 表中，也有与上面相同的字段，当一个通话结束后，该通话的最终信息会被存入&#8217;mycdr&#8217;表中，我们可以通过这个表获得历史通话信息。</p>
<p>在&#8217;clid&#8217;, &#8216;accountgroup&#8217;,'resellergroup&#8217; 表中也包含了计费相关字段：</p>
<p>`curcredit` 当前发生的话费 (作为计费标识)<br />
`credit_clid` 分机的话费总计<br />
`credit_group` 组(话吧)的话费总计<br />
`credit_reseller` 代理商的话费总计</p>
<p>下面的段落详细介绍asterrc的工作流程：</p>
<p>假设我们定义了一个费率表：给代理商的费率是每分钟0.1元，代理商给话吧的费率是每分钟0.2元，话吧给最终用户的费率是每分钟0.4元，计费间隔都是60秒，当最终用户拨打一个电话时，astercc得到实时通话信息并存入&#8217;curcdr&#8217;中，asterrc从&#8217;curcdr&#8217;中发现这条信息，当接通时间到达第一个60秒时，asterrc会将本条通话信息的&#8217;credit&#8217;, &#8216;callshopcredit&#8217;, &#8216;resellercredit&#8217;字段分别插入值0.4，0.2，0.1，到了第二个60秒时，asterrc将分别更新&#8217;credit&#8217;, &#8216;callshopcredit&#8217;, &#8216;resellercredit&#8217;字段的值为0.8, 0.4, 0.2&#8230;&#8230;当到了两分半(150秒)时，客户挂断了电话，此时我们会得到此次通话的最终计费信息&#8217;credit&#8217;值为1.2，&#8217;callshopcredit&#8217;值为0.6,&#8217;resellercredit&#8217;值为0.3。同时，在 clid, accountgroup 和resellergroup表中的计费字段值也会被更新 credit_clid = credit_clid + 1.2, credit_group = credit_group + 0.6, credit_reseller = credit_reseller + 0.3。</p>
<p>字段 &#8216;curcredit&#8217; 在一个通话结束后会被更新，用来存储当前发生的话费累计，并且同&#8217;creditlimt&#8217;字段值做比较，如果账户设限了限制类型并且curcredit值大于或等于creditlimt值，则此账户所属要机的通话会被挂断，当一个代理商/话吧/用户续交话费，则我们要在管理界面中将设值curcredit值等于当前值减去交费额(curcredit &#8211; {续交话费金额}) ，此时curcredit的值又小于creditlimit的值，账户所属分机可以继续使用。</p>
<p>举个例子，假设一个代理商向你交了500元话费，你设置他的限制类型为预付费，则它在resellergroup表中相关字段值应为creditlimit = 500, then it is curcredit = 0, limittype= prepaid, creditlimit = 500，此时，这个代理商下属的话吧开始营业，resellergroup表中的curcredit(根据费率表resellerrate为代理商计费) 随之不断增加，当curcredit值达到500时，此代商理所属话吧的话机将无法继续拨打电话，然后代理商又续交了2000元的话费，这时你可以通过以下任意一种操作为其充值：</p>
<p>1. 修改代理商的creditlimit 变成500+2000 = 2500，但是我们推荐使用此种方式，因为对creditlimit的操作系统中是没有历史记录的，而且creditlimit的数值不断增大，也不便于管理。</p>
<p>2. 将curcredit的值减少2000, 也就是 curcredit = 500-2000 = -1500，这个操作会被系统记录在 credithistory中，你可以随时进行查看。</p>
<p>希望本文可以帮助你更好的了解asterBilling的工作原理。</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/11/18/%e4%bd%bf%e7%94%a8astercc%e5%92%8casterrc%e8%bf%9b%e7%a8%8b%e5%af%b9%e4%bd%a0%e7%9a%84asterisk%e7%b3%bb%e7%bb%9f%e8%bf%9b%e8%a1%8c%e8%ae%a1%e8%b4%b9.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何更新asterCC的许可</title>
		<link>http://cn.astercc.org/2008/11/18/%e5%a6%82%e4%bd%95%e6%9b%b4%e6%96%b0astercc%e7%9a%84%e8%ae%b8%e5%8f%af.html</link>
		<comments>http://cn.astercc.org/2008/11/18/%e5%a6%82%e4%bd%95%e6%9b%b4%e6%96%b0astercc%e7%9a%84%e8%ae%b8%e5%8f%af.html#comments</comments>
		<pubDate>Tue, 18 Nov 2008 06:20:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterCC]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[asterBilling]]></category>
		<category><![CDATA[asterCRM]]></category>
		<category><![CDATA[licence]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[并发许可]]></category>
		<category><![CDATA[更新许可]]></category>
		<category><![CDATA[许可]]></category>

		<guid isPermaLink="false">http://cn.astercc.org/?p=146</guid>
		<description><![CDATA[默认情况下，astercc提供5路并发通道的许可，如果你需要更多并发，可以购买升级许可。 首先，进入astercc进程目录 cd /opt/asterisk/scripts/astercc 打开astercc.conf 文件，找到[licence]部分，你可以看到如下三个参数： [licence] licenceto = key = channel = 5 修改 &#8220;channel&#8221; 等于你需要的并发通道数，&#8221;licence to&#8221; 参数填写你的公司/组织名称 [licence] licenceto = 公司名 key = channel = 50 保存并关闭文件，然后进行本目录下的astercc进程，你将会看到类似下面的两行提示： [dev01 astercc]# ./astercc Invalid key, please contact the administrator identity = b0a5ebca13556ca9ca91813dd88dfgd9 now send this identitykey and all content in licence section (licenceto and channel) to [...]]]></description>
			<content:encoded><![CDATA[<p>默认情况下，astercc提供5路并发通道的许可，如果你需要更多并发，可以购买升级许可。</p>
<p>首先，进入astercc进程目录</p>
<p>cd /opt/asterisk/scripts/astercc</p>
<p>打开astercc.conf 文件，找到[licence]部分，你可以看到如下三个参数：</p>
<pre>[licence]
licenceto =
key =
channel = 5</pre>
<p>修改 &#8220;channel&#8221; 等于你需要的并发通道数，&#8221;licence to&#8221; 参数填写你的公司/组织名称</p>
<pre>[licence]
licenceto = 公司名
key =
channel = 50</pre>
<p>保存并关闭文件，然后进行本目录下的astercc进程，你将会看到类似下面的两行提示：</p>
<pre>[dev01 astercc]# ./astercc
Invalid key, please contact the administrator
identity = b0a5ebca13556ca9ca91813dd88dfgd9</pre>
<p>now send this identitykey and all content in licence section (licenceto and channel) to astercc, we&#8217;ll send you back the licence key, then update your astercc.conf with the licence key, restart astercc &amp; asterrc daemons. If no error message output, your astercc support more simultaneous “50” channels now.</p>
<p>接下来你需要做的是，将identity 以及上面所填写的&#8221;licence to&#8221; 和 &#8220;channel&#8221; 内容发送给我们，我们会发送新的许可给你，收到许可后，将许可密钥更新到astercc.conf的[licence]部分中的&#8221;licence key&#8221;参数中，重启astercc进程，如果没有错误提示，说明许可已经成功更新，你的astercc已经可以支持“50”路的asterisk并发呼叫。</p>
]]></content:encoded>
			<wfw:commentRss>http://cn.astercc.org/2008/11/18/%e5%a6%82%e4%bd%95%e6%9b%b4%e6%96%b0astercc%e7%9a%84%e8%ae%b8%e5%8f%af.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
