/l3/users/sbond/nt-voip-2011-06/linux8.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 |
|
#!/
![]() /etc/init.d/asterisk restart Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#!/
![]() /etc/init.d/asterisk restart Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#!/
/etc/init.d/asterisk restart Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#!as
asterisk -rvvvvvvvvvvv Asterisk 1.6.2.9-2+squeeze2, 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 ... Name/username Host Dyn Nat ACL Port Status 2401/2401 192.168.108.200 D 5060 Unmonitored 2402/2402 (Unspecified) D 0 Unmonitored kiev/lvov 192.168.107.1 D 5060 Unmonitored paris/lvov 192.168.103.1 D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline] linux8*CLI> exi No such command 'exi' (type 'core show help exi' for other possible commands) linux8*CLI> quit Executing last minute cleanups |
#!v
![]() ; custom -- run a custom application (See examples below) ; ========= ; File-based (native) music on hold ; =========isk/musiconhold.conf" 84L, 2741C ; ; This plays files directly from the specified directory, no external ; processes are required. Files are played in normal sorting order ; (same as a sorted directory listing), and no volume or other ; sound adjustments are available. If the file is available in ; the same format as the channel's codec, then it will be played ; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; ; The path specified can be either an absolute path (starts with '/'), ; or a relative path; relative paths are interpreted as being relative ; to the 'astvarlibdir' in asterisk.conf, which defaults to 3,1 Top |
#!v
; custom -- run a custom application (See examples below) ; ========= ; File-based (native) music on hold ; =========isk/musiconhold.conf" 84L, 2741C ; ; This plays files directly from the specified directory, no external ; processes are required. Files are played in normal sorting order ; (same as a sorted directory listing), and no volume or other ; sound adjustments are available. If the file is available in ; the same format as the channel's codec, then it will be played ; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; ; The path specified can be either an absolute path (starts with '/'), ; or a relative path; relative paths are interpreted as being relative ; to the 'astvarlibdir' in asterisk.conf, which defaults to 3,1 Top |
#!as
asterisk -rvvvvvvvvvvv Asterisk 1.6.2.9-2+squeeze2, 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 ... Name/username Host Dyn Nat ACL Port Status 2401/2401 192.168.108.200 D 5060 Unmonitored 2402/2402 (Unspecified) D 0 Unmonitored kiev/lvov 192.168.107.1 D 5060 Unmonitored paris/lvov 192.168.103.1 D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline] linux8*CLI> exi No such command 'exi' (type 'core show help exi' for other possible commands) linux8*CLI> quit Executing last minute cleanups |
#!v
![]() ; custom -- run a custom application (See examples below) ; ========= ; File-based (native) music on hold ; =========isk/musiconhold.conf" 84L, 2741C ; ; This plays files directly from the specified directory, no external ; processes are required. Files are played in normal sorting order ; (same as a sorted directory listing), and no volume or other ; sound adjustments are available. If the file is available in ; the same format as the channel's codec, then it will be played ; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; ; The path specified can be either an absolute path (starts with '/'), ; or a relative path; relative paths are interpreted as being relative ; to the 'astvarlibdir' in asterisk.conf, which defaults to 3,1 Top |
#!v
; custom -- run a custom application (See examples below) ; ========= ; File-based (native) music on hold ; =========isk/musiconhold.conf" 84L, 2741C ; ; This plays files directly from the specified directory, no external ; processes are required. Files are played in normal sorting order ; (same as a sorted directory listing), and no volume or other ; sound adjustments are available. If the file is available in ; the same format as the channel's codec, then it will be played ; without transcoding (same as Playback would do in the dialplan). ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; ; The path specified can be either an absolute path (starts with '/'), ; or a relative path; relative paths are interpreted as being relative ; to the 'astvarlibdir' in asterisk.conf, which defaults to 3,1 Top |
#ls /var/tmp/asterisk/
![]() record02.gsm record04.gsm record06.gsm record08.gsm record10.gsm record12.gsm record14.gsm record22.gsm ru record03.gsm record05.gsm record07.gsm record09.gsm record11.gsm record13.gsm record15.gsm record55.gsm uk |
#ls /var/tmp/asterisk/
record02.gsm record04.gsm record06.gsm record08.gsm record10.gsm record12.gsm record14.gsm record22.gsm ru record03.gsm record05.gsm record07.gsm record09.gsm record11.gsm record13.gsm record15.gsm record55.gsm uk |
#[ ]
![]() exten => _24XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _24XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLERID(num)}) exten => _24XX,n,Dial(SIP/${EXTEN},10,m) exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})),10,m) ;zvonok na mobilniy c vnutrennii asterisk DB exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call) ( ) exten => _24XX,n,GotoIf()["${DIALSTATUS}" = "NOANSWER"]?missed_call) ( exten => _24)X,n,Hangup() D(num)}) II ... [gr2] [gr2] ( ) include => national [gr2] [gr3] [gr3] [gr3] include => local include => national include => internal 186,1 96% |
#[ ]
![]() exten => s,1,Background(/var/tmp/asterisk/record11) exten => s,n,WaitExten(5) exten => s,n,Goto(system-menu,s,1) ;exten => 1234,1,Background(/var/tmp/asterisk/record11) exten => 1234,1,System(touch /tm/asteriskovskiy-fail) exten => 1234,n,GotoIf($[${SYSTEMSTATUS} = SUCCESS]?success) exten => 1234,n,Playback(/var/tmp/asterisk/record13) ; voznikla oshibka pri vypolnenii operacii [local]> 1234,n,Hangup ;-----------------------------------LOCAL DIALPLANk/record14) ; operaciya vypolnena uspeshno exten => _24XX,1,Answer ... [gr2] ( ) include => national [gr2] [gr3] [gr3] [gr3] include => local include => national include => internal 186,1 96% exten => _24XX,n,Hangup() |
#[ ]
![]() exten => _24XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _24XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLERID(num)}) exten => _24XX,n,Dial(SIP/${EXTEN},10,m) exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})),10,m) ;zvonok na mobilniy c vnutrennii asterisk DB exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call) ( ) exten => _24XX,n,GotoIf()["${DIALSTATUS}" = "NOANSWER"]?missed_call) ( exten => _24)X,n,Hangup() D(num)}) II ... [gr2] [gr2] ( ) include => national [gr2] [gr3] [gr3] [gr3] include => local include => national include => internal 186,1 96% |
#[ ]
exten => s,1,Background(/var/tmp/asterisk/record11) exten => s,n,WaitExten(5) exten => s,n,Goto(system-menu,s,1) ;exten => 1234,1,Background(/var/tmp/asterisk/record11) exten => 1234,1,System(touch /tm/asteriskovskiy-fail) exten => 1234,n,GotoIf($[${SYSTEMSTATUS} = SUCCESS]?success) exten => 1234,n,Playback(/var/tmp/asterisk/record13) ; voznikla oshibka pri vypolnenii operacii [local]> 1234,n,Hangup ;-----------------------------------LOCAL DIALPLANk/record14) ; operaciya vypolnena uspeshno exten => _24XX,1,Answer ... [gr2] ( ) include => national [gr2] [gr3] [gr3] [gr3] include => local include => national include => internal 186,1 96% exten => _24XX,n,Hangup() |
#vim /etc/asterisk/mo
![]() |
#vim /etc/asterisk/mobilebd
![]() |
#vim /etc/asterisk/mo
![]() |
#vim /etc/asterisk/mobilebd
![]() |
#vim /etc/asterisk/mo
![]() |
#vim /etc/asterisk/mobilebd
![]() --- /tmp/l3-saved-22920.264.1756 2011-06-24 09:19:21.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-24 09:20:47.000000000 +0300 @@ -147,8 +147,8 @@ exten => _24XX,n,Set(MON_FILENAME=record-${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}) exten => _24XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _24XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLERID(num)}) -exten => _24XX,n,Dial(SIP/${EXTEN},10,m) -exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})),10,m) ;zvonok na mobilniy c vnutrennii asterisk DB +exten => _24XX,n,Dial(SIP/${EXTEN},10) +exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})),10) ;zvonok na mobilniy c vnutrennii asterisk DB exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call) exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?missed_call) exten => _24XX,n,Hangup() |
#vim /etc/asterisk/mo
![]() |
#vim /etc/asterisk/mobilebd
|
#include => international
![]() ;-------------MY MOBILE exten => _380.,1,Dial(SIP/kiev/${EXTEN},10) [gr1] include => internal include => local [gr2] include => internal include => local include => national [gr3] include => internal include => local include => national |
#include => international
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10) [international] ;----------RUSSIA exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10) ;----------USA exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10) ;----------FRANCE ;exten => _[13][31]XX,1,Dial(SIP/kiev/${EXTEN},10) exten => _[13][31]XX,1,Dial(SIP/paris/${EXTEN},10) ;-------------MY MOBILE ... include => internal include => local [gr2] include => internal include => local include => national [gr3] include => internal include => local include => national |
#include => international
![]() Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux8 (pid = 19127) ... -- Remote UNIX connection disconnected == Using SIP RTP CoS mark 5 -- Executing [8402@gr3:1] Read("SIP/2402-00000031", "redirector,/var/tmp/asterisk/record100") in new stack [Jun 24 09:45:07] WARNING[21344]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/record100 does not exist in any format [Jun 24 09:45:07] WARNING[21344]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/record100 (format 0x4 (ulaw)): No such file or directory -- User disconnected -- Executing [8402@gr3:2] Set("SIP/2402-00000031", "DB(mobile/2402)=") in new stack -- Auto fallthrough, channel 'SIP/2402-00000031' status is 'UNKNOWN' linux8*CLI> exit Executing last minute cleanups |
#include => international
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux8 (pid = 19127) ... -- Remote UNIX connection disconnected == Using SIP RTP CoS mark 5 -- Executing [8402@gr3:1] Read("SIP/2402-00000031", "redirector,/var/tmp/asterisk/record100") in new stack [Jun 24 09:45:07] WARNING[21344]: file.c:650 ast_openstream_full: File /var/tmp/asterisk/record100 does not exist in any format [Jun 24 09:45:07] WARNING[21344]: file.c:953 ast_streamfile: Unable to open /var/tmp/asterisk/record100 (format 0x4 (ulaw)): No such file or directory -- User disconnected -- Executing [8402@gr3:2] Set("SIP/2402-00000031", "DB(mobile/2402)=") in new stack -- Auto fallthrough, channel 'SIP/2402-00000031' status is 'UNKNOWN' linux8*CLI> exit Executing last minute cleanups |
#~
![]() ;----------USA exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10) ;----------FRANCE ;exten => _[13][31]XX,1,Dial(SIP/kiev/${EXTEN},10) exten => _[13][31]XX,1,Dial(SIP/paris/${EXTEN},10) ;-------------MY MOBILE exten => _380.,1,Dial(SIP/kiev/${EXTEN},10) [gr1] [gr1] include => local ... exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} Propuschennij zvonok s ${CALLERII D(num)}) exten => _24XX,n,Wait(1) exten => _24XX,n(voicemail),Voicemail(${EXTEN}@default) [ ] () [ ] [ ] [ ] ] [ ] "extensions.conf" 206L, 6720C written |
#~
![]() [internal] ;-----------Test Asterisk exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) exten => _81.,1,Wait(1) exten => _81.,n,Say(${EXTEN}) ;-----------VOICEMAIL ;-----------general Voicemail exten => 8100,1,VoicemailMain() ;-----------personal Voicemail ... exten => _380.,1,Dial(SIP/kiev/${EXTEN},10) [ ] [gr1] [gr1] "extensions.conf" 206L, 6720C written exten => _24XX,n,Hangup() exten => _24XX,n,Hangup() ;exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger Propuschennyi vyzov s ${CAL ;LERID(num)}) exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} Propuschennij zvonok s ${CALLERII |
#~
![]() exten => s,1,Background(/var/tmp/asterisk/record11) exten => _24XX,1,Answer ;exten => _24XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLER ID(num)}) exten => _24XX,n,Set(MON_FILENAME=record-${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}) exten => _24XX,n,Monitor(wav,${MON_FILENAME},m) ;exten => _24XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLERID(num)}) exten => _24XX,n,Dial(SIP/${EXTEN},10) exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})),10) ;zvonok na mobilniy c vnutrennii asterisk DB exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call) exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?missed_call) ... exten => _380.,1,Dial(SIP/kiev/${EXTEN},10) [ ] [gr1] [gr1] "extensions.conf" 206L, 6720C written exten => _24XX,n,Hangup() exten => _24XX,n,Hangup() ;exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger Propuschennyi vyzov s ${CAL ;LERID(num)}) exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} Propuschennij zvonok s ${CALLERII |
#~
[international] [ ] exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10) ;----------USA exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10) ;----------FRANCE ;exten => _[13][31]XX,1,Dial(SIP/kiev/${EXTEN},10) exten => _[13][31]XX,1,Dial(SIP/paris/${EXTEN},10) ;-------------MY MOBILE exten => _380.,1,Dial(SIP/kiev/${EXTEN},10) ... exten => _24XX,n,Wait(1) exten => _24XX,n(voicemail),Voicemail(${EXTEN}@default) [ ] () [ ] [ ] [ ] ] [ ] [gr1] [gr1] "extensions.conf" 206L, 6720C written |
#!v
![]() exten => 8000,n,Playback(demo-congrats) exten => _81.,1,Wait(1) exten => _81.,n,Say(${EXTEN}) ;-----------VOICEMAIL ;-----------general Voicemail exten => 8100,1,VoicemailMain() ;-----------personal Voicemail exten => _81XX,n,VoicemailMain(24${EXTEN:2}@default) ;-----------IVR RECORD exten => _82XX,1,Wait(1)s.conf" 206L, 6720C ... [national] [ ] [--------]--Kiev exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10) "extensions.conf" 207L, 6724C written exten => _24XX,n,Hangup() exten => _24XX,n,Hangup() ;exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger Propuschennyi vyzov s ${CAL ;LERID(num)}) exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger ${DB(jid/${EXTEN})} Propuschennij zvonok s ${CALLERII |
#!v
![]() exten => _24XX,n,SetMusicOnHold(${DB(moh/${EXTEN})}) exten => _24XX,n,Dial(SIP/e{EXTEN}/${)B(mobile/${EXTEN})),10) ;zvonok na mobilniy c vnutrennii asterisk DB ( B( {EXTEN})) exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call) exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?missed_call) ( exten (num)4)X,n,Hangup() D(num)}) ;exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger Propuschennyi vyzov s ${CAL exten => _24XX,n,Wait(1) ( ) 4XX,n,Wait(1) exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})},10,m) exten => 2403,1,Dial(SIP/2401&SIP/2402,10) ;exten => _24XX,n,Playback(demo-congrats) [national] [ ] [--------]--Kiev exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10) "extensions.conf" 207L, 6724C written |
#!v
![]() exten => _24XX,n,SetMusicOnHold(${DB(moh/${EXTEN})}) exten => _24XX,n,Dial(SIP/e{EXTEN}/${)B(mobile/${EXTEN})),10) ;zvonok na mobilniy c vnutrennii asterisk DB ( B( {EXTEN})) exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?missed_call) exten => _24XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?missed_call) ( exten (num)4)X,n,Hangup() D(num)}) ;exten => _24XX,n(missed_call),System(/usr/local/bin/asterisk-jabber-logger Propuschennyi vyzov s ${CAL exten => _24XX,n,Wait(1) ( ) 4XX,n,Wait(1) exten => _24XX,n,Dial(SIP/external/${DB(mobile/${EXTEN})},10,m) exten => 2403,1,Dial(SIP/2401&SIP/2402,10) ;exten => _24XX,n,Playback(demo-congrats) [national] [ ] [--------]--Kiev exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10) "extensions.conf" 207L, 6724C written |