rilpoint_mw113

Asterisk

Содержание

Asterisk

Видео уроки по Asterisk

The Hitchhiker's Guide to Asterisk

extensions.conf

Trixbox - Дистрибутив на базе CentOS c настроенным Asterisk "из коробки"

Соединить два Trixbox

Руководство по Trixbox

Руководство по Trixbox 1.2

Ещё одно руководство по Trixbox 1.x

Настройка TrixBox

Драйверы zaptel

spinlock bug

установка TDM400p

zaptel.conf

zapata.conf

HT488 Trixbox

Голосовая почта

ARI — система голосовой почты для Asterisk

FAX

возможности работы с факсами

пример работы с факсами

Asterfax

Документация по Asterfax

Форматы для конфертирования в факсы

FAX на Zap

куда можно позвонить чтобы проверить факс номера в коде 495 (Москва)

Роутинг входящих факсов

FreePBX:

Inbound Routes > Any DID/Any CID > Fax Handling >
 Fax Extension: system
 Fax Email: manager@yourcompany.ru
 Fax Detection Type: NVFax # или Zaptel если факс приходит по линии Zap
 Pause after answer: 5 # секунд между "поднятием трубки" и запуском голосового меню или звонка на внутренний номер

Музыка

cd /root
wget http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz
tar –zxvf mpg123-0.59r.tar.gz
cd mpg123-0.59r
make linux
make install
ln -s /usr/local/bin/mpg123 /usr/bin/mpg123

Интеграция с Outlook

http://dumbme.voipeye.com.au/trixbox/dialing_through_ms_outlook.htm http://www.kirkhamsystems.com/asttapi — патч для Asterisk 1.2

Звукозапись в Asterisk

; записать речь в файл
exten => 200,1,Wait(2)
exten => 200,2,Record(/tmp/asterisk-recording:gsm)
exten => 200,3,Wait(2)
exten => 200,4,Playback(/tmp/asterisk-recording)
exten => 200,5,Wait(2)
exten => 200,6,Hangup
; проиграть файл
exten => 201,1,Wait(2)
exten => 201,2,Playback(/tmp/asterisk-recording)
exten => 201,3,Wait(2)
exten => 201,4,Hangup

чтобы сориентироваться в GSM файлах, можно их проигрывать с помощью WinAmp, с GSM плугином.

Автоматизация звонков

http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out

Клиенты

http://www.hudlite.org панель оператора с интеграцией в Outlook Для использования необходимо поставить hudserver и hudadmin на сервер.

CLI

   * CLI Commands

General commands !<command>: Executes a given shell command

abort halt: Cancel a running halt

add extension: Add new extension into context

add ignorepat: Add new ignore pattern

add indication: Add the given indication to the country

amportal start: Stop AAH and

amportal stop: Restart AAH.

debug channel: Enable debugging on a channel

dont include: Remove a specified include from context

help: Display help list, or specific help on a command

include context: Include context in other context

load: Load a dynamic module by name

logger reload: Reopen log files. Use after rotating the log files.

no debug channel: Disable debugging on a channel

pri debug span: Enables PRI debugging on a span

pri intense debug span: Enables REALLY INTENSE PRI debugging

pri no debug span: Disables PRI debugging on a span

remove extension: Remove a specified extension

remove ignorepat: Remove ignore pattern from context

remove indication: Remove the given indication from the country

save dialplan: Overwrites your current extensions.conf file with an exported version based on the current state of the dialplan. A backup copy of your old extensions.conf is not saved. The initial values of global variables defined in the [globals] category retain their previous initial values; the current values of global variables are not written into the new extensions.conf. Using "save dialplan" will result in losing any comments in your current extensions.conf. set verbose: Set level of verboseness

show agents: Show status of agents

show applications: Shows registered applications

show application: Describe a specific application

show channel: Display information on a specific channel

show channels: Display information on channels

show codecs: Display information on codecs

show conferences: Show status of conferences

show dialplan: Show dialplan

show image formats: Displays image formats

show indications: - Show a list of all country/indications

show locals: Show status of local channels

show manager command: Show manager commands

