锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久国产精品99盘 ,久久婷婷五月综合色奶水99啪,久久人爽人人爽人人片AVhttp://www.shnenglu.com/byc/archive/2013/04/26/199739.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 26 Apr 2013 11:42:00 GMThttp://www.shnenglu.com/byc/archive/2013/04/26/199739.htmlhttp://www.shnenglu.com/byc/comments/199739.htmlhttp://www.shnenglu.com/byc/archive/2013/04/26/199739.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/199739.htmlhttp://www.shnenglu.com/byc/services/trackbacks/199739.html www.ddrj.com

]]>
freepbc 鍛煎嚭絳夊緟鏃墮棿淇敼http://www.shnenglu.com/byc/archive/2013/04/17/199505.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Wed, 17 Apr 2013 03:17:00 GMThttp://www.shnenglu.com/byc/archive/2013/04/17/199505.htmlhttp://www.shnenglu.com/byc/comments/199505.htmlhttp://www.shnenglu.com/byc/archive/2013/04/17/199505.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/199505.htmlhttp://www.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://www.shnenglu.com/byc/archive/2012/11/06/194720.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Tue, 06 Nov 2012 08:59:00 GMThttp://www.shnenglu.com/byc/archive/2012/11/06/194720.htmlhttp://www.shnenglu.com/byc/comments/194720.htmlhttp://www.shnenglu.com/byc/archive/2012/11/06/194720.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/194720.htmlhttp://www.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 ./






 



]]>
縐婚櫎bzImage鏂囦歡涓?1f8b08'涔嬪墠鍐呭錛屽瓨?shù)负gz鏂囦歡http://www.shnenglu.com/byc/archive/2012/10/29/194021.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Mon, 29 Oct 2012 08:02:00 GMThttp://www.shnenglu.com/byc/archive/2012/10/29/194021.htmlhttp://www.shnenglu.com/byc/comments/194021.htmlhttp://www.shnenglu.com/byc/archive/2012/10/29/194021.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/194021.htmlhttp://www.shnenglu.com/byc/services/trackbacks/194021.html 

#include <stdlib.h>
#include 
<stdio.h>

