锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久这里只有精品,97精品伊人久久大香线蕉app,久久综合久久久http://m.shnenglu.com/byc/category/17750.html瀛︿範(fàn)璧勬枡璁板綍zh-cnWed, 17 Apr 2013 03:50:47 GMTWed, 17 Apr 2013 03:50:47 GMT60freepbc 鍛煎嚭絳夊緟鏃墮棿淇敼http://m.shnenglu.com/byc/archive/2013/04/17/199505.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Wed, 17 Apr 2013 03:17:00 GMThttp://m.shnenglu.com/byc/archive/2013/04/17/199505.htmlhttp://m.shnenglu.com/byc/comments/199505.htmlhttp://m.shnenglu.com/byc/archive/2013/04/17/199505.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/199505.htmlhttp://m.shnenglu.com/byc/services/trackbacks/199505.html鏌ユ壘 macro-dialout-trunk
鐒跺悗
 $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 鏀規(guī)垚浣犺嚜宸辮緗殑鏃墮棿

]]>
proxmox ve 2.2 elastix2.3妯℃澘鍒朵綔http://m.shnenglu.com/byc/archive/2012/11/06/194720.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Tue, 06 Nov 2012 08:59:00 GMThttp://m.shnenglu.com/byc/archive/2012/11/06/194720.htmlhttp://m.shnenglu.com/byc/comments/194720.htmlhttp://m.shnenglu.com/byc/archive/2012/11/06/194720.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/194720.htmlhttp://m.shnenglu.com/byc/services/trackbacks/194720.htmlssh 鍒?proxmox ve

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

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/*

 tar --numeric-owner -czvf /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz -X /tmp/exclude /

  1. where <ARCH> represents the system architecture (i386 or
  2. x86_64) and <DISTRO> represents the distribution (default, minimal, etc.).

scp /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz root@ip:/var/lib/vz/template/iso

鍥炲埌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

cd dev
/sbin/MAKEDEV ttyp ptyp
cd ../

mknod dev/null c 1 3

mknod -m 644 dev/random c 1 8

mknod dev/urandom c 1 9
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

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
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 ./






 



]]>
杞?a2billinghttp://m.shnenglu.com/byc/archive/2012/10/11/193154.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Thu, 11 Oct 2012 02:56:00 GMThttp://m.shnenglu.com/byc/archive/2012/10/11/193154.htmlhttp://m.shnenglu.com/byc/comments/193154.htmlhttp://m.shnenglu.com/byc/archive/2012/10/11/193154.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/193154.htmlhttp://m.shnenglu.com/byc/services/trackbacks/193154.htmlhttp://www.osslab.com.tw/VoIP/IP_PBX/%e8%bb%9f%e9%ab%94%e5%bc%8f_IP_PBX/Asterisk/Addons/A2Billing_%e5%ae%89%e8%a3%9d%e7%af%87

A2Billing 綆$悊綃?

    鍓嶈█

    A2Billing 鏄洰鍓嶇ぞ緹ら枊鐧兼渶鐔遍杸鐨勮▓璨葷郴緄卞浠訛紝鍥犵偤鏄枊鏀懼師濮嬬⒓鎺堟瑠鎵浠ュ彲浠ュ悎娉曞厤璨諱嬌鐢ㄣ?/p>

    鏈瘒涓昏鍦ㄦ槸鏁欏皫濡備綍浣跨敤閫欏浠訛紝鑻ラ倓娌掑畬鎴愬畨瑁濈殑鏈嬪弸錛岃珛鍏堝墠寰闁辮畝 A2Billing 瀹夎綃?/a>銆?/p>

    鍒濆鍖栬ō瀹?/h4>

    緋葷當(dāng)鍦ㄥ畬鎴愬畨瑁濆緦錛岀涓鍊嬫墍瑕佸仛鐨勮ō瀹氭湁錛?/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錛岄欏嬩富瑕佸湪灞曠ず鍦嬮殯闆昏┍鍗″強(qiáng) 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 />① 浣跨敤鎵嬫鎴栦竴鑸浕瑭辨鎾ユ墦緋葷當(dāng)铏熺⒓(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 甯寵櫉鎾ュ叆緋葷當(dāng)铏熺⒓錛岀郴緄辨渻鎻愮ず瑾為煶錛氳珛杓稿叆 card number錛屽皣鍓涘墰鏂板鐨勫崱铏熻幾鍏ワ紝瀹屾垚寰屾寜錛冿紝鑻ユ紕猴紝緋葷當(dāng)鏈冩彁紺洪欏嶅強(qiáng)鍙敤閫氳┍鏅傞枔錛屼甫鎻愮ず錛氳珛杓稿叆鐩殑鍦伴浕瑭辮櫉紕鹼紝灝囧畬鏁撮浕瑭辮櫉紕?011 + 鍦嬬⒓ + 鍗紕?+ 闆昏┍铏熺⒓ 杓稿叆錛屽畬鎴愬緦鎸夛純銆?/p>

    TIPs:

    錛?鏂板闆昏┍鍗?Customer)錛屾湁涓浜涗富瑕佺殑璦畾錛屼緥濡?card number, card alias, password錛岄欎簺鏄敱緋葷當(dāng)闅ㄦ鐢㈢敓錛屼笖娌掓湁浠諱綍瑕忓墖錛宧acker 鐒℃硶浜嬪厛璦堢畻鍑洪欎簺璩囪▕銆?br />錛?闄勫姞鍦?card number 鐨?鍙︿竴緄勪唬铏?alias錛岄欏嬭櫉紕兼垨 email 鍦板潃閮藉彲浠ョ敤渚嗙櫥鍏ョ敤鎴剁殑綞查爜錛屽瘑紕煎氨鏄?webui password銆?
    錛?鑻ョ敤鎴舵挜铏熸檪鏈夊姞 00錛岃珛娉ㄦ剰 Call Plan 鐨?REMOVE INTER PREFIX 寤鴻璦偤 YES錛屼互閬垮厤 outbound 璺敱閷銆?/p>

    鎳夌敤浜岋細(xì)DID 杞夋帴妤嫏

    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>

    鎳夌敤涓夛細(xì)闋愪粯鍒躲佹湀浠樺埗鏈冨摗妯″紡

    鐢ㄦ埗鎿嶄綔嫻佺▼錛?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>

    // 鍙栨秷 "杓稿叆鐩殑鍦拌櫉紕? 鍙?qiáng)鍏朵粬鎻惤C洪煶
    // 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 鎸変互涓嬫墍榪頒慨鏀癸細(xì)

    use_dnid = yes

    閫欏婼IP甯寵櫉闄や簡(jiǎn)瑕佹挜澶栭儴鐨勮礬鐢卞錛屽鏋滈倓瑕佹挜鍏ч儴鐨勫叾浠?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: 鏄惁鎻愮ず鍓╅閫氳┍鏅傞枔

    - 鍙︿竴紼瘮杓冨揩閫熺殑璦畾鏄細(xì)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

    // 鏈寰岋紝鍩瘋鎸囦護(hù)濂楃敤鎵鏈夌殑淇敼

    # asterisk -rx "reload"

    TIPs:

    鐢辨柤鐗堟湰 1.7.x 鐨?bug 闂滀總錛屽湪 UI 鍋氬畬鎿嶄綔寰岋紝涓︿笉鏈冨悓姝ヤ慨鏀?asterisk 鐨勮ō瀹氭獢錛屾墍浠ヨ珛渚濈収鏂瑰紡浣滄墜鍕曚慨鏀癸細(xì)
    綬ㄨ集 /etc/asterisk/additional_a2billing_sip.conf 錛屼慨鏀?context 鐨勫収瀹廣?br />瑕侀伩鍏嶆瘡嬈¢兘瑕佷綔鎵嬪嫊淇敼錛屽彲浠ュ弮鑰?F.A.Q 鐨勬柟娉曘?br />

    鎳夌敤鍥涳細(xì)鏁村悎 FreePBX 鐨勬噳鐢?/h4>

    鐢ㄩ旓細(xì)FreePBX 鐨勫垎姍熺敤鎴訛紝鍦?Outbound Calling 鏅傚彲浠ラ忛亷 A2Billing 渚嗚▓璨伙紝浣嗗叾浠栧師鏈塒BX鐨勫姛鑳介兘涓嶆渻鏈夊獎(jiǎng)闊褲?/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>

    寤朵幾闁辮畝

    鎳夌敤浜旓細(xì)Caller ID 瑾嶈瓑妯″紡

    鐢ㄩ旓細(xì)璦畾闆昏┍鍗℃檪闄や簡(jiǎn)浣跨敤杓稿叆鍗¤櫉鐨勮獚璀夋柟寮忎互澶栵紝閭勮兘浠ヤ締闆昏櫉紕?Caller ID) 杈ㄨ瓨?shù)締瑾嶈瓑銆?/p>

    • 鍟熺敤 Caller ID 寰岋紝鐢ㄦ埗涓嶉渶瑕佸厛杓稿叆鍗¤櫉錛屽氨鍙互鐩存帴鎾ョ洰鐨勫湴铏熺⒓銆?/li>
    • 涓鍊嬪崱铏熷彲浠ヨō瀹氫竴緄勬垨澶氱祫鐨勪締闆昏櫉紕箋?/li>
    • 浣跨敤 Admin UI 渚嗙鐞嗕締闆昏櫉紕箋?/li>
    • 涓鏃﹀暉鐢ㄥ緦錛岀暥鐢ㄦ埗鐨勪締闆昏櫉紕間甫闈炵郴緄辨墍鍏佽ū鏅傦紝緋葷當(dāng)鏈冩彁紺哄崱铏熺殑瑾嶈瓑鐨勬柟寮忋?/li>

     

    // 鍟熺敤鏂瑰紡
    A2Billing Admin UI > Syetem Settings >

    浠?agi-conf 鐨勬柟寮忎締璦紝鍙互寰堝鏄撳暉鐢?闂滈枆閫欏姛鑳斤紝闇瑕佺敤鍒扮殑鍙冩暩(Key)濡備笅錛?/p>

    • cid_enable = yes 錛泍es 鍟熺敤錛宯o 闂滈枆錛岄爯璦槸闂滈枆鐨?/li>
    • cid_askpincode_ifnot_callerid = yes ; 闋愯ō yes錛岃嫢 CID 瑾嶈瓑澶辨晽錛岀郴緄辨渻鎻愮ず杓稿叆 Card Number銆?/li>
    • cid_auto_assign_card_to_cid = yes ; 闋愯ō yes錛岀敤鎴舵挜鍏ョ郴緄卞緦錛屽鏋?CID 瑾嶈瓑澶辨晽錛岀郴緄辨渻鎻愮ず杓稿叆 Card Number錛屼竴鏃︾敤鎴惰幾鍏ヨ硣璦婃紕猴紝緋葷當(dāng)鏈冭嚜鍕曟柊澧?CID錛屼互鑷存柤瑭茬敤鎴朵笅嬈″啀鎾ュ叆鏅傦紝灝卞彲浠ラ氶亷 CID 瑾嶈瓑錛屼笖涓嶆渻鍐嶆彁紺鴻幾鍏?Card Number銆?/li>
    • cid_auto_create_card = no

    // 鏂板 Caller ID

    A2Billing Admin UI > Customers > Caller-ID

    CallerID = <鐢ㄦ埗鐨勪締闆昏櫉紕?gt;
    Activated = yes
    ID Card = <閬告搰鍗¤櫉>

    F.A.Q

    Q:濡備綍澶ч噺鍒櫎 Customers?

    Ans: A2Billing UI > Customers > Add::Search > Search Customers

    璦畾鎼滃皨姊濅歡 > 鎸?Search > 鍐嶆寜鏃侀倞鐨?Delete All

    娉ㄦ剰錛氶欏嬫柟娉曠劇娉曞皣 VoIP Setting 涓浣靛埅闄ゃ?/p>

    Q:濡備綍澶ч噺鍒櫎 VoIP Settings?

    Ans: 鐩墠娌掓湁鍚堥仼鐨勪綔娉曘?/p>

    Q:濡備綍璁婃洿緋葷當(dāng)闋愯ō騫e垾 USD

    Ans: 瑕佹敼鍏╁嬪湴鏂癸紝淇敼 base_currency 鐨勫弮鏁稿強(qiáng)鏇存柊 currency list銆?/p>

    1. A2Billing UI > System Settings > Global List
      鎼滃皨 GROUP = global, Key = base_currency
      base_curreny = twd
    2. 鍗充嬌淇敼浜?jiǎn)骞e垾锛尵p葷當(dāng)闋愯ō鐨?currency list 浠嶆槸浠ョ編閲?1:1 璦堢畻錛屾墍浠ュ繀闋堜慨鏀歸欏嬪尟鐜囧皪鐓ц〃鐐?TWD 1:1銆?br />A2Billing UI > BILLING > Currency List > CLICK HERE TO UPDATE NOW
    Q:鍖叆 ratecard 鏅傜附鏄嚭鐝鵑尟瑾?ERROR: file type is not allowed: application/force-download

    Ans: 灝囧壇妾斿悕 csv 鏀規(guī)垚 txt銆?/p>

    鐧肩従 Bug

     

    鐗堟湰 鍟忛鎻忚堪
    1.7.0/1 淇敼 VoIP Settings 鐨?鍏у錛屼笉鏈冨悓姝ユ洿鏂?Asterisk 璦畾
    Ans:閫欐槸鍥犵偤 A2Billing 闋愯ō鏄暉鍕曚簡(jiǎn) Realtime Asterisk 妯″紡(Asterisk 浠ヨ硣鏂欏韓鍨嬪紡鍎插瓨璦畾)錛岃嫢鍙槸妾㈡煡 *.conf 渚嗗垽鏂?Asterisk 鏄惁鏇存柊鏄笉婧栫⒑鐨勶紝鐒惰岄?bug 鍗婚犳垚 A2Billing 鐒℃硶浠?relatime 妯″紡鏇存柊 Asterisk銆傛毇鏅傜殑瑙f焙鏂規(guī)硶鏄嬌 A2Billing 闂滈枆 realtime asterisk 妯″紡錛屾仮寰╂垚 *.conf 鏂瑰紡渚嗘洿鏂?asterisk錛屾椹熷涓嬶細(xì)

    A2Billing UI > System Settings > Global List
    鎼滃皨 GROUP = global

    use_realtime = no (闋愯ō鐐?yes)

    Notes: 鐣墮棞闁変簡(jiǎn) Realtime 寰岋紝鐖懼緦鑻ユ湁鏂板/綬ㄨ集 VoIP Settings 鏅傦紝鍦?CONFIRM DATA 涔嬪緦錛岄渶瑕佸湪浣滀互涓嬫椹熷畬鎴?Asterisk 鐨勬洿鏂幫細(xì)

    1. 榛為伕 GENERATE ADDITIONAL_A2BILLING_SIP.CONF
    2. click here to reload your asterisk server
    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>


    ]]>
    asterisk 璋冭瘯 璁劇疆http://m.shnenglu.com/byc/archive/2012/07/14/183302.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 13 Jul 2012 23:39:00 GMThttp://m.shnenglu.com/byc/archive/2012/07/14/183302.htmlhttp://m.shnenglu.com/byc/comments/183302.htmlhttp://m.shnenglu.com/byc/archive/2012/07/14/183302.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/183302.htmlhttp://m.shnenglu.com/byc/services/trackbacks/183302.htmlLogging

    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.* @192.168.1.22

    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.

    Verbosity

    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.

    Getting to Grips with sip.conf

    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,






    sip set debug on 璁劇疆鏄劇ず鏇村鐨剆ip淇℃伅
    sip set debug off鍏抽棴鏄劇ず鏇村鐨剆ip淇℃伅
    SIP Channels are only shown if registered
    SIP SHOW INUSE will list all SIP extensions defined in SIP.CONF
    SIP SHOW CHANNELS will list all SIP extensions registered at that time
    sip set debug - Enable SIP debugging
    sip set debug ip - Enable SIP debugging on IP
    sip set debug off - Disable SIP debugging
    sip set debug peer - Enable SIP debugging on Peername



    stop gracefully 浼橀泤鍦板仠姝sterisk
    stop now 绔嬪嵆鍋滄榪愯asterisk
    core show codecs 鏄劇ず鎵鏈夋敮鎸佺殑緙栬В鐮佸櫒

    set verbose 10
    set debug 10


    core set debug channel - Enable/disable debugging on a channel
    core set debug - Set level of debug chattiness
    core set debug off - Turns off debug chattiness
    core set verbose - Set level of verboseness

    core show calls {uptime}: Display information on calls


    logger set level {DEBUG|NOTICE}: Enables/Disables a specific logging level for this console
    logger set level debug off


    ]]>
    elastix 220 鑷姩鎶ュ伐鍙?/title><link>http://m.shnenglu.com/byc/archive/2012/06/27/180485.html</link><dc:creator>鍏彾鑽?/dc:creator><author>鍏彾鑽?/author><pubDate>Wed, 27 Jun 2012 07:46:00 GMT</pubDate><guid>http://m.shnenglu.com/byc/archive/2012/06/27/180485.html</guid><wfw:comment>http://m.shnenglu.com/byc/comments/180485.html</wfw:comment><comments>http://m.shnenglu.com/byc/archive/2012/06/27/180485.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.shnenglu.com/byc/comments/commentRss/180485.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/byc/services/trackbacks/180485.html</trackback:ping><description><![CDATA[<div>鍙傝?br /><a >http://brunoplum.iteye.com/blog/593263</a><br /><br />yum install libxml2-devel<br />yum install ncurses-devel<br />yum install openssl-devel<br />yum install zlib-devel<br />yum install mysql-devel<br /><br /><br /><br />wget <a >http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/certified-asterisk-1.8.11-cert2.tar.gz</a><br />tar zxvf certified-asterisk-1.8.11-cert2.tar.gz<br />cd certified-asterisk-1.8.11-cert2<br />./configure<br />make menuselect (紿楀彛澶皬鍙兘寮逛笉鍑洪夋嫨鐣岄潰  浠庢柊閫夋嫨 make distclean  ./configure) <br />add-ons 閫夋嫨 res_config_mysql app_mysql cdr_mysql<br />applications 澧炲姞閫夋嫨 app_voicemail<br />channel drivers 澧炲姞閫夋嫨 chan-dahdi<br /><br /><br />vi apps/app_queue.c<br /><br /><br /><br />try_calling((struct queue_ent *qe, 涓嬮潰<br />char k_exten[15] = "";;  <br />int k9i = 0;  <br />int k9j = 0;  <br />int k9_flag = 0;   <br /><br /><br /><br /> <p>bridge = ast_bridge_call(qe-&gt;chan,peer, &amp;bridge_config); 鍓嶉潰<br />for(;k9i < 15;k9i++){  <br />    if(member->interface[k9i]=='/'){  <br />        k9_flag=1;   <br />        continue;  <br />    }  <br />    if(member->interface[k9i]=='@'){  <br />        k9_flag=0;  <br />        break;  <br />    }  <br />    if(k9_flag){  <br />        k_exten[k9j++]=member->interface[k9i];  <br />    }  <br />}                  <br />play_file(qe->chan, "number-report-begin"); <br />ast_say_digit_str(qe->chan, k_exten, AST_DIGIT_ANY, qe->chan->language);  <br />play_file(qe->chan, "number-report-end");  <br />play_file(peer, "beep");  </p> <p> <br />make<br />make install</p>vi /etc/asterisk/queues.conf<br />[general] 涓嬮潰鍔犲叆<br />setinterfacevar=yes<br /><br /><a href="/Files/byc/wav.zip">/Files/byc/wav.zip</a><br /></div><img src ="http://m.shnenglu.com/byc/aggbug/180485.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/byc/" target="_blank">鍏彾鑽?/a> 2012-06-27 15:46 <a href="http://m.shnenglu.com/byc/archive/2012/06/27/180485.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏄熺綉閿愭嵎 IDA 璁懼 鏌ョ湅IP http://m.shnenglu.com/byc/archive/2012/05/23/175909.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Wed, 23 May 2012 08:43:00 GMThttp://m.shnenglu.com/byc/archive/2012/05/23/175909.htmlhttp://m.shnenglu.com/byc/comments/175909.htmlhttp://m.shnenglu.com/byc/archive/2012/05/23/175909.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/175909.htmlhttp://m.shnenglu.com/byc/services/trackbacks/175909.html鎷ㄦ墦 #190# 鍚埌鐗規(guī)畩鎻愮ず闊蟲(chóng)寕鏈?br />鍐嶆嫧鎵?#120# 灝卞彲浠ュ惉鍒拌闊蟲(chóng)挱鎶P 銆?br />榛樿IP 192.168.88.16

    ]]>
    elastix2.3 dashboard 鏃犱氦鎹㈢┖闂存椂 涓嶆樉紺?bug 琛ヤ竵http://m.shnenglu.com/byc/archive/2012/05/22/175809.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Tue, 22 May 2012 14:06:00 GMThttp://m.shnenglu.com/byc/archive/2012/05/22/175809.htmlhttp://m.shnenglu.com/byc/comments/175809.htmlhttp://m.shnenglu.com/byc/archive/2012/05/22/175809.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/175809.htmlhttp://m.shnenglu.com/byc/services/trackbacks/175809.html//SWAP USAGE
     if($arrSysInfo['SwapTotal']==0){
      $swap_usage_val = number_format(0.0,1);
     }
     else{
      $swap_usage_val = number_format(100.0 * ($arrSysInfo['SwapTotal'] - $arrSysInfo['SwapFree'])/$arrSysInfo['SwapTotal'], 1);
    }
    paloSantoSysInfo.class.php 157琛?br />        if($this->arrSysInfo['SwapTotal']==0)
            {
                    $value = 0;
            }
            else
            {
                    $value = ($this->arrSysInfo['SwapTotal'] - $this->arrSysInfo['SwapFree'])/$this->arrSysInfo['SwapTotal'];
            }

    ]]>
    elastix2.3 涓枃璇█鍖?voip88鍙戝竷鐨別lastix2.3涓枃鐗堜腑鎶藉彇鍑烘潵鐨?http://m.shnenglu.com/byc/archive/2012/05/22/175802.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Tue, 22 May 2012 12:36:00 GMThttp://m.shnenglu.com/byc/archive/2012/05/22/175802.htmlhttp://m.shnenglu.com/byc/comments/175802.htmlhttp://m.shnenglu.com/byc/archive/2012/05/22/175802.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/175802.htmlhttp://m.shnenglu.com/byc/services/trackbacks/175802.html涓嬭澆閾炬帴錛?a href="/Files/byc/cn_elastix.2.3.zip">cn_elastix.2.3.zip
    鍘熷鐗堟湰錛?a >http://bbs.voip88.com/thread-27724-1-1.html


    ]]>
    elastix 2.3 鍗囩駭鍒皃hp5.2 CDR Report 鍑洪敊 patchhttp://m.shnenglu.com/byc/archive/2012/05/15/175008.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Tue, 15 May 2012 12:44:00 GMThttp://m.shnenglu.com/byc/archive/2012/05/15/175008.htmlhttp://m.shnenglu.com/byc/comments/175008.htmlhttp://m.shnenglu.com/byc/archive/2012/05/15/175008.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/175008.htmlhttp://m.shnenglu.com/byc/services/trackbacks/175008.htmlhtml/libs/paloSantoDB.class.php

    163 琛?錛堝嚱鏁?fetchTable 鍐咃級(jí)
    $r = $result->execute($param);
    鏀逛負(fù)
    if(isset($param))
    {
            foreach($param as $key => $value)
             {

                 if(is_int($value))
                         $paramtype = PDO::PARAM_INT;
                     elseif(is_bool($value))
                         $paramtype = PDO::PARAM_BOOL;
                     elseif(is_null($value))
                         $param = PDO::PARAM_NULL;
                     elseif(is_string($value))
                         $paramtype = PDO::PARAM_STR;
                     else
                         $paramtype = FALSE;
                        
                    if($paramtype )
                         $result->bindValue($key+1,$value,$paramtype);
             }
    }
    $r = $result->execute();



    ]]>
    elastix (Monitoring -> listen )ie 鍚綍闊?琛ヤ竵http://m.shnenglu.com/byc/archive/2012/04/25/172745.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Wed, 25 Apr 2012 09:18:00 GMThttp://m.shnenglu.com/byc/archive/2012/04/25/172745.htmlhttp://m.shnenglu.com/byc/comments/172745.htmlhttp://m.shnenglu.com/byc/archive/2012/04/25/172745.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/172745.htmlhttp://m.shnenglu.com/byc/services/trackbacks/172745.html/var/www/html/modules/monitoring/index.php 423琛?br />
    <!--                    <embed src='index.php?menu=$module_name&action=download&id=$file&rawmode=yes' width=300, height=20 autoplay=true loop=false></embed>
    -->

    <OBJECT ID="MediaPlayer" WIDTH=300 HEIGHT=100
      CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
       TYPE="application/x-oleobject"
    CODEBASE="  <PARAM name="autoStart" value="true">
      <PARAM name="filename" value="index.php?menu=$module_name&action=download&id=$file&rawmode=yes">
      <PARAM NAME="ShowControls" VALUE="True">
      <PARAM NAME="ShowStatusBar" VALUE="True">
    <EMBED TYPE="application/wav" SRC="index.php?menu=$module_name&action=download&id=$file&rawmode=yes"
    NAME="MediaPlayer" WIDTH=300 HEIGHT=100
     autostart="true" showcontrols="true" showstatusbar="true"></EMBED>
    </OBJECT>



    ]]>
    freepbx-mysql瀵嗙爜淇敼http://m.shnenglu.com/byc/archive/2012/02/24/166442.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 24 Feb 2012 09:21:00 GMThttp://m.shnenglu.com/byc/archive/2012/02/24/166442.htmlhttp://m.shnenglu.com/byc/comments/166442.htmlhttp://m.shnenglu.com/byc/archive/2012/02/24/166442.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/166442.htmlhttp://m.shnenglu.com/byc/services/trackbacks/166442.htmlhttp://www.freepbx.org/support/documentation/faq/changing-the-mysql-password


    amportal.conf, cdr_mysql.conf, res_mysql.conf freepbx.conf

    Once the password works, you need to update three files:

    • /etc/amportal.conf:

    AMPDBUSER=asteriskuser

    AMPDBPASS=mypass

    • /etc/asterisk/cdr_mysql.conf:

    password=mypass

    user=asteriskuser

    • /etc/asterisk/res_mysql.conf:

    dbuser = asteriskuser

    dbpass = mypass

    ./etc/freepbx.conf
    $amp_conf['AMPDBPASS'] = 'mypass';



    ]]>
    asterisk-cpphttp://m.shnenglu.com/byc/archive/2012/01/06/163703.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 06 Jan 2012 03:22:00 GMThttp://m.shnenglu.com/byc/archive/2012/01/06/163703.htmlhttp://m.shnenglu.com/byc/comments/163703.htmlhttp://m.shnenglu.com/byc/archive/2012/01/06/163703.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/163703.htmlhttp://m.shnenglu.com/byc/services/trackbacks/163703.htmlhttps://github.com/augcampos/asterisk-cpp
    asterisk-cpp 鍔熻兘閮ㄥ垎榪樺彲浠ワ紝浣哹ug 瀹炲湪澶錛屽茍鍙戠幇鏈?璁捐緇撴瀯涓嶅悎鐞?浜х敓鐨刡ug,涓嶅緩璁嬌鐢ㄣ?br />

    ]]>
    asterisk-dotnet 1.6.3.1 Asterisk 1.6.2.21 涓鐩撮噸澶嶈繛鎺? BUGhttp://m.shnenglu.com/byc/archive/2011/12/09/161835.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 09 Dec 2011 08:47:00 GMThttp://m.shnenglu.com/byc/archive/2011/12/09/161835.htmlhttp://m.shnenglu.com/byc/comments/161835.htmlhttp://m.shnenglu.com/byc/archive/2011/12/09/161835.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/161835.htmlhttp://m.shnenglu.com/byc/services/trackbacks/161835.htmlasterisk 1.6 鐜板湪鐨勭増鏈槸  Asterisk 1.6.2.21
    闂 asterisk  1.6.0.10  鐨?Ping 鍛戒護(hù)榪斿洖鏃舵病鏈塧ctionId錛屼絾Aserisk 1.6.2.21Ping 鍛戒護(hù)榪斿洖鍗存湁actionId銆?a >

    璇︾粏鐪?錛歨ttps://issues.asterisk.org/bug_view_advanced_page.php?bug_id=13993
    琛ヤ竵錛?br />ManagerConnection.cs 1982 琛屾敼涓?br />
                if (!string.IsNullOrEmpty(actionId))
                {
                    
    int hash = Helper.GetInternalActionId(actionId).GetHashCode();
                    responseActionId 
    = Helper.StripInternalActionId(actionId);
                    responseHandler 
    = GetRemoveResponseHandler(hash);

                    
    if (response != null)
                        response.ActionId 
    = responseActionId;
                    
    if (responseHandler != null)
                    {
                        
                    }
                    
    else if (response == null && buffer.ContainsKey("ping"&& buffer["ping"== "Pong")
                    {
                        response 
    = Helper.BuildResponse(buffer);
                        
    foreach (ResponseHandler pingHandler in pingHandlers.Values)
                            pingHandler.HandleResponse(response);
                        pingHandlers.Clear();
                    }
                }
                
    else if (response == null && buffer.ContainsKey("ping"&& buffer["ping"== "Pong")
                {
                    response 
    = Helper.BuildResponse(buffer);
                    
    foreach (ResponseHandler pingHandler in pingHandlers.Values)
                        pingHandler.HandleResponse(response);
                    pingHandlers.Clear();
                }





    ]]>
    Asterisk Manager Interface C++ Interpretor for Linux [杞琞http://m.shnenglu.com/byc/archive/2011/11/27/161041.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Sun, 27 Nov 2011 10:54:00 GMThttp://m.shnenglu.com/byc/archive/2011/11/27/161041.htmlhttp://m.shnenglu.com/byc/comments/161041.htmlhttp://m.shnenglu.com/byc/archive/2011/11/27/161041.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/161041.htmlhttp://m.shnenglu.com/byc/services/trackbacks/161041.htmlAsterisk Manager Interface C++ Interpretor for Linux 錛?a href="http://advancedcodingconcepts.blogspot.com/2011/02/asterisk-manager-interface-c.html">http://advancedcodingconcepts.blogspot.com/2011/02/asterisk-manager-interface-c.html錛?/h3>
    Through the past number of months in my full-time developer position for an online company and it's sales office, we've migrated to a VOIP telephony platform based on Asterisk, Linux and our custom call centre management application.

    In order to integrate an autodialer in to the application, I had originally written a script in PHP to read from two asterisk servers (local and offshore) to post information about whether an agent is on a call or not, and also inbound calls to the call centre application.

    The PHP script took a matter of hours to set up initially, but lacked proper structure - specifically, it could not track information when we switched to call queues, and was not easily portable between asterisk versions (1.8 locally, 1.2 in offshore)

    For the past week I have worked on the design and initial coding of an app in C++ that acts as a client to both servers, interprets the messages and creates internal structures.  I'm releasing that code here for review, and to help other's save some time, as I haven't noticed any other software out there that could accomplish this elegantly.  Currently, I am calling this application AMIflex based on the flexibility it provides to manage the Asterisk AMI protocol.

    This source code and it's derivatives can not be sold, licensed or packaged with any commercial software without my explicit permission.

    Download the source code here (.tar.bz2, 6kb)

    Installation instructions:

    1. unpack the file via "tar -xvjf" command
    2. create /etc/amiflex directory, and add a "servers.conf" file in the following format
    Server: server name (for display purposes only)
    Host: ip address or host name of ami server 
    Username: AMI manager username
    Secret: AMI manager password/secret

    Optional fields:

    RetryPeriod: number of seconds to wait between connection retries - ie if asterisk is rebooted (default: 300)
    Port: port number (default 5038)

    You can insert more than one server (connections will be maintained together) by entering the first server's details, placing a second new line after the last configration line for that server, and then entering the details for the second server (and so on)

    How to make this useful
    When a server connection is established, there's a AMI::RegisterAllEvents() call after authentication.  Add in your own events, and manipulate the structures or log output

    Example:
    AMI::RegisterEventCB("Dial", &AMI::MyDialCallback)

    void AMI::MyDialCallback(MSG *msg)
    {
        if (msg->Attr("SubEvent").value=="Begin")
            cout << msg->Attr("Channel").value + " is dialing " +msg->Attr("Dialstring").value<<endl;
    }


    Current limitations
    I have some well known limitations with this software - I'll be resolving them myself for internal use, but my next step is to integrate proprietary MySQL links in to the source code, so I made sure to release this first.  Currently my task list with my employer is too long to not take some shortcuts :)
    1. The channel list linked list is a static member of the channel class - this means that you run AMIflex with multiple servers in the configuration file, all of the channels for all servers will be parallel.  If you have two servers and each server has the same extension, then there will be one device entry created and two channels open on that device, when each extension is busy.
    2. The bridge event currently only registered the first channel's Bridge member to the second member, and vice versa - If you are monitoring channels that will be bridged to more than one other channel, this will have to be expanded to a proper many to many-style linked list.


    ]]>
    dahdihttp://m.shnenglu.com/byc/archive/2011/11/24/160887.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Thu, 24 Nov 2011 03:37:00 GMThttp://m.shnenglu.com/byc/archive/2011/11/24/160887.htmlhttp://m.shnenglu.com/byc/comments/160887.htmlhttp://m.shnenglu.com/byc/archive/2011/11/24/160887.html#Feedback2http://m.shnenglu.com/byc/comments/commentRss/160887.htmlhttp://m.shnenglu.com/byc/services/trackbacks/160887.html闃呰鍏ㄦ枃

    ]]>
    Asterisk + Vtiger CRM 5.1 鐢?shù)鍑绘嫧鍙?瀹炵幇鏉ョ數(shù)寮瑰睆http://m.shnenglu.com/byc/archive/2011/11/05/159672.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Sat, 05 Nov 2011 06:57:00 GMThttp://m.shnenglu.com/byc/archive/2011/11/05/159672.htmlhttp://m.shnenglu.com/byc/comments/159672.htmlhttp://m.shnenglu.com/byc/archive/2011/11/05/159672.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/159672.htmlhttp://m.shnenglu.com/byc/services/trackbacks/159672.html

    http://www.ztmaker.com/read.php?tid-325.html

    涓銆丄sterisk 绔厤緗?br />
    淇敼閰嶇疆鏂囦歡"/etc/asterisk/manager_custom.conf"錛屽湪鍏朵腑娣誨姞涓涓鐞嗗笎鍙?vtigercrm"錛?br />
    [vtigercrm]
    secret = vtigercrm
    deny=0.0.0.0/0.0.0.0
    permit=192.168.1.3/255.255.255.0
    read = system,call,log,verbose,command,agent,user
    write = system,call,log,verbose,command,agent,user
    鐒跺悗閲嶅惎 Asterisk錛?br />
    浜屻丆RM 绔厤緗?br />
    1銆佽緗ā鍧?br />
    浣跨敤綆$悊鍛樼櫥褰?VtigerCRM"錛屽湪鑿滃崟涓夋嫨"Settings->Module Manager"榪涘叆妯″潡鍒楄〃欏甸潰銆?br />
    鍦ㄦ欏甸潰涓壘鍒?PBX Manager"妯″潡錛屽皢鍏跺惎鐢ㄥ悗錛岀偣鍑婚厤緗浘鏍囧姝ゆā鍧楄繘琛岄厤緗傚悇閰嶇疆欏瑰唴瀹瑰涓嬶細(xì)

    Asterisk server IP: 濉啓 Asterisk 鏈嶅姟鍣ㄥ湴鍧
    Asterisk server port: 濉啓 Asterisk 綆$悊绔彛錛岄粯璁や負(fù) 5038
    Asterisk username: 濉啓 Asterisk 甯愬彿鍚嶇О錛屾寜涔嬪墠鐨勯厤緗氨濉啓涓?vtigercrm"
    Asterisk password: 濉啓 Asterisk 甯愬彿瀵嗙爜錛屾寜涔嬪墠鐨勯厤緗氨濉啓涓?vtigercrm"
    Asterisk Version: 閫夋嫨 Asterisk 鐨勭増鏈?br />2銆佽緗敤鎴峰垎鏈?br />
    浣跨敤鐢ㄦ埛甯愬彿鐧誨綍鍚庯紝鐐瑰嚮鍙充笂鏂圭殑"My Preferences"錛屽湪鎵撳紑鐨勯〉闈腑鎵懼埌"Asterisk Configuration"鏍忥紝騫朵綔濡備笅閰嶇疆錛?br />
    Asterisk Extension: 濉啓鐢ㄦ埛鐨勫垎鏈哄彿
    Receive Incoming Calls: 閫変腑姝ら夐」
    3銆佸惎鍔ㄥ鎴風(fēng)紼嬪簭

    浣跨敤 SSH 鐧誨綍 CRM 鏈嶅姟鍣紝榪涘叆 CRM 緋葷粺瀹夎璺緞涓嬬殑"cron/modules/PBXManager"鐩綍錛岀劧鍚庤繍琛屼互涓嬪懡浠わ細(xì)

    # ./AsteriskClient.php
    濡傛灉涓鍒囨甯稿氨浼?xì)鍑虹幇濡備笅淇℃伅锛?xì)

    Date: 05-03-2010
    Connecting to asterisk server.....
    Connected successfully

    Trying to login to asterisk
    Logged in successfully to asterisk server
    鑷蟲(chóng)錛屽氨鍙互浣跨敤鐢?shù)璇濇嫧鎵撳垰鎵嶈畡〗殑鐢ㄦ埛鍒嗘満鍙蜂簡(jiǎn)锛屽鏋滀竴鍒囨甯革紝灝卞彲浠ョ湅鍒癈RM欏甸潰鐨勫彸涓嬭灝變細(xì)鍑虹幇涓涓潵鐢墊彁紺烘銆傚彟澶栧湪鑿滃崟涓墦寮"Tools->PBX Manager"錛屽湪欏甸潰涓篃鍙互鐪嬪埌鏉ョ數(shù)璁板綍銆?br />
    娉細(xì)濡傛灉 Asterisk 鏄?1.4 鐗堢殑錛岃鍒頒互涓嬩綅緗笅杞戒慨鏀硅繃鐨?AsteriskClient.php"鏉ユ浛鎹㈠師緋葷粺涓殑鏂囦歡錛?br />http://danielaliaman.com/blog///index.php/2009/07/23/vtiger_pbx_manager_issues_only_first_cal?blog=2



    http://hi.baidu.com/ahhui/blog/item/e275b419ca6b415343a9ad83.html
    濡備綍浣跨敤vtigercrm5.1瀹炵幇鐐瑰嚮鎷ㄥ彿銆佹潵鐢?shù)寮瑰?/div>
     

    鐜錛欵lastix1.6
    宸茬粡瀹炵幇鐨?span>鍔熻兘錛?span>vtigercrm鐐瑰嚮瀹㈡埛鐢?shù)璇濇嫧鍙峰Q屾潵鐢?shù)鍦╲tigercrm寮瑰睆銆?br />鏈В鍐崇殑闂錛氬脊灞忔病鏈夋潵鐢?shù)鍙风爜銆?br />
    涓銆乿tigercrm鐐瑰嚮鍛煎嚭閰嶇疆鏂規(guī)硶錛?br />1銆侀鍏堜繚璇乤sterisk銆乿tigercrm閮芥甯鎬嬌鐢ㄣ?br />
    2銆佷慨鏀?etc/asterisk/manager.conf鏂囦歡錛屽鍔犲涓嬶細(xì)

    [vtigecrm]
    secret = vtigecrm
    deny=0.0.0.0/0.0.0.0
    permit=0.0.0.0/0.0.0.0
    read = system,call,log,verbose,command,agent,user
    write = system,call,log,verbose,command,agent,user
    澶嶅埗浠g爜

    浠ヤ笂浠g爜涓璿tigercrm涓嶆槸鐗瑰畾鐨勶紝浣嗚鍦╲tigercrm涓殑pbx璁劇疆瑕佷竴鑷淬?br />
    3銆佽緗畍tigercrm錛?br />璁懼畾-妯″潡綆$悊-PBX Manager

    Asterisk server IP 錛?92.168.0.15 錛堣繖鏄痑stersik鏈嶅姟鍣?/span>鐨処P錛?br />Asterisk server port 錛?038 錛堥粯璁?038錛?br />Asterisk username 錛歷tigercrm
    Asterisk password 錛歷tigercrm
    Asterisk Version錛?.4
    澶嶅埗浠g爜·

     

    4銆佽緗畍tigercrm涓殑涓漢鍒嗘満鍙鳳細(xì)
    鎴戠殑璁懼畾
    Asterisk Extension錛?00 錛堣繖鏄痑sterisk閲屽凡璁懼畾鍒嗘満鍙鳳級(jí)
    Receive Incoming Calls錛?鏄?

    5銆佷慨鏀規(guī)帴鍙f枃浠訛細(xì)
    /var/www/html/vtigercrm/modules/PBXManager/utils/AsteriskClass.php
    灝嗕互涓嬩唬鐮侊細(xì)

    switch($typeCalled){
    case "SIP":
    $context = "local-extensions";
    break;
    case "PSTN":
    $context = "from-inside";//"outbound-dialing";
    break;
    default:
    $context = "default";
    }
    澶嶅埗浠g爜

    鏇存敼涓猴細(xì)

    switch($typeCalled){
    case "SIP":
    $context = "local-extensions";
    break;
    case "PSTN":
    $context = "from-internal";//"outbound-dialing";
    break;
    default:
    $context = "from-internal";
    }
    澶嶅埗浠g爜

    濡傛灉欏哄埄錛屽埌榪欓噷灝辮兘鐢╲tigercrm鐐瑰嚮鎷ㄥ彿浜?jiǎn)锛岀偣鍑诲忥L(fēng)爜鍚庯紝浣犵殑鍒嗘満浼?xì)鍝嶉搩锛屽搷閾冨垎鏈烘彁鏈哄悗锛?span>緋葷粺灝辮嚜鍔ㄥ皢鍙風(fēng)爜鎷ㄥ嚭銆?br />鍙傝冿細(xì)http://wiki.vtiger.com/index.php/vtiger510:Module_Asterisk_Howto
    浜屻佹潵鐢?shù)寮瑰睆鐨勮畡〗栆?guī)硶錛?br />榪欓噷闇瑕?span>榪愯涓涓枃浠訛紝騫朵笖榪愯鍚庯紝涓嶈兘緇堟銆?br />榪涘叆榪欎釜鐩綍錛?var/www/html/vtigercrm/cron/modules/PBXManager
    榪愯榪欎釜鍛戒護(hù)錛?

    php AsteriskClient.php
    澶嶅埗浠g爜

    榪愯鍚庯紝涓嶈兘緇堟錛屽鏋?span>鏈嶅姟鍣ㄩ噸鍚繃錛岃繕闇瑕佸啀嬈¤繍琛屻?br />
    鍒拌繖閲岋紝鏉ョ數(shù)寮瑰睆鐨勫姛鑳戒篃瀹炵幇浜?jiǎn)锛屼笉杩囨潵鐢?shù)鏄劇ず闂娌℃壘鍒扮瓟妗堛?br />緲婚槄vtigercrm紺懼尯璁哄潧錛屼篃鏈壘鍒板悎閫傜殑瑙e喅鍔炴硶錛屾洿鏈夎姝ゆ柟娉曟瘮杈冨ソCPU璧勬簮銆?br />






    寮瑰睆琛ヤ竵

    vtigercrm/include/js/asterisk.js
    function _defAsteriskTimer(){
     var asteriskTimer = null;
     var ASTERISK_POLLTIME = 5000; //vtigercrm polls the asterisk server for incoming calls after every 3 seconds for now
     var ASTERISK_INCOMING_DIV_TIMEOUT = 60; 

     

    notificationPopup.js
     function ResetPopup(){
      popupDiv.innerHTML = "";
      popupDiv.style.height = "0px";
      popupDiv.style.display = "none";
      parentDiv.removeChild(popupDiv);
      if(parentDiv.children.length ==0){
       parentDiv.style.display = "none";
      }

     }


     vtigercrm/cron/modules/PBXManager/AsteriskClient.php

    function asterisk_handleResponse2($mainresponse, $adb, $asterisk, $state) {
     $appdata = $mainresponse['AppData'];
        
     $uniqueid = $channel = $callerType = $extension = null;
     $parseSuccess = false;
     
     if(
      $mainresponse['Event'] == 'Newexten' && (strstr($appdata, "__DIALED_NUMBER") || strstr($appdata, "EXTTOCALL"))
     ) {

      $uniqueid = $mainresponse['Uniqueid'];

      $channel = $mainresponse['Channel'];
      $splits = explode('/', $channel);
      $callerType = $splits[0];

      $splits = explode('=', $appdata);
      $extension = $splits[1];
      
      $parseSuccess = true;
     } else if($mainresponse['Event'] == 'OriginateResponse'){
      //if the event is OriginateResponse then its an outgoing call and set the flag to 1, so that AsteriskClient does not pick up as incoming call
      $uniqueid = $mainresponse['Uniqueid'];
      $adb->pquery("UPDATE vtiger_asteriskincomingevents set flag = 1 WHERE uid = ?", array($uniqueid));
     }else if($mainresponse['Event']=='NewCallerid'){

                    $channel = $mainresponse['Channel'];

                    if(strncmp($channel,"DAHDI",5)==0){

       $uniqueid = $mainresponse['Uniqueid'];

       if(!empty($mainresponse['CallerID'])) {
        $callerNumber = $mainresponse['CallerID'];
       }elseif(!empty($mainresponse['CallerIDNum'])) {
        $callerNumber = $mainresponse['CallerIDNum'];
       }
       
       $sql = "UPDATE vtiger_asteriskincomingevents set from_number=? WHERE uid=?";
       $adb->pquery($sql, array($callerNumber, $uniqueid));
      }  
     }
     





    ]]>CentOS6.0 asterisk-1.6.2.20 freepbx-2.9.0 瀹夎榪囩▼http://m.shnenglu.com/byc/archive/2011/09/15/155865.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Thu, 15 Sep 2011 10:15:00 GMThttp://m.shnenglu.com/byc/archive/2011/09/15/155865.htmlhttp://m.shnenglu.com/byc/comments/155865.htmlhttp://m.shnenglu.com/byc/archive/2011/09/15/155865.html#Feedback0http://m.shnenglu.com/byc/comments/commentRss/155865.htmlhttp://m.shnenglu.com/byc/services/trackbacks/155865.html闇瑕佸畨瑁呯殑鍖?nbsp;  
       Mysql鏁版嵁搴撳鏈嶇錛孧ysql鏁版嵁搴撴湇鍔$
       PHP鏀寔錛堝彲閫夊寘澧炲姞鍕鵑夛級(jí)
          php_mysql
       寮鍙戝伐鍏?br />
    2 瀹夎Asterisk
       yum install libxml2-devel
       yum install ncurses-devel

       groupadd asterisk
       useradd -c "asterisk PBX" -d /var/lib/asterisk -g asterisk -s /sbin/nologin asterisk

       瑙e帇asterisk
       ./configure
       make
       make install
       //make samples 瀹夎f(xié)reepbx涓嶈榪欒
       make config

    3 瀹夎FreePBX
       
       瑙e帇freepbx

       yum install php-db
       //yum install php-pear-DB (centos 5)
       pear install db
       yum install php-posix
       
       service mysqld start   

       mysqladmin create asterisk
       mysqladmin create asteriskcdrdb 
       mysql asterisk < SQL/newinstall.sql
       mysql asteriskcdrdb < SQL/cdr_mysql_table.sql
       mysqladmin -u root -p password 123456
       
        /etc/httpd/conf/httpd.conf User apache 鏀逛負(fù) User asterisk ;Group apache 鏀逛負(fù) Group asterisk
        /etc/php.ini date.timezone = PRC
        /etc/sysconfig/selinux  SELINUX=disabled

        setenforce 0

        service httpd start 
        service asterisk start


        ./install_amp --username root --password 123456
        amportal start
        http://浣犵殑IP user:admin pass:admin

       


    Asterisk Recordingvi/etc/amportal.conf
    ARI_ADMIN_PASSWORD=浣犵殑瀵嗙爜
    echo "/usr/local/sbin/amportal start">>/etc/rc.local

    澶囨敞:
    鏄劇ずPHP閿欒淇℃伅
    璋冭瘯鐨勬椂鍊欐妸php.ini涓殑display_errors   =   Off鏀規(guī)垚On
    鎴栬?nbsp;  error_log   =   D:\Web\error.log   鍦╡rror.log涓煡鐪嬮敊璇棩蹇?
       



    FreePBX 2.X鐗堟湰瀹夎鍚?閮芥槸涓嶄嬌鐢ㄥ瘑鐮佸氨鍙互榪涘叆admin涓嬪幓綆$悊asterisk錛岃屾湁鍏蟲(chóng)洿鏀瑰瘑鐮佺殑璇存槑鏂囨。
    瀹樻柟緗戝叧娌℃彁渚涳紝璁哄潧涓篃闂緱鐩稿杈冨錛屾垜灝辯畝鍗曡涓涓嬪浣曞幓閰嶇疆FreePBX瀵嗙爜銆?/p>

    1銆佹壘鍒?etc/amportal.conf閰嶇疆鏂囦歡錛屽皢浠ヤ笅榪欎釜璇彞

    # AUTHTYPE: authentication type to use for web admin
    # If type set to 'database', the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above
    # valid: none, database
    AUTHTYPE=
    none

    鏇存敼涓猴細(xì)錛堟敞鎰忕孩鑹叉爣璇嗭級(jí)

    # AUTHTYPE: authentication type to use for web admin
    # If type set to 'database', the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above
    # valid: none, database
    AUTHTYPE=
    database

    2銆佹墽琛?strong>./usr/src/freepbx-2.5.1/apply_conf.sh 浣挎洿鏀圭敓鏁堛傦紙娉ㄦ剰钃濊壊璇彞鐨勫畬鏁存э級(jí)

    3銆佽繖鏍峰氨鍙互浣跨敤

    AMPDBUSER=
    AMPDBPASS=

    瀵瑰簲鐨勫笎鍙峰瘑鐮佽繘鍏ョ鐞嗙郴緇燂紝涔熷彲浠ヤ嬌鐢?strong>Administrators妯″潡寤虹珛榪涘叆緋葷粺鐨勭敤鎴楓?/p>

     

    鎶ヨ〃涓嶈兘鏌ョ湅

    濡傛灉鏌ョ湅鎶ヨ〃鐨勬椂鍊欏嚭鐜板涓嬬殑閿欒鎻愮ず錛?/span>

    YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!

    鍙戠敓榪欎釜閿欒鐨勫師鍥犲彲鑳芥槸httpd榪涚▼涓嶈兘璇誨啓php浼?xì)璇濈殑淇濆瓨璧\寰勩?/span>

    1.鎵ц浠ヤ笅鍛戒護(hù)鏌ョ湅PHP浼?xì)璇濈殑淇濆瓨璧\寰?/span>:

    grep save_path /etc/php.ini

    鎵懼埌:

    session.save_path = /var/lib/php/session

    2. 淇敼鏉冮檺

    chown asterisk /var/lib/php/session

    chmod -R 777 /var/lib/php/session

     

    Couldn't load variables.txt

    濡傛灉鍑虹幇姝ら棶棰樺彲鑳芥槸鍥犱負(fù)op_server.pl娌℃湁榪愯銆傝繘琛岀洰褰曡繘琛屽嵆鍙?/span>

    [root@www ~]# cd /var/www/html/panel/

    [root@www panel]# ./op_server.pl


    璁劇疆freepbx 閰嶇疆device涓巙ser鍒嗗紑

    vi /etc/amportal.conf

    AMPEXTENSIONS=deviceanduser | extensions

          http://hi.baidu.com/kinnsei/blog/item/302c2d1e4f6952f01ad57601.html(灝嗙敤鎴?user)涓庤澶?device)鍖哄垎寮鏉?-鍐呯嚎鍒嗘満鐨勯珮綰у簲鐢?




    ]]>
    久久精品夜色噜噜亚洲A∨ | 久久香蕉国产线看观看乱码| 国内精品久久久久国产盗摄| 久久免费的精品国产V∧| 久久久久香蕉视频| 91久久精品电影| 99久久免费只有精品国产| 久久久综合九色合综国产| 97久久天天综合色天天综合色hd| 亚洲精品无码成人片久久| 午夜不卡久久精品无码免费| 97久久国产综合精品女不卡| 亚洲va久久久噜噜噜久久男同| 亚洲午夜无码久久久久小说| 一本色道久久88综合日韩精品| 欧美性猛交xxxx免费看久久久| 亚洲欧美精品一区久久中文字幕 | 欧美大香线蕉线伊人久久| 亚洲中文字幕久久精品无码APP| 狠狠综合久久AV一区二区三区| 欧美日韩精品久久久免费观看| 久久精品国产亚洲αv忘忧草| 日日噜噜夜夜狠狠久久丁香五月| 亚洲AV无码久久精品狠狠爱浪潮 | 久久人妻少妇嫩草AV无码专区| 精品久久久久久| 久久最新免费视频| 久久天天躁夜夜躁狠狠| 久久久久亚洲av无码专区喷水| 国产成人无码精品久久久免费| 精品久久久久久国产免费了| 成人综合久久精品色婷婷| 久久久久成人精品无码中文字幕| 国产一区二区精品久久凹凸 | 久久综合欧美成人| 一级做a爰片久久毛片看看| 久久Av无码精品人妻系列 | 国产精品久久久天天影视| 婷婷久久综合九色综合九七| 久久精品蜜芽亚洲国产AV| 久久无码一区二区三区少妇 |