show manager connect: Show connected manager users

show parkedcalls: Lists parked calls

show queues: Show status of queues

show switches: Show alternative switches

show translation: Display translation matrix

show voicemail users: List defined voicemail boxes

show voicemail zones: List zone message formats

soft hangup: Request a hangup on a given channel

A.2.2 AGI Commands show agi: Show AGI commands or specific help

dump agihtml: Dumps a list of agi command in html format

A.2.3 Database Handling database del: Removes database key/value

database deltree: Removes database keytree/values

database get: Gets database value

database put: Adds/updates database value

database show: Shows database contents


A.2.4 IAX Channel Commands iax2 debug: Enable IAX debugging

iax2 no debug: Disable IAX debugging

iax2 set jitter: Sets IAX jitter buffer

iax2 show cache: Display IAX cached dialplan

iax2 show channels: Show active IAX channels

iax2 show peers: Show defined IAX peers

iax2 show registry: Show IAX registration status

iax2 show stats: Display IAX statistics

iax2 show users: Show defined IAX users

iax2 trunk debug: Request IAX trunk debug

iax debug: Enable IAX debugging

iax no debug: Disable IAX debugging

iax set jitter: Sets IAX jitter buffer

iax show cache: Display IAX cached dialplan

iax show channels: Show active IAX channels

iax show peers: Show defined IAX peers

iax show registry: Show IAX registration status

iax show stats: Display IAX statistics

iax show users: Show defined IAX users

init keys: Initialize RSA key passcodes

show keys: Displays RSA key information

A.2.5 SIP Channel commands sip debug: Enable SIP debugging

sip no debug: Disable SIP debugging

sip reload: Reload sip.conf (added after 0.7.1 on 2004-01-23)

sip show channels: Show active SIP channels

sip show channel: Show detailed SIP channel info

sip show inuse: List all inuse/limit

sip show peers: Show defined SIP peers (register clients)

sip show registry: Show SIP registration status (when Asterisk registers as a client to a SIP Proxy)

sip show users: Show defined SIP users

A.2.6 Server management restart gracefully: Restart Asterisk gracefully

restart now: Restart Asterisk immediately

restart when convenient: Restart Asterisk at empty call volume

reload: Reload configuration

stop gracefully: Gracefully shut down Asterisk

stop now: Shut down Asterisk immediately

stop when convenient: Shut down Asterisk at empty call volume

extensions reload?: Reload extensions ONLY

unload: Unload a dynamic module by name

show modules: List modules and info about them

show uptime: Show uptime information

show version: Display Asterisk version info


callcenter*CLI> core show help
                            ! Execute a shell command
                   ael reload Reload AEL configuration
