/l3/users/Mike/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#du -h /var/lib/asterisk/moh/1.gsm
ls -la /var/lib/asterisk/moh/ total 560 drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:12 . drwxr-xr-x 4 asterisk asterisk 4096 Apr 25 09:49 .. -rw-r--r-- 1 root root 276639 Apr 25 10:11 1.gsm -rw-r--r-- 1 root root 276639 Apr 25 10:12 Cheb_Khlaed_-_Aicha_By_LiL-MoH_2012.gsm |
#du -h /var/lib/asterisk/moh/1.gsm
![]() |
#ls -la /var/lib/asterisk/moh/
![]() asterisk Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#mcedit /etc/asterisk/musiconhold.conf
; or a relative path; relative paths are interpreted as being relative ; /var/lib/asterisk. ; NOTE: ; must ensuasterisk. ; this, res ; re that the format modules for any formats you wish directory=/var/lib/asterisk/moh |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux2 (pid = 1509) ... -- SIP/2001-000000b0 is ringing == Spawn extension (gr2, 2008, 1) exited non-zero on 'SIP/rome-000000af' == Using SIP RTP CoS mark 5 -- Executing [3050@gr2:1] Dial("SIP/2222-000000b2", "SIP/rome/3050") in new stack == Using SIP RTP CoS mark 5 -- Called rome/3050 -- SIP/rome-000000b3 is ringing == Spawn extension (gr2, 3050, 1) exited non-zero on 'SIP/2222-000000b2' linux2*CLI> quit Executing last minute cleanups |
#mcedit /etc/asterisk/musiconhold.conf
; 'best' format will be chos8n at 35a 0 35time. 1296 105 0x069 ; ; NOTE: ; If you are not using "autoload" in modules.conf, then you ; must ensure that the format modules for any formats you wish ; ; [default] [ directory=/var/lib/asterisk/moh ... ;directory=/var/lib/asterisk/mohmp3 ;[manual] ; Music on Hold -- Sample Configuration [general] ; disabled by default mode=files directory=/ ;<-----><------> media format ; mp3 <><------>-- loud ; quietmp3nb<-->-- quiet unbuffered |
#mcedit /etc/asterisk/features.conf
;atxferdropcall = no ; If someone does an attended transfer, then hangs u ; person that did the transfer. If this is set to " ;atxferloopdelay = 10 ; Number of seconds to sleep between retries (if atx ; By default, this is 2. ; Note that the DTMF features listed below only work when two channe│ ave answ in combination with Answer to accomplish it. blindxfer => #1>DYNAMIC_; Blind transfer (default is #) -- Make sure to set the ;automon => *1<><------><------>; One Touch Record a.k.a. Touch Monitor -- Make ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the ;blindxfer => #1<------><------>; Blind transfer (default is #) -- Make sure to |
#mcedit /etc/asterisk/features.conf
;automon => *1<><------><------>; One Touch Record a.k.a. Touch Monitor -- Make ;parkcall => => *0<-----><------>; Disconnect (default is *) -- Makeâ [application<--><------><------>; Attended transfer -- Make sure toâââââââââââââââââââââââââââââââââââ ; to allow the channel to use separated by '#'. For example: ; ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) ; ; (Note: The two leading underscores allow these feature settings to be set on |
#mcedit /etc/asterisk/extensions.conf
0 36 52 590 010 0x00A ;exten => _2XXX,1,Answer ;exten => _2XXX,n,Monitor(wav,${MONITOR_FILENAME}m); m - obedenit exten => _2XXX,n,Monitor(gsm,${MONITOR_FILENAME},m); m - obedenit ;exten => _2XXX,n,Dial(SIP/${DB(mobile/${EXTEN})},5); primer raboty s DB ;exten => _2XXX,n,Voicemail(${EXTEN}@default) exten => 8400,n(end),Set(DB(mobile/${CALLERID(num)})=${new_number}) ;exten => 8400,n,Playback(/var/tmp/asterisk/message02) exten => 8400,n(end),Set(DB(mobile/${CALLERID(num)})=${new_number}) 36 22 41 1177 010 0x00A ;exten => 2002,1,Dial(SIP/2002) exten => 2000,1,Playback(demo-thanks) ;exten => _2XXX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${EPOCH}) exten => _2XXX,n,Monitor(gsm,${MONITOR_FILENAME},m); m - obedenit exten => 2008,1,Dial(2001&2222) exten => 2008,1,Dial(2001&2222) exten => _1XXX,1,Dial(SIP/rome/${EXTEN}) ; opisivaem dial plan na udalennoi stan exten => _3XXX,1,Dial(SIP/rome/${EXTEN}) exten => _6XXX,1,Dial(SIP/rome/${EXTEN}) ; marshrutixaciya |
#mcedit /etc/asterisk/sip.conf
53 0 53 693 010 0x00A type=friend host=dynamic allow=ulaw canreinvite=no [2010](local-phone) ;from template adn other user name and ext defaultuser=2010 secret=4321 [2011](local-phone) defaultuser=2011 ... language=ru callgroup=1 type=friend secret=1234 host=dynamic qualify=yes callgroup=1 [2050] type=friend pickupgroup=1 |
#mcedit /etc/asterisk/sip.conf
secret=1234 host=dynamic qualify=yes callgroup=1 [2050] type=friend secret=1234 host=dynamic qualify=yes allow=ulaw,gsm ;razreshit codec |
#mcedit /etc/asterisk/features.conf
<------><------><------><------>; (default is 3 seconds) pickupexten = *8<-eeperr<------>; to indicate a failed transfer ;pickupsoundound = beeperr<---->; to indicate that the pickup failedââ Save file ââââââââââââââââââââââ ;featuredigi ; feature activation (default is 1000 mâ ;atxfernoansall = no ; If someone does an attended transfer, âââââââââââââââââââââââââââââââââââ ; caller is connected, then by default, the system w ; not be attempted and the transfer will just fail. ;atxfercallbackretries = 2 ; Number of times to attempt to send the call back t ; They can not be used while the remote party is ringing or in progress. If you |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: dahdi-source 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 912 kB of archives. After this operation, 1,044 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! dahdi-source Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Fetched 912 kB in 0s (11.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 116066 files and directories currently installed.) Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ... Setting up dahdi-source (1:2.3.0.1+dfsg-2) ... |
#apt-get install linux-headers-2.6.32-5-686
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-common linux-kbuild-2.6.32 Suggested packages: gcc-4.3-locales gcc-4.3-multilib libmudflap0-4.3-dev gcc-4.3-doc libgcc1-dbg libgomp1-dbg libmudflap0-dbg The following NEW packages will be installed: cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-686 linux-headers-2.6.32-5-common linux-kbuild-2.6.32 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 10.6 MB of archives. After this operation, 40.8 MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#apt-get install terminator
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libkeybinder0 python-keybinder The following NEW packages will be installed: libkeybinder0 python-keybinder terminator ... Unpacking terminator (from .../terminator_0.93-1_all.deb) ... Processing triggers for hicolor-icon-theme ... Processing triggers for man-db ... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Setting up libkeybinder0 (0.2.2-2) ... Setting up python-keybinder (0.2.2-2) ... Setting up terminator (0.93-1) ... update-alternatives: using /usr/bin/terminator to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode. Processing triggers for python-support ... |
#mcedit /etc/asterisk/m
![]() manager.conf mgcp.conf modules.conf manager.d/ minivm.conf musiconhold.conf meetme.conf misdn.conf muted.conf |
#mcedit /etc/asterisk/meetme.conf
- 21 4 0 4 105 102 0x066 [general] ;audiobuffers=32<------>; The number of 20ms audio buffers to be used <------><------><------>; when feeding audio frames from non-DAHDI channels <------><------><------>; into the conference; larger numbers will allow <------><------><------>; for the conference to 'de-jitter' audio that arrives <------><------><------>; at different timing than the conference's timing <------><------><------>; source, but can also allow for latency in hearing <------><------><------>; the audio from the speaker. Minimum value is 2, <------><------><------>; maximum value is 32. ... ; to tell them that they've joined too early, rather than telling them ;earlyalert=3600 ; How many seconds before the scheduled end of the conference shoulââ Save file âââââââââââââââââââââ ;endalert=120 [rooms] ; Usage is conf => confno[,pin][,adminpin]<----> ; Note that once a participant has called the conference, a change to the pin ; in the conference and it goes away. When it is created again, it will have ; ;conf => 2345,9938 |