顯示具有 Server 標籤的文章。 顯示所有文章
顯示具有 Server 標籤的文章。 顯示所有文章

2025年10月3日 星期五

Asterisk & FreePBX Feature Codes

Asterisk & FreePBX Feature Codes


Feature Codes enable you to control what happens to your phone extension and calls to it and voicemail.  Here are the the feature codes:

Blacklist

*30 – Blacklist a number
*32 – Blacklist the last caller
*31 – Remove a number from the blacklist

Call Forward

*72 – Call Forward All Activate
*73 – Call Forward All Deactivate
*74 – Call Forward All Prompting Deactivate
*90 – Call Forward Busy Activate
*91 – Call Forward Busy Deactivate
*92 – Call Forward Busy Prompting Deactivate
*52 – Call Forward No Answer/Unavailable Activate
*53 – Call Forward No Answer/Unavailable Deactivate
*740 – Call Forward Toggle

Call Waiting

*70 – Call Waiting – Activate
*71 – Call Waiting – Deactivate

Core

*8 – Asterisk General Call Pickup (When you are part of a call group)
** – Directed Call Pickup (When you are part of a call group)
*2 – (When in a call) Asterisk Attended Transfer
## – (When in a call) Asterisk Blind Transfer
** – (When in a call) Asterisk Disconnect Code
*1 – (When in a call) Asterisk Toggle Call Recording
7777 – Simulate Incoming Call
*12 – User Logoff
*11 – User Logon

Day Night Mode - When enabled

*28x –  where x is a number from 0 to 9.  A PIN may be required to activate.

Dictation

*35 – Email completed dictation
*34 – Perform dictation

Do-Not-Disturb (DND)

*78 – DND Activate
*79 – DND Deactivate
*76 – DND Toggle

Follow Me

*21 – Findme / Follow Me Toggle

Info Services

*69 – Call Trace
# – Directory
*43 – Echo Test
*65 – Speak Your Extension Number
*60 – Speaking Clock

Paging and Intercom

*80 – Intercom prefix
*54 – User Intercom Allow
*55 – User Intercom Disallow

Phonebook Directory

*411 – Phonebook dial-by-name directory

Queues

*45 – Queue Toggle

Recordings

*99 – Check Recording
*2968 – Edit Recording: Additional_Support_Announcement
*2969 – Edit Recording: ServiceAnnouncement
*77 – Save Recording

Speed Dial Functions

*75 – Set user speed dial
*0 – Speeddial prefix

Voicemail

*98 – Dial Voicemail
*97 – My Voicemail

2022年12月2日 星期五

老毛子Padavan 印表機分享(HP1020)

下載HP1020驅動並上傳至路由器,

http://oleg.wl500g.info/hplj/

或是telent至路由器,wget去下載HP1020驅動至 /etc/storage/。

wget http://oleg.wl500g.info/hplj/sihp1020.dl



編輯腳本,添加下面這一行‧

cat /etc/storage/sihp1020.dl > /dev/usb/lp0




2015年5月22日 星期五

Ubuntu 14.04.2 Server + BIND DNS Server + SIP DNS SRV settings

step 1.

Download Ubuntu Server 14.04.2 and install this system.
http://www.ubuntu.com/download/server


Installation process
To select the “DNS Server” service function.



step 2.

Install Webmin On Ubuntu 14.04 LTS using official repository
Add the webmin official repository:
Edit file /etc/apt/sources.list,

sudo nano /etc/apt/sources.list
 
Add the following lines:
 
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Add the GPG key:
 
sudo wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc

Update the sources list:
 
sudo apt-get update

Install webmin using the following command:
 
sudo apt-get install webmin

Allow the webmin default port “10000” via firewall, if you want to access the webmin console from a remote system.
 
sudo ufw allow 10000

Access Webmin console

Open up your browser and navigate to the URL https://ip-address:10000/. The following screen should appear. Enter the user name and password to log in to webmin console.


step 3.

使用 Webmin方式來設定DNS Server

設定 Bind 8 可以接受外部連線及轉送查詢的伺服器。
「伺服器」->「BIND 8 DNS 伺服器」->「Edit Config File」->/etc/bind/named.conf.options
在此檔中加入
 
listen-on port 53 { any; };
forwarders {
        163.168.168.59;   //base DNS IP
        8.8.8.8;  //google DNS IP

        };
    allow-query {
        any;
        };




設定區域預設值

「伺服器」->「BIND 8 DNS 伺服器」->「區域預設值」
「預設的區域設定」->「允許從 ... 的查詢」點擊「監聽」及輸入 [any]
 






建立一個新的主控區域-正向
輸入管理網域名稱 test.local

 

建立 Address 紀錄(位址)




 增加 Address 紀錄
 

step 4.

使用nslookup指令查詢

nslookup
server "DNS Server IP"
set type=srv
_sip._udp.test.local
 






2015年1月9日 星期五

[Network]IPv6 Support for Http File Server (HFS)

If you want to have access to HFS site via IPV6 you can use next hack:

1. Download relay6 from http://sourceforge.net/projects/relay6/files/
2. Unpack to some folder (e.g. C:\relay6)
3. Start it with next command from cmd


C:\>C:\relay6\relay6.exe 80 127.0.0.1 80 /b:"YourIPv6 Address"


2014年11月4日 星期二

