Журнал лабораторных работ

Содержание

Журнал

Понедельник (11/18/13)

/dev/pts/1
16:32:28
#joe extensions.conf
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File extensions.conf saved
16:32:35
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
[Nov 18 17:38:09] NOTICE[4248]: channel.c:4170 __ast_read: Dropping incompatible voice frame on SIP/3102-00000002 of format ulaw since our native format has changed to 0x80002 (gsm|h263)
  == Spawn extension (default, 4000, 2) exited non-zero on 'SIP/3102-00000002'
  == Using SIP RTP CoS mark 5
    -- Executing [4000@default:1] Answer("SIP/3102-00000003", "") in new stack
    -- Executing [4000@default:2] Playback("SIP/3102-00000003", "demo-thanks") in new stack
    -- <SIP/3102-00000003> Playing 'demo-thanks.gsm' (language 'en')
[Nov 18 17:42:37] NOTICE[4290]: channel.c:4170 __ast_read: Dropping incompatible voice frame on SIP/3102-00000003 of format ulaw since our native format has changed to 0x80002 (gsm|h263)
    -- Auto fallthrough, channel 'SIP/3102-00000003' status is 'UNKNOWN'
debian*CLI> exit
Executing last minute cleanups
прошло 12 минут
16:45:18
#cd /tmp/

16:45:27
#ll
l3script: ll: command not found
16:45:28
#ls
orbit-alex  pulse-gFgQqDh4ajMk  pulse-LCZX9g0ZaqvD  ssh-ytaTz7zUcwH2  tracker-alex
16:45:36
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
3101/3101                  192.168.15.208                           D   N             5060     Unmonitored
3102/3102                  192.168.15.214                           D   N             64599    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.15.208                           D   N             5060     Unmonitored
3102/3102                  192.168.15.214                           D   N             64599    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian*CLI> exit
Executing last minute cleanups
16:50:55
#l3-agent
l3-agent is already running: pid=3419; pidfile=/root/.lilalo/l3-agent.pid
16:51:02
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
Verbosity is at least 3
debian*CLI> exit
Executing last minute cleanups
16:56:23
#joe extensions.conf
There is no message buffer
    IW   * Build Log * (Modified)                                                                         Row 1    Col 1    5:56  Ctrl-K H for help
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
Build command:
New File
No modified files, so no updates needed.                                                          *SHELL*
No messages found
Lose changes to this file (y,n,^C)?
File extensions.conf not saved
16:56:41
#cd /etc/asterisk/

16:56:48
#joe asterisk.conf
;timestamp = yes                ; Same as -T at startup.
;execincludes = yes             ; Support #exec in config files.
;console = yes                  ; Run as console (same as -c at startup).
;highpriority = yes             ; Run realtime priority (same as -p at
                                ; startup).
;initcrypto = yes               ; Initialize crypto keys (same as -i at
                                ; startup).
;nocolor = yes                  ; Disable console colors.
;dontwarn = yes                 ; Disable some warnings.
;dumpcore = yes                 ; Dump core on crash (same as -g at startup).
;languageprefix = yes           ; Use the new sound prefix path syntax.
;internal_timing = yes
;systemname = my_system_name    ; Prefix uniqueid with a system name for
                                ; Global uniqueness issues.
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File asterisk.conf not changed so no update needed
16:56:55
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)thanks)
File extensions.conf saved
17:00:11
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
    -- Executing [3101@default:1] Dial("SIP/3102-00000006", "SIP/3101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/3101
    -- SIP/3101-00000007 is ringing
    -- SIP/3101-00000007 answered SIP/3102-00000006
    -- Remotely bridging SIP/3102-00000006 and SIP/3101-00000007
  == Spawn extension (default, 3101, 1) exited non-zero on 'SIP/3102-00000006'
debian*CLI>
debian*CLI> exit
Executing last minute cleanups
17:02:56
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)
exten => _33XX,1,Dial(SIP/3101)
File extensions.conf saved
17:04:13
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
    -- Time to delete the old dialplan: 0.000039 sec
    -- Total time merge_contexts_delete: 0.000967 sec
  == Using SIP RTP CoS mark 5
    -- Executing [3302@default:1] Dial("SIP/3102-00000008", "SIP/3101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/3101
    -- SIP/3101-00000009 is ringing
  == Spawn extension (default, 3302, 1) exited non-zero on 'SIP/3102-00000008'
debian*CLI> exit
Executing last minute cleanups
17:08:43
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)
exten => _3301,1,Dial(SIP/31${EXTEN}:2)
File extensions.conf saved
17:10:37
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
[Nov 18 18:11:47] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:11:49] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:11:53] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
  == Spawn extension (default, 3301, 1) exited non-zero on 'SIP/3102-0000000a'
[Nov 18 18:12:01] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:12:17] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:12:17] WARNING[4149]: chan_sip.c:3656 retrans_pkt: Retransmission timeout reached on transmission 0f2bf4b422ff8be97a3dab9041854e7a@192.16.15.7:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
debian*CLI> exit
Executing last minute cleanups
17:12:20
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)
exten => _33XX,1,Dial(SIP/3101)
exten => _33XX,
exten => _3301,1,Dial(SIP/31${EXTEN:2})
exten => _3301,1,Dial(SIP/31${EXTEN}:2)
File extensions.conf saved
17:13:22
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 4113)
...
    -- Total time merge_contexts_delete: 0.000864 sec
  == Using SIP RTP CoS mark 5
    -- Executing [3301@default:1] Dial("SIP/3102-0000000c", "SIP/3101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/3101
    -- SIP/3101-0000000d is ringing
  == Spawn extension (default, 3301, 1) exited non-zero on 'SIP/3102-0000000c'
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
17:13:46
#halt

Вторник (11/19/13)

/dev/pts/1
09:21:19
#l3-agent

09:21:22
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
09:22:13
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3 currently running on debian (pid = 2233)
...
3101/3101                  192.168.15.208                           D   N             5060     Unmonitored
3102/3102                  (Unspecified)                            D   N             0        Unmonitored
kiev/ottawa                (Unspecified)                            D   N             0        Unmonitored
london/ottawa              (Unspecified)                            D   N             0        Unmonitored
montreal/ottawa            (Unspecified)                            D   N             0        Unmonitored
quebec/ottawa              (Unspecified)                            D   N             0        Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 5 offline]
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 35 минут
/dev/pts/3
09:58:05
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3625.3074.2768	2013-11-19 10:59:16.235262509 +0200
+++ /etc/asterisk/extensions.conf	2013-11-19 11:17:09.563250146 +0200
@@ -3,8 +3,29 @@
 exten => 4000,n,Playback(demo-thanks)
 
 exten => 3101,1,Dial(SIP/3101)
+exten => 3102,1,Dial(SIP/3102)
 
+exten => _32XX,1,Answer
+exten => _32XX,n,Dial(SIP/montreal/${EXTEN})
+
+exten => _33XX,1,Answer
+exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
+
+
+exten => _2XXX,1,Answer
+exten => _2XXX,n,Dial(SIP/london/${EXTEN})
+
+exten => _1XXX,1,Answer
+exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
+
+
+
+
+
+
+
+
+;exten => _33XX,1,Dial(SIP/3101)
+;exten => _3301,1,Dial(SIP/31${EXTEN:2})
 
 
-exten => _33XX,1,Dial(SIP/3101)
-exten => _3301,1,Dial(SIP/31${EXTEN:2})
\ No newline at end of file
/dev/pts/5
09:58:20