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

2025年8月29日 星期五

[python]pip install fcntl (Win10)

建立一個 fcntl.py文件,
並將其存放Python的安装路徑Lib目錄下,

C:\Users\[name]\AppData\Local\Programs\Python\Python311\Lib


fcntl.py

=============================
def fcntl(fd, op, arg=0):
    return 0

def ioctl(fd, op, arg=0, mutable_flag=True):
    if mutable_flag:
        return 0
    else:
        return ""

def flock(fd, op):
    return

def lockf(fd, operation, length=0, start=0, whence=0):
    return
=============================

2024年3月31日 星期日

Ubuntu Libreoffice add Chinese language

 
sudo apt-get install libreoffice sudo apt-get install libreoffice-l10n-zh-tw libreoffice-help-zh-tw
 
如要新增簡體中文則輸入下方指令:
sudo apt-get install libreoffice-l10n-zh-cn libreoffice-help-zh-cn
 
 

2024年2月27日 星期二

Krita Install multi-language



Terminal command:


sudo apt install krita-l10n

2023年11月26日 星期日

[Ubuntu]install rtl88x2bu driver

Ubuntu 22.04 install rtl88x2bu driver:

sudo apt update
sudo apt install git dkms build-essential

git clone https://github.com/cilynx/rtl88x2bu.git

cd rtl88x2bu

VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)

sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

2023年7月27日 星期四

Ibus 加入嘸蝦米輸入法

基於Ibus輸入法框架

步驟一:安裝Rime輸入法套件

sudo apt install ibus-rime


步驟二:設置Rime輸入法

開啟IBus偏好設定,並加入Rime。



步驟三:部署Rime輸入法

切換輸入法到Rime,並點選輸入法Icom,選擇『部署』




步驟四:加入嘸蝦米字根
除了 README.md 外的所有檔案放到該路徑底下 ~/.config/ibus/rime/

引用Github amoshyc的連接
https://github.com/amoshyc/myliu


步驟五:重新部署Rime輸入法
重新部署Rime輸入法即可。

安裝Evolution和設定Office 365郵件帳戶

安裝Evolution 指令:

sudo apt-get remove evolution
sudo apt-get update
sudo apt-get install evolution
sudo apt-get install evolution-ews

設定Office 365郵件帳戶:

新增O365郵件帳戶--

Host URL:
https://outlook.office365.com/EWS/Exchange.asmx

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

Authentication:
OAuth2(office365)

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

Overide Office365 OAuth2 Settings (勾選)

2023年2月13日 星期一

Ubuntu 22.04找不到ttyUSB0

接上CH340 USB serial時,

使用gtkterm或putty 系統找不到ttyUSB0 。

移除下列

sudo apt remove brltty
 

並重新開機即可。


2023年1月10日 星期二

小米路由 R2D 修改Samba支援WAN

一、編輯

vi /etc/config/firewall


config zone

option name 'wan'

option network 'wan'

修改 option input ‘ACCEPT


新增rule如下:
config rule
option name 'Open Samba on WAN'
option src 'wan'
option proto 'tcp udp'
option dest_port '137 139 445'
option target 'ACCEPT'

config redirect
option name 'wan samba'
option src 'wan'
option src_dport '137 139 445'
option dest 'lan'
option proto 'tcp udp'

================================================
二、編輯
vi /etc/samba/smb.conf.template

修改 interfaces = br-lan wan
        #bind interfaces yes

以上修改完,重開機即可。

2022年12月13日 星期二

小米路由 R2D 簡易修改Samba設置

如果只修改 /etc/samba/samba.conf

重啟後便會失效。

因此修改 /etc/init.d/samba

vi /etc/init.d/samba

找到[homes] 下方,新增二筆[HDD-disk] [USB-disk]

===========================

[homes]

comment = Home Directories
browsable = no
read only = no
create mode = 0750

[HDD-disk]                                                                      
        path = /userdisk/data                                                   
        read only = no                                                          
        guest ok = yes                                                          
        create mask = 0777                                                      
        directory mask = 0777                                                   
        browseable = yes                                                        
        force user = root                                                       
[USB-disk]                                                                      
        path = /extdisks/                                                   
        read only = no                                                          
        guest ok = yes                                                          
        create mask = 0777                                                      
        directory mask = 0777                                                   
        browseable = yes                                                        
        force user = root 

=============================

重啟Samba
/etc/init.d/samba restart

此時Samba磁碟就會出現HDD-disk和USB-disk資料夾。
可以探訪編輯硬碟所有資料。










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