[Linux] Zeroshell RADIUS server + 802.1x Switch + SIP Phone

1. Zeroshell RADIUS server:


login username:admin/password:zeroshell

select RADIUS


add switch Name / IP address / Secret









 
  ------------------------------------------------------------------------------
2. Switch Seting 802.1X :

setting RADUIS Server IP / Port / Secret




 --------------------------------------------------------------------------------
3. IP Phone Seting 802.1X :











SIP Phone setting
Switch :Enable
EAP Method:PEAP or TTLS
Username:admin   (default)
Password:zeroshell   (default)


---------------------------------------------------------------------------------


Zeroshell RADIUS server ISO :
http://www.zeroshell.org/download/

2014年10月27日 星期一

Asterisk 1.7.1 Setting Login



進入root prompt

 1) 輸入 system-config-network,更改network設定, /etc/init.d/network restart

 2) 輸入yum -y update

 3) reboot

4) edit /etc/asterisk/http.conf as follows:
enabled = yes (remove semicolon)
enablestatic = yes (remove semicolon)
bindaddr = 0.0.0.0 (change from 127.0.0.1 to 0.0.0.0 to allow all IP)
prefix = asterisk (you have to put this for Asterisk 1.6)

5) edit /etc/asterisk/manager.conf as follows:

eanbled = yes
webenabled = yes

#add the following lines
[admin]
secret = test
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

 GUI Login name = admin, password(asterisk 叫 secret) = 1234

 6) execute /etc/init.d/asterisk restart

 7) Using an brower with the URL = http://<your_asterisk_server_IP_address>:8088/asterisk/static/config/index.html

 可以看到Asterisk-GUI的界面。

 8) 輸入 username = admin, password = 1234, 就可以Login Asterisk-GUI

[Ubuntu]架IPv6 DHCP Server


sudo apt-get install isc-dhcp-server
1. set a static IPv6 address for the Interface I want to run the DHCPv6 server from that is part of the IPv6 network subnet outside the DHCP range.
2. Edit the /etc/dhcp/dhcpd6.conf file to configure the DHCPv6 range etc.
3. Create the /var/lib/dhcp/dhcpd6.leases
4. Manually start the DHCPv6 server.
----------------------------------------------------------------------------
sudo ifconfig eth0 inet6 add 2001:db8:0:1::128/64

[ configure dhcpd6.conf ]

default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 2001:db8:0:1::/64
{
#Range for clients
range6 2001:db8:0:1::129 2001:db8:0:1::254;
}

touch /var/lib/dhcp/dhcpd6.leases

chown dhcpd:dhcpd /var/lib/dhcp/dhcpd6.leases
sudo dhcpd -6 -f -cf /etc/dhcp/dhcpd6.conf eth0


****************************************************
Can't open /var/lib/dhcp/dhcpd6.leases for append.

sudo chmod 666 /var/lib/dhcp/dhcpd6.leases

[Ubuntu]install miniSIPServer



Download miniSIPServer

Please visit our website to download miniSIPServer. Please pay attention that you MUST download miniSIPServer for Debian/Ubuntu.
If you are working on Ubuntu/Kubuntu desktop, it is quite easy to install miniSIPServer. What you need do is just click ".deb" packages.
Following steps illustrate how to install miniSIPServer on Debian or Ubuntu/Kubuntu server.

 

Install libraries

miniSIPServer requires some libraries. We can get and install them from Debian/Ubuntu official sites directly:

sudo apt-get install gcc g++ libqt4-dev libqtcore4 libqtgui4 libqt4-network libqt4-xml libssl-dev libmysqlclient18 libmysqlclient-dev python-dev

 

Install miniSIPServer

It's assumed we have downloaded “mss_v14_u20.deb” package, then please run following command to install miniSIPServer:

sudo dpkg --install mss_v14_u20.deb

After above steps, you will find all miniSIPServer's files at directory "/opt/sipserver/".
If you are in GUI desktop, you will find miniSIPServer linker at "Internet" category.

 

Run

As you know, if you start GUI desktop, such as Gnome/KDE/Unity, you only need click miniSIPServer linker to start and configure it.You will see its interface is almost same with miniSIPServer for Windows.
If desktop environment is not started, we can run miniSIPServer CLI(command line) version. Please use following command.

/opt/sipserver/msscli&

[ubuntu]Install TFTP Server


sudo apt-get install tftpd-hpa tftp-hpa

sudo gedit /etc/default/tftpd-hpa

####################
#Defaults for tftpd-hpa
TFTP_USERNAME="root"
TFTP_DIRECTORY="/home/takashi/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -s -c --secutre"

####################
PS:/home/takashi/tftpboot 需要自已新增目錄

sudo mkdir /home/takashi/tftpboot

sudo chmod 777 /home/takashi/tftpboot

sudo service tftpd-hpa start

Ubuntu上面直接裝的TFTP server套件不會在開機時執行,精確一點說應該是開機時跑了卻沒有起來。
這是個老毛病,修一下就好。
編輯 /etc/init/tftpd-hpa.conf ,修改它錯誤的初始條件。

#start on runlevel [2345] # the original line which is wrong
start on (filesystem and net-device-up IFACE!=lo)

[Game] Rimworld enable Dev mode (for Mac)

In Finder Press Command+Shift+Dot to open hidden folder /Users/[user name]/Library/Application Support/RimWorld/Config/DevModeDisable Dele...