锘??xml version="1.0" encoding="utf-8" standalone="yes"?> First, create a file called /tmp/exclude and add the following lines to it: .bash_history lost+found /dev/* /mnt/* /tmp/* /proc/* /sys/* /usr/src/* scp /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz root@ip:/var/lib/vz/template/iso cd dev mknod dev/null c 1 3 mknod -m 644 dev/random c 1 8 mknod dev/urandom c 1 9 blacklist net-pf-10 Disable any physical NICs by modifying the etc/sysconfig/network-scripts/ifcfg-ethX files (where X is the interface number starting from 0) and setting ONBOOT to no. Check etc/sysconfig/init to see if PROMPT=yes, and then change to no. Otherwise when startup init script rc will enter interactive mode and wait there forever vzctl set 100 --devnodes dahdi/pseudo:rw --save
]]>
鐒跺悗
$ext->add($context, $exten, '', new ext_dial('${OUT_${DIAL_TRUNK}}/${OUTNUM}', '300,${DIAL_TRUNK_OPTIONS}')); // Regular Trunk Dial
$ext->add($context, $exten, 'skipoutnum', new ext_dial('${pre_num:4}${the_num}${post_num}', '300,${DIAL_TRUNK_OPTIONS}'));
300 鏀規垚浣犺嚜宸辮緗殑鏃墮棿
]]>
apt-get -y update
apt-get -y makedev
apt-get -y install build-essential make pve-headers-`uname -r`
cd /usr/src/
wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
tar zxfv dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-*
make all
make install
make config
mkdir /etc/asterisk
service dahdi start
dahdi_genconf
vi /etc/dahdi/modules 鍏ㄩ儴鍔?鍙鋒敞閲?br />
sed -i 's|ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length|ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp|' /etc/vz/vz.conf
/etc/init.d/vz restart
//紱佺敤ipv6
/boot/grub/grub.cfg 涓?linux /vmlinuz-2.6.32-16-pve root=/dev/mapper/pve-root ro quiet 鏇挎崲鎴?linux /vmlinuz-2.6.32-16-pve root=/dev/mapper/pve-root ro ipv6.disable=1 quiet
鍦╡lastix2.3鏈哄櫒涓?鍙傝?http://wiki.openvz.org/Creating_a_CentOS_5.0_Template
tar --numeric-owner -czvf /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz -X /tmp/exclude /
鍥炲埌proxmox ve 鏈哄櫒 浣跨敤 web浠?strong>centos-5.7-x86_64-elasitx_orig-image 涓烘ā鏉垮垱寤簐t铏氭嫙鏈?nbsp; 鍋囪 vm id 涓?100
ssh 鍒?proxmox ve
cd /var/lib/vz/private/100
Edit the etc/inittab file and comment out the lines that respawn /sbin/mingetty on tty1 through tty6. Just put a # at the beginning of the line.
鍦?etc/inittab 鏂囦歡鏈鍚庨潰鍔犲叆
1:2345:respawn:/sbin/agetty tty1 38400 linux
Remove the etc/mtab file and then create a symbolic link by typing ln -s /proc/mounts etc/mtab
Remove all of the lines from etc/fstab except for the line that mounts /dev/pts
Edit etc/rc.d/rc.sysinit and comment out the line that starts /sbin/start_udev by placing a # at the beginning of the line.
mknod dev/ptmx c 5 2
mkdir dev/pts
/sbin/MAKEDEV ttyp ptyp
cd ../
mknod dev/tty9 c 4 9
Create the var/lock/rpm folder.
Edit etc/sysconfig/network and set NETWORKING_IPV6 to no.
Add the following lines to etc/modprobe.d/blacklist.conf:
blacklist ipv6
vzctl start 100
vzctl enter 100
chkconfig haldaemon off
chkconfig dahdi off
chkconfig wanrouter off
rm -rf /etc/init.d/dahdi
rm -rf /etc/init.d/wanrouter
chkconfig acpid off
chkconfig kudzu off
chkconfig xfs off
chkconfig rpcidmapd off
chkconfig rpcgssd off
chkconfig nfslock off
chkconfig mdmonitor off
chkconfig ip6tables off
exit
cd /var/lib/vz/private/100
tar -czvf /var/lib/vz/template/cache/centos-5-x86_64-elasitx.tar.gz ./
]]>
A2Billing 鏄洰鍓嶇ぞ緹ら枊鐧兼渶鐔遍杸鐨勮▓璨葷郴緄卞浠訛紝鍥犵偤鏄枊鏀懼師濮嬬⒓鎺堟瑠鎵浠ュ彲浠ュ悎娉曞厤璨諱嬌鐢ㄣ?/p>
鏈瘒涓昏鍦ㄦ槸鏁欏皫濡備綍浣跨敤閫欏浠訛紝鑻ラ倓娌掑畬鎴愬畨瑁濈殑鏈嬪弸錛岃珛鍏堝墠寰闁辮畝 A2Billing 瀹夎綃?/a>銆?/p>
緋葷當鍦ㄥ畬鎴愬畨瑁濆緦錛岀涓鍊嬫墍瑕佸仛鐨勮ō瀹氭湁錛?/p>
// FreePBX UI > Trunks
鏂板 Outbound Trunk錛屾湰綃囦互 Voxalot 鐐轟緥銆?/p>
Outgoing Settings
Trunk Name = voxalot
host=us.voxalot.com username=<sip_number> fromuser=<sip_number> secret=<sip_pass> fromdomain=voxalot.com nat=yes insecure=port,invite qualify=yes canreinvite=yes dtmfmode=auto disallow=all allow=ulaw&alaw type=peer context=from-trunk
鏂板 Inbound Trunk錛岄欏嬩富瑕佸湪灞曠ず鍦嬮殯闆昏┍鍗″強 DID 杞夋帴鐨勬噳鐢紝鏈瘒浠?iptel 鐐轟緥銆?/p>
Outgoing Settings
Trunk Name: iptel
username=<sip_username> type=friend secret=<sip_pass> qualify=yes insecure=port,invite host=iptel.org fromuser=osslab fromdomain=iptel.org context=a2billing
Register String: <sip_username>:<sip_pass>@iptel.org/<sip_number>
娉ㄦ剰錛歝ontext 蹇呴爤鏄?a2billing
// A2Billing Admin UI > Trunk > Create Provider
provider name = VOXALOT_PROVIDER
description = Voxalot Provider
// A2Billing Admin UI > Trunk > Add Trunk
voip-provider = VOXALOT_PROVIDER
label = VOXALOT_TRUNK
add prefix = 絀虹櫧
provider tech = SIP
provider ip = voxalot
status = Active
TIPs:
provider ip 蹇呴爤鑸?FreePBX 鐨?trunk name 鐩稿悓
// A2Billing Admin UI > Ratecard > Create call plan
name = VOXALOT_CALLPLAN
remove inter prefix = YES
TIPs:
remove inter prefix = YES 鑻ユ挜铏熸湁鍖呭惈 00 鎴?011 闁嬮牠鐨勫湅闅涘啝紕鹼紝鍦ㄥ鐢?ratecard 鐨勮鍓囧墠鏈冭鍘婚櫎銆?/p>
// A2Billing Admin UI > Ratecard > Create new ratecard
tariffname = VOXALOT_RATECARD
trunk = VOXALOT_TRUNK
description = through voxalot trunk
// A2Billing Admin UI > Ratecard > Add Rate
ratecard = VOXALOT_RATECARD
dialprefix = 1800
destination = US-Tollfree
buying rate = 1
buyrate min duration = 6
buyrate billing block = 6
selling rate = 1.5
sellrate min duration = 60
sellrate billing block = 60
trunk = VOXALOT_TRUNK
TIPs:
錛?dialprefix 鑻ユ挜铏熻鍓囩鍚堬紝鏈冧互姝よ不鐜囪▓綆?br />錛?destination 鐢ㄤ締鏁樿堪姝よ不鐜囩殑鍗鍩?/p>
//鏂板 rate 寰岃鍐嶅洖鍒?call plan 灝?rate card 鍔犲叆鍒?call plan
A2Billing Admin UI > Ratecard > List Call Plan > Edit: VOXALOT_CALLPLAN
ratecard = 閬告搰 VOXALOT_RATECARD, Add Ratecard
瀹㈡埗鎿嶄綔嫻佺▼錛?br />① 浣跨敤鎵嬫鎴栦竴鑸浕瑭辨鎾ユ墦緋葷當铏熺⒓(Access Number)
② 瑾為煶鎻愮ず錛氳幾鍏ラ浕瑭卞崱铏燂紜錛?/p>
③ 瑾為煶鎻愮ず槨橀錛岃幾鍏ョ洰鐨勫湴闆昏┍铏熺⒓錛?0錛嬪湅紕鹼紜鍗紕鹼紜闆昏┍铏熺⒓錛嬶純錛?/p>
// A2Billing Admin UI > Customers > Create Customers
card number = <闅ㄦ鐢㈢敓>
card alias = <闅ㄦ鐢㈢敓>錛泈eb 鐧誨叆甯寵櫉
webui password = <闅ㄦ鐢㈢敓>錛泈eb 鐧誨叆瀵嗙⒓
balance = 50.0錛涗笉鍙偤闆訛紝涓斿繀闋堜互 USD 璦堢畻
call plan = VOXALOT_CALLPLAN
activated = YES
simultaneous access = INDIVIDUAL ACCESS
card type = PREPAID CARD
country = TAIWAN
sip account = NO
iax account = NO
瀵﹂殯鎿嶄綔錛?/p>
鍥犵偤鏈瘒瀵﹀仛鏄互 iptel 鐨勮櫉紕間綔鐐虹郴緄辮櫉紕鹼紝鎵浠ョ敤鍏朵粬 IPTel 甯寵櫉鎾ュ叆緋葷當铏熺⒓錛岀郴緄辨渻鎻愮ず瑾為煶錛氳珛杓稿叆 card number錛屽皣鍓涘墰鏂板鐨勫崱铏熻幾鍏ワ紝瀹屾垚寰屾寜錛冿紝鑻ユ紕猴紝緋葷當鏈冩彁紺洪欏嶅強鍙敤閫氳┍鏅傞枔錛屼甫鎻愮ず錛氳珛杓稿叆鐩殑鍦伴浕瑭辮櫉紕鹼紝灝囧畬鏁撮浕瑭辮櫉紕?011 + 鍦嬬⒓ + 鍗紕?+ 闆昏┍铏熺⒓ 杓稿叆錛屽畬鎴愬緦鎸夛純銆?/p>
TIPs:
錛?鏂板闆昏┍鍗?Customer)錛屾湁涓浜涗富瑕佺殑璦畾錛屼緥濡?card number, card alias, password錛岄欎簺鏄敱緋葷當闅ㄦ鐢㈢敓錛屼笖娌掓湁浠諱綍瑕忓墖錛宧acker 鐒℃硶浜嬪厛璦堢畻鍑洪欎簺璩囪▕銆?br />錛?闄勫姞鍦?card number 鐨?鍙︿竴緄勪唬铏?alias錛岄欏嬭櫉紕兼垨 email 鍦板潃閮藉彲浠ョ敤渚嗙櫥鍏ョ敤鎴剁殑綞查爜錛屽瘑紕煎氨鏄?webui password銆?
錛?鑻ョ敤鎴舵挜铏熸檪鏈夊姞 00錛岃珛娉ㄦ剰 Call Plan 鐨?REMOVE INTER PREFIX 寤鴻璦偤 YES錛屼互閬垮厤 outbound 璺敱閷銆?/p>
A2Billing 鎻愪緵 DID 鎺ラ鑷崇稉鐢?outbound trunk 鐨勫閮ㄨ櫉紕箋丼IP URI銆?/p>
// A2Billing Admin UI > DID > Add DID Group
name = DID TWN
// A2Billing Admin UI > DID > Add DID
DID = 99474
billing = only dialout rate
DID group = DID TWN
country = TAIWAN
activated = YES
monthly rate = 0
// A2Billing Admin UI > Customers > Create Customers
balance = 50.0
call plan = VOXALOT_CALLPLAN
didgroup = DID TWN
activated = YES
card type = PREPAID CARD
country = TAIWAN
sip account = NO
iax account = NO
璦畾杞夋帴鐨勭洰鐨勮櫉紕鹼紝鍙互閫忛亷 Admin UI 鎴?Customer UI 渚嗕綔
瀹㈡埗鑷璩艱卜 DID 铏熺⒓
// A2Billing Customer UI > DID
select country = TAIWAN
select virtual phone number = 99474
voip call = NO
destination = 8864123456
TIPs:
錛?select country 閫欒!鍏у鏈冭垏 DID 鐨?country 鐩稿悓
錛?鑻ユ矑鏈夊嚭鐝?DID number 鍙伕鎿囷紝璜嬫鏌ユ墍鐧誨叆鐨?customer 甯寵櫉鐨?DIDGROUP 鏄惁姝g⒑
錛?voip call 鑻ユ槸 NO錛岃幾鍏ュ閮ㄧ殑 PSTN/SIP 铏熺⒓錛涜嫢鏄?YES錛岃幾鍏?SIP URI銆?/p>
綆$悊鍝″垎閰?DID 铏熺⒓緄︽寚瀹氱殑瀹㈡埗
// A2Billing Admin UI > INBOUND DID > Destination
destination = 8864123456
customer ID = 閬告搰閬╃暥鐨?customer
DID = 閬告搰閬╃暥鐨?DID
activated = yes
validated = 鐨嗗彲
voip_call = no
TIPs:
錛?voip call 鑻ユ槸 NO錛岃幾鍏ュ閮ㄧ殑 PSTN/SIP 铏熺⒓錛涜嫢鏄?YES錛岃幾鍏?SIP URI銆?/p>
錛?鑻ラ渶 DID 鎺ュ叆鍏ч儴鍒嗘铏熺⒓(涓嶇稉閬?A2B 鐨?trunk)錛屽彲浠ラ欐ǎ璦?br />-- destination = Local/101@from-internal (閬╃敤 FreePBX 鐨勫垎姍?101)
-- destination = SIP/123456 (閬╃敤 A2Billing card number 123456)
-- voip_call = yes* 濡傛灉 destination number 瑕佽蛋 A2B 鐨?trunk錛屼笉綆¤┎ trunk 鏄?SIP 鎴?Zaptel錛寁oip_call 蹇呴爤鏄?no銆?/p>
鐩擱棞鏂囩珷閫g祼錛?/p>
鐢ㄦ埗鎿嶄綔嫻佺▼錛?br />① 鐢ㄦ埗浣跨敤 X-Lite 鎴?ATA 璦倷閫忛亷綞茶礬璦誨唺鐐哄垎姍熴?/p>
② 鐩存帴鎾ョ洰鐨勫湴闆昏┍铏熺⒓錛屼緥濡?886+XXXXXXXX錛?86 鏄湅紕箋?br />閬庣▼涓笉鏈冩湁浠諱綍欏嶅鐨勬彁紺洪煶錛屽氨鍍忎竴鑸殑 SIP 鍒嗘鎿嶄綔鐩稿悓銆?/p>
// A2Billing Admin UI > Customers > Create Customers
card number = <闅ㄦ鐢㈢敓>
card alias = <闅ㄦ鐢㈢敓>錛泈eb 鐧誨叆甯寵櫉
webui password = <闅ㄦ鐢㈢敓>錛泈eb 鐧誨叆瀵嗙⒓
balance = 50.0錛涗笉鍙偤闆訛紝涓斿繀闋堜互 USD 璦堢畻
call plan = VOXALOT_CALLPLAN
activated = YES
simultaneous access = INDIVIDUAL ACCESS
card type = PREPAID CARD
country = TAIWAN
sip account = YES
iax account = YES
TIPs:
錛?閫欒!鑸?鎳夌敤涓)妯″紡璦畾鐩稿悓錛屽彧宸湪 sip/iax account 鐐?YES銆?br />錛?鏂板 customer 寰岋紝瑕?reload Asterisk 寰岋紝SIP 鐢ㄦ埗绔墠鑳借ɑ鍐婁嬌鐢ㄣ?/p>
// 鍙栨秷 "杓稿叆鐩殑鍦拌櫉紕? 鍙婂叾浠栨彁紺洪煶
// A2Billing Admin UI > System Settings > Global List
濡傛灉閫欒!鐨勬墍鏈夐爡鐩矑鏈?GROUP 鐐?agi-conf2 鐨?鍙杽鐢?GROUP 鎼滃皨鍔熻兘)錛岃珛鍏堝墠寰 Add agi-conf > CREATE AGI-CONF2銆?/p>
鍥炲埌 Global List 鎵懼埌 GROUP 鐐?agi-conf2 涓?KEY/VALUE 鎸変互涓嬫墍榪頒慨鏀癸細
use_dnid = yes
閫欏婼IP甯寵櫉闄や簡瑕佹挜澶栭儴鐨勮礬鐢卞錛屽鏋滈倓瑕佹挜鍏ч儴鐨勫叾浠?SIP 鍒嗘铏燂紝闇瑕佺辜綰屼笅闈㈢殑淇敼錛?/p>
sip_iax_friends = yes
sip_iax_pstn_direct_call_prefix = 555
sip_iax_pstn_direct_call = yes
※鏄惁瑕佹彁紺洪欏嶇殑瑾為煶
say_balance_after_auth = no
say_timetocall = no
濡傛灉闆昏┍涓嶉氾紝涓嶈鎻愮ず杓稿叆鐩殑鍦拌櫉紕肩殑瑾為煶
number_try = 1
TIPs:
錛?鍙冩暩瑾槑錛?/p>
- Use DNID : YES 琛ㄧず浣跨敤 DNID錛屼甫涓斾笉鏈冩彁紺?杓稿叆鐩殑鍦伴浕瑭辮櫉紕肩殑瑾為煶
- SIP Call = yes, SIP Call Prefix, Direct Call: 閫欎笁鍊嬪弮鏁告槸鐢ㄤ締浣?SIP 璦誨唺甯寵櫉寰岋紝涔熻兘鎾ュ叾浠栧垎姍熻櫉紕鹼紝鎾ユ硶鐐?555+SIP Extension
- Say Balance After Auth: 瑾嶈瓑寰屾槸鍚︽彁紺洪欏?br />- Say Duration: 鏄惁鎻愮ず鍓╅閫氳┍鏅傞枔- 鍙︿竴紼瘮杓冨揩閫熺殑璦畾鏄細play_audio = no, use_dnid=yes, number_try=1銆?/p>
//鐐烘妯″紡鏂板 dialplan
//綬ㄨ集 /etc/asterisk/extensions_a2billing.conf錛屽湪搴曚笅鍔犲叆錛?/p>
[custom-a2billing-sipclient] exten => _X.,1,Answer exten => _X.,n,Wait(1) exten => _X.,n,deadAGI(a2billing.php|2) exten => _X.,n,Hangup
// 鍦?A2Billing 濂楃敤鏂板鐨?dialplan
// A2Billing Admin UI > Customer > VoIP Settings
鎵懼埌 SIP 鍒嗘闋呯洰錛屾寜綬ㄨ集
Context = custom-a2billing-sipclient
// 鏈寰岋紝鍩瘋鎸囦護濂楃敤鎵鏈夌殑淇敼
# asterisk -rx "reload"
TIPs:
鐢辨柤鐗堟湰 1.7.x 鐨?bug 闂滀總錛屽湪 UI 鍋氬畬鎿嶄綔寰岋紝涓︿笉鏈冨悓姝ヤ慨鏀?asterisk 鐨勮ō瀹氭獢錛屾墍浠ヨ珛渚濈収鏂瑰紡浣滄墜鍕曚慨鏀癸細
綬ㄨ集 /etc/asterisk/additional_a2billing_sip.conf 錛屼慨鏀?context 鐨勫収瀹廣?br />瑕侀伩鍏嶆瘡嬈¢兘瑕佷綔鎵嬪嫊淇敼錛屽彲浠ュ弮鑰?F.A.Q 鐨勬柟娉曘?br />
鐢ㄩ旓細FreePBX 鐨勫垎姍熺敤鎴訛紝鍦?Outbound Calling 鏅傚彲浠ラ忛亷 A2Billing 渚嗚▓璨伙紝浣嗗叾浠栧師鏈塒BX鐨勫姛鑳介兘涓嶆渻鏈夊獎闊褲?/p>
// 綬ㄨ集 /etc/asterisk/extensions_custom.conf
[macro-dialout-trunk-predial-hook] exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2) exten => s,2,MacroExit [custom-freepbx-a2billing] exten => _X.,1,DeadAGI(a2billing.php,${OUT_${DIAL_TRUNK}:8}) exten => _X.,n,Hangup()
// FreePBX UI > Trunks > Add Custom Trunk
Custom Dial String = A2B/2
Tips:
2 浠h〃鏄?agi-conf 2
// FreePBX UI > Outbound Routes
鑷璦畾闇瑕佺殑鍙冩暩錛屼甫灝庡悜鍓涘墰鐨?Trunk銆?/p>
// FreePBX UI > Extensions
鍦ㄩ渶瑕佽▓璨葷殑鍒嗘璦畾瑁★紝鍙冩暩 accountcode 濉叆 A2Billing 鐨?Card Number銆?/p>
Tips:
鍒嗘鍦ㄥ鎾ョ殑璺敱瑕忓墖錛岄櫎浜?outbound route 澶栵紝閭勮鑰冩叜 A2Billing 鐨勶紝涔熷氨鏄?RATES 鐨勭浉闂滆ō瀹氥?/p>
寤朵幾闁辮畝
鐢ㄩ旓細璦畾闆昏┍鍗℃檪闄や簡浣跨敤杓稿叆鍗¤櫉鐨勮獚璀夋柟寮忎互澶栵紝閭勮兘浠ヤ締闆昏櫉紕?Caller ID) 杈ㄨ瓨渚嗚獚璀夈?/p>
// 鍟熺敤鏂瑰紡
A2Billing Admin UI > Syetem Settings >
浠?agi-conf 鐨勬柟寮忎締璦紝鍙互寰堝鏄撳暉鐢?闂滈枆閫欏姛鑳斤紝闇瑕佺敤鍒扮殑鍙冩暩(Key)濡備笅錛?/p>
// 鏂板 Caller ID
A2Billing Admin UI > Customers > Caller-ID
CallerID = <鐢ㄦ埗鐨勪締闆昏櫉紕?gt;
Activated = yes
ID Card = <閬告搰鍗¤櫉>
Ans: A2Billing UI > Customers > Add::Search > Search Customers
璦畾鎼滃皨姊濅歡 > 鎸?Search > 鍐嶆寜鏃侀倞鐨?Delete All
娉ㄦ剰錛氶欏嬫柟娉曠劇娉曞皣 VoIP Setting 涓浣靛埅闄ゃ?/p>
Ans: 鐩墠娌掓湁鍚堥仼鐨勪綔娉曘?/p>
Ans: 瑕佹敼鍏╁嬪湴鏂癸紝淇敼 base_currency 鐨勫弮鏁稿強鏇存柊 currency list銆?/p>
Ans: 灝囧壇妾斿悕 csv 鏀規垚 txt銆?/p>
鐗堟湰 | 鍟忛鎻忚堪 |
1.7.0/1 | 淇敼 VoIP Settings 鐨?鍏у錛屼笉鏈冨悓姝ユ洿鏂?Asterisk 璦畾 |
Ans:閫欐槸鍥犵偤 A2Billing 闋愯ō鏄暉鍕曚簡 Realtime Asterisk 妯″紡(Asterisk 浠ヨ硣鏂欏韓鍨嬪紡鍎插瓨璦畾)錛岃嫢鍙槸妾㈡煡 *.conf 渚嗗垽鏂?Asterisk 鏄惁鏇存柊鏄笉婧栫⒑鐨勶紝鐒惰岄?bug 鍗婚犳垚 A2Billing 鐒℃硶浠?relatime 妯″紡鏇存柊 Asterisk銆傛毇鏅傜殑瑙f焙鏂規硶鏄嬌 A2Billing 闂滈枆 realtime asterisk 妯″紡錛屾仮寰╂垚 *.conf 鏂瑰紡渚嗘洿鏂?asterisk錛屾椹熷涓嬶細
A2Billing UI > System Settings > Global List use_realtime = no (闋愯ō鐐?yes) Notes: 鐣墮棞闁変簡 Realtime 寰岋紝鐖懼緦鑻ユ湁鏂板/綬ㄨ集 VoIP Settings 鏅傦紝鍦?CONFIRM DATA 涔嬪緦錛岄渶瑕佸湪浣滀互涓嬫椹熷畬鎴?Asterisk 鐨勬洿鏂幫細
| |
1.7.0 | 鏂板 CUSTOMER 鏅傦紝鑻?balance 嬈勪綅綞寔闋愯ō鐨?0錛屼粛鍙互瀛樻獢 |
Ans: 閫欓爡涓嶇⒑瀹氭槸鍚︾偤 bug錛屼絾鍦?1.3.x 絀╁畾鐗堬紝瀛樻獢鍓嶇郴緄辨渻妾㈡煡 balance 涓嶅彲鐐?0銆? | |
1.7.0 | 鑻ュ緩绔嬮浕瑭卞崱鏄湁 SIP 璦誨唺甯寵櫉鐨勶紝鍒櫎閫欏嬮浕瑭卞崱寰岋紝SIP 緄傜浠嶅彲浠ヨɑ鍐婏紝浣嗗凡鐒℃硶姝e父鎾ュ嚭銆?/td> |
1.7.0 | 鍦?Customer UI 鐨?DID 鍔熻兘錛屾搷浣?Release DID錛屾寜涓?Release 寰岋紝闆栫劧 DID 鏈?release錛屼絾鐣潰鏈冩垚絀虹櫧闋併?/td> |
1.7.0 | 鍦?Customer UI 鐨?DID 鍔熻兘錛屽緸闋呯洰鍒楄〃涓埅闄?destination number 鏅傦紝鎵鏈夋瑒浣嶇殑鍊兼渻鍑虹従絀虹櫧錛屽啀鎸変笅 Delete 寰岋紝闆栫劧璩囨枡浠嶆渻鍒櫎錛屼絾闇瑕佸啀鍋氫竴嬈?Release DID銆?/td> |
make
make install
鍦?pro鏂囦歡涓姞涓?QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
5.5.4 鍏變韓(shared)搴拰闈滄厠(static)搴殑娣峰悎閫f帴
榛樿獚鎯呮硜涓嬶紝鍋囧鍏變韓搴彲鐢紝閫f帴鍣ㄦ渻浣跨敤鍏變韓搴備絾鏄?Bdynamic鍜?br />-Bstatic鎻愪緵浜嗗緢濂芥帶鍒跺韓鐨勬柟娉曘傚畠鍊戝彲浠ユ焙瀹氱敤鍏變韓搴倓鏄敤闈滄厠搴?br />鍌?Bdynamic鍜?Bstatic閬擱爡緄﹂f帴鍣紝濡備笅鎿嶄綔錛?br /># gcc -o main main.o -Wl,-Bstatic -lfoo -Wl,-Bdynamic -lbar
Bdynamic 寰岄潰鐨勫韓閮戒嬌鐢ㄥ叡浜増鏈?br />鐩村埌閬囧埌Bstatic
Bstatic 寰岄潰鐨勫韓閮戒嬌鐢ㄩ潨鎱嬬増鏈?br />鐩村埌閬囧埌Bdynamic
http://www.lslnet.com/linux/f/docs1/i44/big5307264.htm
鍚敤RTTI
CONFIG += rtti
[mysqld_multi]
mysqld=/usr/bin/mysqld_safe
mysqladmin=/usr/bin/mysqladmin
log=/var/log/mysqld_multi.log
user = multi_admin
password = multipass
[mysqld1]
datadir=/var/lib/mysql_new
socket=/var/lib/mysql_new/mysql.sock
port=4000
pid-file=/var/lib/mysql_new/mysql.pid
user=mysql
澶氬疄渚嬪惎鍔?span lang="EN-US">
Sometimes, when debugging an issue, it's useful to see and log extra information and at
other times, you want logging to be minimal. Asterisk provides a number of ways of
logging information, to files or to a syslog server. The file /etc/asterisk/logger.conf
contains the configuration elements for logging. Asterisk has different types of message
that can be logged these are:
Verbose |
General 'chatter' about what is happening on the system. Verbosity levels greater than 3 display dialplan commands as they are executed. This generates lots of log information |
Debug |
Debug messages, normally only used by programmers to extract extended information |
Notice |
Non urgent alert messages |
Warning |
Warning alert messages, something happened that might be bad. Some tell you how bad the warning is |
Error |
Error messages, something bad happened – These should be rare. |
In logger.conf you will see the [logfiles] section, this is where you define the filename
and content of log files. Take a look at this example entry
|
[logfiles] debug => debug |
This tells Asterisk to log debug messages (the right side of the =>) to a file called debug
(the left side of the =>) located in /var/log/asterisk/. This directory can be changed in
/etc/asterisk/asterisk.conf by modifying the line astlogdir => /var/log/asterisk to point
to the desired directory. You can log multiple information types to the same file or you
can spread the information over a number of files. For example
|
[logfiles] debug => debug messages=>warning, error |
Will log debug messages to a file called debug, and will also log warning and error
messages to a file called messages. There is a special “file” called console which when
used will cause the message types specified to be logged to the Asterisk console, for
example:
|
[logfiles] console => debug, warning, error, notice, verbose |
Would log everything to the console (not to any files). The above is not recommended
since the amount of information that would be generated could be far to much to be of
any real use. If you change logger.conf you need to perform a reload or do a logger
rotate (see next section). You can also log messages to a syslog sever (remote logging
server), useful if you have either a lot of machines or want centralized logging. To do
this use the file syslog, with the suffix you will use in /etc/syslog.conf for example, in
logger.conf
|
[logfiles] syslog.local0 => debug, warning, error, notice, verbose |
And /etc/syslog.conf
|
local0.* |
This would send the Asterisk logging information to the syslog server at 192.168.1.22.
Setting up a syslog server is beyond the scope of this document and is left as an exercise
for the reader.
Rotate logs
It is advisable to rotate your logs frequently, depending on the amount of logging you
have turned on and the about of data that is actually logged. Files larger than 2Gb can
cause some nasty effects resulting in Asterisk crashes. You can rotate logs by using the
command
|
logger rotate |
|
This will rename the old log and start a new one. It will also reload logger.conf and
adopt any changes you have made to it.
You can change the verbosity (how much information we get) of the output on processes attached to the Asterisk console by setting the level of verbosity. To do this we use the set verbose command, for example:
|
set verbose 999 |
|
Sets the verbosity level to 999, Asterisk will tell you that the level of verbosity changed
|
asterisk*CLI> set verbose 999 Verbosity is at least 999 asterisk*CLI> |
You should see every message when it is set to this level, whereas setting it to 1 will
show very little information.
|
|
Setting the verbosity level changes the level on every attached process (connected via asterisk -r) not just the one you issue the command from. |
sip.conf is not difficult to understand, however there is a fundamental problem with SIP making it awkward to use. The problem is not so much with SIP itself, it's more to do with how we protect our networks. We all know that there are some nasty little people out there who are quite happy to steal your resources, make free calls using someone else's money etc. As a consequence of this we tend to put a firewall between them and us. This is where the problems start for SIP. In a network environment that requires no firewall, for example and Internal network, there will be no issues, but in a more complex network, perhaps using NAT (Network address translation) there are all sorts of hurdles to overcome.
You have a number of choices,