int _tmain(int argc, _TCHAR* argv[])
{
    FILE
* r=fopen("linux26","rb");
    FILE
* w=fopen("linux26.gz","wb");
    
int s=0;
    
for(;;)
    
{
        unsigned 
char c;
        
int l=fread(&c,1,1,r);
        
if(l>=1)
        
{
            
if(s==3)
            
{
                fwrite(
&c,1,1,w);
            }

            
else if(s==2)
            
{
                
if(c==0x08)
                
{
                    c
=0x1f;
                    fwrite(
&c,1,1,w);
                    c
=0x8b;
                    fwrite(
&c,1,1,w);
                    c
=0x08;
                    fwrite(
&c,1,1,w);
                    
++s;
                }

                
else
                
{
                    s
=0;
                }

            }

            
else if(s==1)
            
{
                
if(c==0x8b)
                
{
                    
++s;
                }

                
else
                
{
                    s
=0;
                }

            }

            
else if(s==0)
            
{
                
if(c==0x1f)
                
{
                    
++s;
                }

            }

        }

        
else
        
{
            
break;
        }

    }

    fclose(w);
    fclose(r);
    
return 0;
}

 



]]>
杞?a2billinghttp://www.shnenglu.com/byc/archive/2012/10/11/193154.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Thu, 11 Oct 2012 02:56:00 GMThttp://www.shnenglu.com/byc/archive/2012/10/11/193154.htmlhttp://www.shnenglu.com/byc/comments/193154.htmlhttp://www.shnenglu.com/byc/archive/2012/10/11/193154.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/193154.htmlhttp://www.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>


    ]]>
    linux qt 闈?rùn)鎬佺紪璇?/title><link>http://www.shnenglu.com/byc/archive/2012/09/04/189435.html</link><dc:creator>鍏彾鑽?/dc:creator><author>鍏彾鑽?/author><pubDate>Tue, 04 Sep 2012 08:01:00 GMT</pubDate><guid>http://www.shnenglu.com/byc/archive/2012/09/04/189435.html</guid><wfw:comment>http://www.shnenglu.com/byc/comments/189435.html</wfw:comment><comments>http://www.shnenglu.com/byc/archive/2012/09/04/189435.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/byc/comments/commentRss/189435.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/byc/services/trackbacks/189435.html</trackback:ping><description><![CDATA[<div>yum install glibc-static<br />cd qt-everywhere-opensource-src-4.*.*<br />./configure -release -static -nomake examples -nomake demos -no-qt3support -no-script -no-scripttools -no-multimedia -no-audio-backend -no-openssl -no-opengl -no-webkit -no-phonon -no-sql-sqlite<br /> <p>make</p> <p>make install</p>鍦?pro鏂囦歡涓姞涓?QMAKE_LFLAGS += -static  -static-libgcc -static-libstdc++<br /> <div id="6161666" class="postText"> <p><br />5.5.4 鍏變韓(shared)搴拰闈滄厠(static)搴殑娣峰悎閫f帴<br /><br />榛樿獚鎯呮硜涓嬶紝鍋囧鍏變韓搴彲鐢紝閫f帴鍣ㄦ渻浣跨敤鍏變韓搴備絾鏄?Bdynamic鍜?br />-Bstatic鎻愪緵浜?jiǎn)寰堝ソ鎺у埗屙n鐨勬柟娉曘傚畠鍊戝彲浠ユ焙瀹氱敤鍏變韓搴倓鏄敤闈滄厠搴?br />鍌?Bdynamic鍜?Bstatic閬擱爡緄﹂f帴鍣紝濡備笅鎿嶄綔錛?br /># gcc -o main main.o -Wl,-Bstatic -lfoo -Wl,-Bdynamic -lbar<br />Bdynamic 寰岄潰鐨勫韓閮戒嬌鐢ㄥ叡浜増鏈?br />鐩村埌閬囧埌Bstatic <br />Bstatic 寰岄潰鐨勫韓閮戒嬌鐢ㄩ潨鎱嬬増鏈?br />鐩村埌閬囧埌Bdynamic <br /><br /><br /><a >http://www.lslnet.com/linux/f/docs1/i44/big5307264.htm</a> <br /><br /><br />鍚敤RTTI<br /><span id="6116616" class="caps">CONFIG</span> += rtti</p></div></div><img src ="http://www.shnenglu.com/byc/aggbug/189435.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/byc/" target="_blank">鍏彾鑽?/a> 2012-09-04 16:01 <a href="http://www.shnenglu.com/byc/archive/2012/09/04/189435.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>mysql 澶氬疄渚?/title><link>http://www.shnenglu.com/byc/archive/2012/08/10/186829.html</link><dc:creator>鍏彾鑽?/dc:creator><author>鍏彾鑽?/author><pubDate>Fri, 10 Aug 2012 07:24:00 GMT</pubDate><guid>http://www.shnenglu.com/byc/archive/2012/08/10/186829.html</guid><wfw:comment>http://www.shnenglu.com/byc/comments/186829.html</wfw:comment><comments>http://www.shnenglu.com/byc/archive/2012/08/10/186829.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/byc/comments/commentRss/186829.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/byc/services/trackbacks/186829.html</trackback:ping><description><![CDATA[mkdir /var/lib/mysql_new<br />mysql_install_db --datadir=/var/lib/mysql_new --user=mysql<br /><span style="font-family: 瀹?huà)浣? mso-ascii-theme-font: minor-fareast; mso-fareast-font-family: 瀹?huà)浣? mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-fareast; mso-bidi-font-size: 10.5pt"><strong><br /><br />vi /etc/my.cnf 娣誨姞<br /> <p> </p> <p>[mysqld_multi]<br />mysqld=/usr/bin/mysqld_safe<br />mysqladmin=/usr/bin/mysqladmin<br />log=/var/log/mysqld_multi.log<br />user = multi_admin<br />password = multipass</p> <p><br />[mysqld1]<br />datadir=/var/lib/mysql_new<br />socket=/var/lib/mysql_new/mysql.sock<br />port=4000<br />pid-file=/var/lib/mysql_new/mysql.pid<br />user=mysql</p> <p><br /><br />澶氬疄渚嬪惎鍔?span lang="EN-US"><o:p></o:p></span></strong></span> <br /><span style="font-family: 瀹?huà)浣? mso-ascii-theme-font: minor-fareast; mso-fareast-font-family: 瀹?huà)浣? mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-fareast; mso-bidi-font-size: 10.5pt" lang="EN-US">mysqld_multi start 1</span><br /><br /><span style="font-family: 瀹?huà)浣? mso-ascii-theme-font: minor-fareast; mso-fareast-font-family: 瀹?huà)浣? mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-fareast; mso-bidi-font-size: 10.5pt"><strong>鍏抽棴<span lang="EN-US">MySQL</span>澶氬疄渚?/strong></span><br /><span style="font-family: 瀹?huà)浣? mso-ascii-theme-font: minor-fareast; mso-fareast-font-family: 瀹?huà)浣? mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-fareast; mso-bidi-font-size: 10.5pt" lang="EN-US"><strong>mysqld_multi stop 1</strong></span><br /><br /><strong>鏌ョ湅<span lang="EN-US">MySQL</span>绔彛鍚姩鐘舵?/strong><br /><span><strong>netstat -ntlp | grep mysqld銆銆銆<br /><br />鏌ョ湅<span lang="EN-US">MySQL</span>瀹炰緥榪涚▼</strong></span><br /><span><strong>ps -ef | grep mysql銆銆銆銆銆<br /><br />閫氳繃port榪炴帴<br />mysql -u root -h 127.0.0.1 -P 4000</strong></span> <br />閫氳繃sock<br />mysql -u root -S /var/lib/mysql_new/mysql.sock -p <br /><br /><br /><br />faq<br />my.cnf-[mysqld_multi]璁劇疆鐨剈ser鍜宲assword鏄敤鏉ュ叧闂暟鎹簱瀹炰緥鐨勶紝鏍規(guī)嵁閰嶇疆涓殑鐢ㄦ埛鍚嶅拰瀵嗙爜鎺堟潈璇ョ敤鎴穝hutdown鏉冮檺<br />mysql  -S /var/lib/mysql_new/mysql.sock<br />mysql> grant shutdown on *.* to multi_admin@'localhost' identified by 'multipass'; <br /></p><img src ="http://www.shnenglu.com/byc/aggbug/186829.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/byc/" target="_blank">鍏彾鑽?/a> 2012-08-10 15:24 <a href="http://www.shnenglu.com/byc/archive/2012/08/10/186829.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>log4cplus-1.1.0-rc6 閾炬帴闂http://www.shnenglu.com/byc/archive/2012/08/03/186139.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 03 Aug 2012 04:04:00 GMThttp://www.shnenglu.com/byc/archive/2012/08/03/186139.htmlhttp://www.shnenglu.com/byc/comments/186139.htmlhttp://www.shnenglu.com/byc/archive/2012/08/03/186139.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/186139.htmlhttp://www.shnenglu.com/byc/services/trackbacks/186139.html瀛楃闆嗚緗簡(jiǎn) 浣跨敤澶氬瓧鑺傚瓧絎﹂泦
    榪樹(shù)細(xì)鍑虹幇榪欎釜緙栬瘧閿欒銆?br />LNK2019: 鏃犳硶瑙f瀽鐨勫閮ㄧ鍙?"public: static class log4cplus::Logger __cdecl log4cplus::Logger::getInstance
    鍦ㄤ簬澶勭悊鍣ㄥ畾涔夊姞涓?br />LOG4CPLUS_BUILD_DLL

    ]]>
    vc++ ice 閰嶇疆http://www.shnenglu.com/byc/archive/2012/07/18/184117.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Wed, 18 Jul 2012 12:51:00 GMThttp://www.shnenglu.com/byc/archive/2012/07/18/184117.htmlhttp://www.shnenglu.com/byc/comments/184117.htmlhttp://www.shnenglu.com/byc/archive/2012/07/18/184117.html#Feedback0http://www.shnenglu.com/byc/comments/commentRss/184117.htmlhttp://www.shnenglu.com/byc/services/trackbacks/184117.html鍙傛暟:-I ./ -I "C:\Program Files\ZeroC\Ice-3.4.2\slice" $(ItemPath)
    鍒濆鐩綍:$(ItemDir)

    ]]>
    asterisk 璋冭瘯 璁劇疆http://www.shnenglu.com/byc/archive/2012/07/14/183302.html鍏彾鑽?/dc:creator>鍏彾鑽?/author>Fri, 13 Jul 2012 23:39:00 GMThttp://www.shnenglu.com/byc/archive/2012/07/14/183302.htmlhttp://www.shnenglu.com/byc/comments/183302.htmlhttp://www.shnenglu.com/byc/archive/2012/07/14/183302.html#Feedback1http://www.shnenglu.com/byc/comments/commentRss/183302.htmlhttp://www.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


    ]]>
    久久久久99精品成人片欧美| 青青草原精品99久久精品66| 久久精品一本到99热免费| 无码任你躁久久久久久老妇App| 久久久久久久综合综合狠狠| 99久久国产热无码精品免费 | 成人国内精品久久久久影院VR| 日韩精品久久久肉伦网站 | 91久久精品电影| 亚洲国产精久久久久久久| 一本大道加勒比久久综合| 青青青青久久精品国产| 国产高潮国产高潮久久久91| 久久精品嫩草影院| 亚洲综合久久综合激情久久| 国内精品久久久久久久影视麻豆| 99久久综合国产精品二区| 中文字幕亚洲综合久久2| 国产精品久久久99| 久久久久久国产精品免费免费| 看全色黄大色大片免费久久久| 日本精品久久久久久久久免费| 国产精品中文久久久久久久| 精品综合久久久久久97| 99久久人妻无码精品系列| 91久久精品视频| 久久久久亚洲AV成人网人人网站| 久久精品国产亚洲av麻豆图片| 99999久久久久久亚洲| 精品久久777| 午夜精品久久久久久| 久久棈精品久久久久久噜噜| 99久久国产亚洲高清观看2024| 亚洲精品国产第一综合99久久| 天天躁日日躁狠狠久久| 一本大道加勒比久久综合| 色综合久久夜色精品国产 | 国产精品久久毛片完整版| 精品无码久久久久久国产| 无码久久精品国产亚洲Av影片| 91精品国产91久久|