ael set debug {read|tokens|mac Enable AEL debugging flags
                 agent logoff Sets an agent offline
                   agent show Show status of agents
            agent show online Show all online agents
                agi dump html Dumps a list of AGI commands in HTML format
                     agi exec Add AGI command to a channel in Async AGI
       agi set debug [on|off] Enable/Disable AGI debugging
    agi show commands [topic] List AGI commands or specific help
              cdr show status Display the CDR status
            channel originate Originate a call
             channel redirect Redirect a call
       channel request hangup Request a hangup on a given channel
        cli check permissions Try a permissions config for a user
       cli reload permissions Reload CLI permissions config
             cli show aliases Show CLI command aliases
         cli show permissions Show CLI permissions
                  config list Show all files that have loaded a configuration file
                config reload Force a reload on modules using a particular configuration file
               console answer Answer an incoming console call
                console boost Sets/displays mic boost in dB
                 console dial Dial an extension on the console
                console flash Flash a call on the console
               console hangup Hangup a call on the console
console {mute|unmute} [toggle] Disable/Enable mic input
            console send text Send text to the remote device
             console transfer Transfer a call to a different extension
             console {device} Generic console command
console {set|show} autoanswer  Sets/displays autoanswer
console {set|show} active [<de Sets/displays active console
          core abort shutdown Cancel a running shutdown
           core clear profile Clear profiling info
      core ping taskprocessor Ping a named task processor
      core restart gracefully Restart Asterisk gracefully
             core restart now Restart Asterisk immediately
 core restart when convenient Restart Asterisk at empty call volume
       core set debug channel Enable/disable debugging on a channel
     core set {debug|verbose} Set level of debug/verbose chattiness
core show applications [like|d Shows registered dialplan applications
        core show application Describe a specific dialplan application
     core show calls [uptime] Display information on calls
core show channels [concise|ve Display information on channels
            core show channel Display information on a specific channel
       core show channeltypes List available channel types
        core show channeltype Give more details on that channel type
core show codecs [audio|video| Displays a list of codecs
              core show codec Shows a specific codec
    core show config mappings Display config mappings (file names to config engines)
       core show file formats Displays file formats
core show file version [like] List versions of files used to build Asterisk
   core show functions [like] Shows registered dialplan functions
           core show function Describe a specific dialplan function
               core show help Display help list, or specific help on a command
              core show hints Show dialplan hints
               core show hint Show dialplan hint
      core show image formats Displays image formats
            core show license Show the license(s) for this copy of Asterisk
            core show profile Display profiling info
           core show settings Show some core settings
           core show switches Show alternative switches
            core show sysinfo Show System Information
     core show taskprocessors List instantiated task processors and statistics
            core show threads Show running threads
core show translation [recalc] Display translation matrix
   core show uptime [seconds] Show uptime information
            core show version Display version info
           core show warranty Show the warranty (if any) for this copy of Asterisk
         core stop gracefully Gracefully shut down Asterisk
                core stop now Shut down Asterisk immediately
    core stop when convenient Shut down Asterisk at empty call volume
                 database del Removes database key/value
             database deltree Removes database keytree/values
                 database get Gets database value
                 database put Adds/updates database value
                database show Shows database contents
             database showkey Shows database contents
              devstate change Change a custom device state
                devstate list List currently known custom device states
       dialplan add extension Add new extension into context
       dialplan add ignorepat Add new ignore pattern
         dialplan add include Include context in other context
               dialplan debug Show fast extension pattern matching data structures
              dialplan reload Reload extensions and *only* extensions
    dialplan remove extension Remove a specified extension
    dialplan remove ignorepat Remove ignore pattern from context
      dialplan remove include Remove a specified include from context
                dialplan save Save dialplan
         dialplan set chanvar Set a channel variable
dialplan set extenpatternmatch Use the Old extension pattern matching algorithm.
dialplan set extenpatternmatch Use the New extension pattern matching algorithm.
          dialplan set global Set global dialplan variable
        dialplan show chanvar Show channel variables
        dialplan show globals Show global dialplan variables
                dialplan show Show dialplan
               dnsmgr refresh Performs an immediate refresh
                dnsmgr reload Reloads the DNS manager configuration
                dnsmgr status Display the DNS manager status
          dundi flush [stats] Flush DUNDi cache
                 dundi lookup Lookup a number in DUNDi
               dundi precache Precache a number in DUNDi
                  dundi query Query a DUNDi EID
     dundi set debug {on|off} Enable/Disable DUNDi debugging
          dundi show entityid Display Global Entity ID
          dundi show mappings Show DUNDi mappings
dundi show peers [registered|i Show defined DUNDi peers
              dundi show peer Show info on a specific DUNDi peer
          dundi show precache Show DUNDi precache
          dundi show requests Show DUNDi requests
             dundi show trans Show active DUNDi transactions
 dundi store history {on|off} Enable/Disable DUNDi historic records
              features reload Reloads configured features
                features show Lists configured features
                 file convert Convert audio file
          group show channels Display active channels with group(s)
               hangup request <no description available>
                         help <no description available>
             http show status Display HTTP server status
               iax2 provision Provision an IAX device
          iax2 prune realtime Prune a cached realtime lookup
                  iax2 reload Reload IAX configuration
 iax2 set debug {on|off|peer} Enable/Disable IAX debugging
   iax2 set debug jb {on|off} Enable/Disable IAX jitterbuffer debugging
iax2 set debug trunk {on|off} Enable/Disable IAX trunk debugging
                 iax2 set mtu Set the IAX systemwide trunking MTU
              iax2 show cache Display IAX cached dialplan
   iax2 show callnumber usage Show current entries in IP call number limit table
           iax2 show channels List active IAX channels
           iax2 show firmware List available IAX firmware
           iax2 show netstats List active IAX channel netstats
               iax2 show peer Show details on specific IAX peer
              iax2 show peers List defined IAX peers
       iax2 show provisioning Display iax provisioning
           iax2 show registry Display IAX registration status
              iax2 show stats Display IAX statistics
            iax2 show threads Display IAX helper thread info
       iax2 show users [like] List defined IAX users
            iax2 test losspct Set IAX2 incoming frame loss percentage
              iax2 unregister Unregister (force expiration) an IAX2 peer from the registry
               indication add Add the given indication to the country
            indication remove Remove the given indication from the country
              indication show Display a list of all countries/indications
          local show channels List status of local channels
                  logger mute Toggle logging output to a console
                logger reload Reopens the log files
                logger rotate Rotates and reopens the log files
             logger set level Enables/Disables a specific logging level for this console
         logger show channels List configured log channels
               manager reload Reload manager configurations
   manager set debug [on|off] Show, enable, disable debugging of the manager code
         manager show command Show a manager interface command
        manager show commands List manager interface commands
       manager show connected List connected manager interface users
          manager show eventq List manager interface queued events
           manager show users List configured manager users
            manager show user Display information on a specific manager user
          mgcp audit endpoint Audit specified MGCP endpoint
                  mgcp reload Reload MGCP configuration
      mgcp set debug {on|off} Enable/Disable MGCP debugging
          mgcp show endpoints List defined MGCP endpoints
         minivm list accounts List defined mini-voicemail boxes
        minivm list templates List message templates
            minivm list zones List zone message formats
                minivm reload Reload Mini-voicemail configuration
         minivm show settings Show mini-voicemail general settings
            minivm show stats Show some mini-voicemail statistics
mixmonitor {start|stop} {<chan Execute a MixMonitor command
                  module load Load a module by name
                module reload Reload configuration
           module show [like] List modules and info
                module unload Unload a module by name
                   moh reload Reload MusicOnHold
             moh show classes List MusicOnHold classes
               moh show files List MusicOnHold file-based classes
             no debug channel Disable debugging on channel(s)
                    originate <no description available>
             parkedcalls show List currently parked calls
        phoneprov show routes Show registered phoneprov http routes
       pri intense debug span <no description available>
             queue add member Add a channel to a specified queue
queue reload {parameters|membe Reload queues, members, queue rules, or parameters
          queue remove member Removes a channel from a specified queue
            queue reset stats Reset statistics for a queue
            queue set penalty Set penalty for a channel of a specified queue
                   queue show Show status of a specified queue
 queue {pause|unpause} member Pause or unpause a queue member
             queue show rules Show the rules defined in queuerules.conf
             realtime destroy Delete a row from a RealTime database
                realtime load Used to print out RealTime variables.
               realtime store Store a new row into a RealTime database
              realtime update Used to update RealTime variables.
             realtime update2 Used to test the RealTime update2 method
                       reload <no description available>
   rtcp set debug {on|off|ip} Enable/Disable RTCP debugging
      rtcp set stats {on|off} Enable/Disable RTCP stats
    rtp set debug {on|off|ip} Enable/Disable RTP debugging
           say load [new|old] Set or show the say mode
                   sip notify Send a notify packet to a SIP peer
sip prune realtime [peer|all] Prune cached Realtime users/peers
             sip qualify peer Send an OPTIONS packet to a peer
                   sip reload Reload SIP configuration
sip set debug {on|off|ip|peer} Enable/Disable SIP debugging
     sip set history {on|off} Enable/Disable SIP history
sip show {channels|subscriptio List active SIP channels or subscriptions
        sip show channelstats List statistics for active SIP channels
             sip show channel Show detailed SIP channel info
             sip show domains List our local SIP domains
             sip show history Show SIP dialog history
               sip show inuse List all inuse/limits
                 sip show mwi Show MWI subscriptions
             sip show objects List all SIP object allocations
               sip show peers List defined SIP peers
                sip show peer Show details on specific SIP peer
            sip show registry List SIP registration status
               sip show sched Present a report on the status of the sched queue
            sip show settings Show SIP global settings
                 sip show tcp List TCP Connections
               sip show users List defined SIP users
                sip show user Show details on specific SIP user
               sip unregister Unregister (force expiration) a SIP peer from the registry
                skinny reload Reload Skinny config
                 skinny reset Reset Skinny device(s)
    skinny set debug {off|on} Enable/Disable Skinny debugging
          skinny show devices List defined Skinny devices
           skinny show device List Skinny device information
  skinny show lines [verbose] List defined Skinny lines per device
             skinny show line List Skinny line information
         skinny show settings List global Skinny settings
      stun set debug {on|off} Enable/Disable STUN debugging
                  timing test Run a timing test
  udptl set debug {on|off|ip} Enable/Disable UDPTL debugging
                       ulimit Set or show process resource limits
               unistim reload Reload UNISTIM configuration
          unistim send packet Send packet (for reverse engineering)
   unistim set debug {on|off} Toggle UNITSTIM debugging
            unistim show info Show UNISTIM info
             voicemail reload Reload voicemail configuration
         voicemail show users List defined voicemail boxes
         voicemail show zones List zone message formats

Диагностика

calls*CLI> zap show status
Description                              Alarms     IRQ        bpviol     CRC4  
OpenVox A1200P Board 1                   OK         0          0          0     
calls*CLI>
calls*CLI> zap show channels
   Chan Extension  Context         Language   MusicOnHold
 pseudo            from-zap
      4            voip-in
      5            voip-in
      6            internal
      7            from-zap
calls*CLI>
calls*CLI> sip show channels
Peer             User/ANR    Call ID      Seq (Tx/Rx)  Form  Hold     Last  
Message
192.168.1.100    501         0c4e6bcf615  00102/00000  ulaw  No       Tx: ACK
192.168.1.106    201         1ed492e26a7  00101/00002  ulaw  No       Rx: ACK
2 active SIP channels
calls*CLI> show codecs
Disclaimer: this command is for informational purposes only.
        It does not indicate anything about your configuration.
        INT    BINARY        HEX   TYPE    NAME   DESC
--------------------------------------------------------------------------------
          1 (1 <<  0)      (0x1)  audio    g723   (G.723.1)
          2 (1 <<  1)      (0x2)  audio     gsm   (GSM)
          4 (1 <<  2)      (0x4)  audio    ulaw   (G.711 u-law)
          8 (1 <<  3)      (0x8)  audio    alaw   (G.711 A-law)
         16 (1 <<  4)     (0x10)  audio    g726   (G.726)
         32 (1 <<  5)     (0x20)  audio   adpcm   (ADPCM)
         64 (1 <<  6)     (0x40)  audio    slin   (16 bit Signed Linear PCM)
        128 (1 <<  7)     (0x80)  audio   lpc10   (LPC10)
        256 (1 <<  8)    (0x100)  audio    g729   (G.729A)
        512 (1 <<  9)    (0x200)  audio   speex   (SpeeX)
       1024 (1 << 10)    (0x400)  audio    ilbc   (iLBC)
      65536 (1 << 16)  (0x10000)  image    jpeg   (JPEG image)
     131072 (1 << 17)  (0x20000)  image     png   (PNG image)
     262144 (1 << 18)  (0x40000)  video    h261   (H.261 Video)
     524288 (1 << 19)  (0x80000)  video    h263   (H.263 Video)
    1048576 (1 << 20) (0x100000)  video   h263p   (H.263+ Video)
calls*CLI> sip show users
Username     Secret           Accountcode      Def.Context      ACL  NAT
voip1                                          from-sip-extern  No   RFC3581
voip2                                          voip-in          No   RFC3581
599          599                               internal         No   No
598          598                               internal         No   RFC3581
704          704                               internal         No   Always
703          703                               internal         No   Always
core set verbose 0
sip set debug on
Источник — «http://www.openwiki.ru/wiki/Asterisk»