К основному контенту

asterisk console

*CLI> core show applications
;Все приложения

*CLI> core show application SMS


-= Info about application 'SMS' =-

[Synopsis]
Communicates with SMS service centres and SMS capable analogue phones

[Description]
SMS(name|[a][s]): SMS handles exchange of SMS data with a call to/from SMS capabale
phone or SMS PSTN service center. Can send and/or receive SMS messages.
Works to ETSI ES 201 912 compatible with BT SMS PSTN service in UK
Typical usage is to use to handle called from the SMS service centre CLI,
or to set up a call using 'outgoing' or manager interface to connect
service centre to SMS()
name is the name of the queue used in /var/spool/asterisk/sms
Arguments:
a: answer, i.e. send initial FSK packet.
s: act as service centre talking to a phone.
Messages are processed as per text file message queues.
smsq (a separate software) is a command to generate message
queues and send messages.


;Показывает инфо по приложению SMS

*CLI> console dial
== Console is full duplex
*CLI> -- Executing [s@default:1] Wait("Console/dsp", "1") in new stack
-- Executing [s@default:2] Answer("Console/dsp", "") in new stack
<< Console call has been answered >>
-- Executing [s@default:3] Set("Console/dsp", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5
-- Executing [s@default:4] Set("Console/dsp", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing [s@default:5] BackGround("Console/dsp", "demo-congrats") in new stack
-- Playing 'demo-congrats' (language 'en')
-- Executing [s@default:6] BackGround("Console/dsp", "demo-instruct") in new stack
-- Playing 'demo-instruct' (language 'en')

;Тестируем астериск голосовые сообщения автоответчика.
;По сообщению можно отвечать console dial ? и вместо ? вставлять число, требуемое для звонка.

Для удалленного доступа к серверу:

$ asterisk -r
Asterisk 1.4.20.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
-- Remote UNIX connection
Connected to Asterisk 1.4.20.1 currently running on sspc (pid = 12722)
Verbosity is at least 3


*CLI> core show uptime
System uptime: 57 minutes, 7 seconds

*CLI> core show version
Asterisk 1.4.20.1 built by root @ sspc.local on a i386 running FreeBSD on 2008-07-06 05:56:09 UTC


*CLI> core show globals
TRUNKMSD=1
TRUNK=Zap/G2
IAXINFO=guest
CONSOLE=Console/dsp

-- 4 variables

Письмецо
From ghost@sspc.local Sun Jul 6 11:03:03 2008
Date: Sun, 06 Jul 2008 11:03:03 +0400
From: Asterisk PBX
To: "Example Mailbox"
Subject: [PBX]: New message 1 in mailbox 1234
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----voicemail_11234127221136414341"


This is a multi-part message in MIME format.

------voicemail_11234127221136414341
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Dear Example Mailbox:

Just wanted to let you know you were just left a 0:10 long message (number 1)
in mailbox 1234 from an unknown caller, on Sunday, July 06, 2008 at 11:03:03 AM so you might
want to check it when you get a chance. Thanks!

--Asterisk

Комментарии

Популярные сообщения из этого блога

Настройка принтера HP Laserjet 1020 в ubuntu (kubuntu).

1. Скачиваем необходимый драйвер с официального сайта. $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz --2010-01-03 11:19:24-- http://foo2zjs.rkkda.com/foo2zjs.tar.gz Преобразование адреса foo2zjs.rkkda.com... 74.208.41.246 Устанавливается соединение с foo2zjs.rkkda.com|74.208.41.246|:80... соединились. Запрос HTTP послан, ожидание ответа... 200 OK Длина: 1588047 (1,5M) [application/x-tar] Сохраняется в каталог: `foo2zjs.tar.gz'. 100%[============================================================================>] 1 588 047 43,0K/s в 55s 2010-01-03 11:20:19 (28,1 KB/s) - `foo2zjs.tar.gz' сохранён [1588047/1588047] 2. Распаковываем полученный архив: tar zxf foo2zjs.tar.gz cd foo2zjs 3. Теперь компилируем и инсталируем. Файл INSTALL содержит много информации и инструкций. Рекомендуется прочитать. $ make # # Dependencies... # # ... OK! ...

rtorrent

#.rtorrent.rc scgi_port = localhost:5000 min_peers = 10 max_peers = 50 max_uploads = 10 download_rate = 2000K upload_rate = 500K directory = /home/torrents/torrents/ session = /home/torrents/torrents/.rtsession schedule = watch_directory,60,60,load_start=/home/torrents/torrents/watch/*.torrent port_range = 7899-7899 port_random = no check_hash = yes peer_exchange = yes

Unix Toolbox

System Running kernel and system information # uname -a # Get the kernel version (and BSD version) # lsb_release -a # Full release info of any LSB distribution # cat /etc/SuSE-release # Get SuSE version # cat /etc/debian_version # Get Debian version Use /etc/DISTR-release with DISTR= lsb (Ubuntu), redhat, gentoo, mandrake, sun (Solaris), and so on. # uptime # Show how long the system has been running + load # hostname # system's host name # hostname -i # Display the IP address of the host. # man hier # Description of the file system hierarchy # last reboot # Show system reboot history Hardware Informations Kernel detected hardware # dmesg # Detected hardware and boot messages # lsdev # information about installed hardware # dd if=/d...