/l3/users/2014-11-nt-voip/nt-voip/debian5/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:11:51] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:11:51] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.001701 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000076 sec -- Total time merge_contexts_delete: 0.001782 sec == Using SIP RTP CoS mark 5 [Nov 25 12:13:44] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> exit |
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.001701 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000076 sec -- Total time merge_contexts_delete: 0.001782 sec == Using SIP RTP CoS mark 5 [Nov 25 12:13:44] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:14:01] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 12:14:01] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_config -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001554 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000062 sec -- Total time merge_contexts_delete: 0.001621 sec debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_config -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001554 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000062 sec -- Total time merge_contexts_delete: 0.001621 sec debian5*CLI> exit |
#less /etc/asterisk/extensions.conf
|
#less /etc/asterisk/extensions
|
#less /etc/asterisk/extension
|
#ls /etc/asterisk/
adsi.conf codecs.conf modules.conf agents.conf console.conf musiconhold.conf ais.conf dbsep.conf muted.conf alarmreceiver.conf dnsmgr.conf osp.conf alsa.conf dsp.conf oss.conf amd.conf dundi.conf phone.conf app_mysql.conf enum.conf phoneprov.conf asterisk.adsi extconfig.conf queuerules.conf asterisk.conf extension.conf queues.conf calendar.conf extensions.ael res_config_mysql.conf ... cel_odbc.conf indications.conf sip_notify.conf cel_pgsql.conf jabber.conf skinny.conf cel_sqlite3_custom.conf jingle.conf sla.conf cel_tds.conf logger.conf smdi.conf chan_dahdi.conf manager.conf telcordia-1.adsi chan_mobile.conf manager.d udptl.conf chan_ooh323.conf meetme.conf unistim.conf cli_aliases.conf mgcp.conf users.conf cli.conf minivm.conf voicemail.conf cli_permissions.conf misdn.conf vpb.conf |
#ls /etc/asterisk/
adsi.conf codecs.conf modules.conf agents.conf console.conf musiconhold.conf ais.conf dbsep.conf muted.conf alarmreceiver.conf dnsmgr.conf osp.conf alsa.conf dsp.conf oss.conf amd.conf dundi.conf phone.conf app_mysql.conf enum.conf phoneprov.conf asterisk.adsi extconfig.conf queuerules.conf asterisk.conf extension.conf queues.conf calendar.conf extensions.ael res_config_mysql.conf ... cel_odbc.conf indications.conf sip_notify.conf cel_pgsql.conf jabber.conf skinny.conf cel_sqlite3_custom.conf jingle.conf sla.conf cel_tds.conf logger.conf smdi.conf chan_dahdi.conf manager.conf telcordia-1.adsi chan_mobile.conf manager.d udptl.conf chan_ooh323.conf meetme.conf unistim.conf cli_aliases.conf mgcp.conf users.conf cli.conf minivm.conf voicemail.conf cli_permissions.conf misdn.conf vpb.conf |
#ls /etc/asterisk/
adsi.conf codecs.conf modules.conf agents.conf console.conf musiconhold.conf ais.conf dbsep.conf muted.conf alarmreceiver.conf dnsmgr.conf osp.conf alsa.conf dsp.conf oss.conf amd.conf dundi.conf phone.conf app_mysql.conf enum.conf phoneprov.conf asterisk.adsi extconfig.conf queuerules.conf asterisk.conf extensions.ael queues.conf calendar.conf extensions.conf res_config_mysql.conf ... cel_odbc.conf indications.conf sip_notify.conf cel_pgsql.conf jabber.conf skinny.conf cel_sqlite3_custom.conf jingle.conf sla.conf cel_tds.conf logger.conf smdi.conf chan_dahdi.conf manager.conf telcordia-1.adsi chan_mobile.conf manager.d udptl.conf chan_ooh323.conf meetme.conf unistim.conf cli_aliases.conf mgcp.conf users.conf cli.conf minivm.conf voicemail.conf cli_permissions.conf misdn.conf vpb.conf |
#ls /etc/asterisk/
adsi.conf codecs.conf modules.conf agents.conf console.conf musiconhold.conf ais.conf dbsep.conf muted.conf alarmreceiver.conf dnsmgr.conf osp.conf alsa.conf dsp.conf oss.conf amd.conf dundi.conf phone.conf app_mysql.conf enum.conf phoneprov.conf asterisk.adsi extconfig.conf queuerules.conf asterisk.conf extensions.ael queues.conf calendar.conf extensions.conf res_config_mysql.conf ... cel_odbc.conf indications.conf sip_notify.conf cel_pgsql.conf jabber.conf skinny.conf cel_sqlite3_custom.conf jingle.conf sla.conf cel_tds.conf logger.conf smdi.conf chan_dahdi.conf manager.conf telcordia-1.adsi chan_mobile.conf manager.d udptl.conf chan_ooh323.conf meetme.conf unistim.conf cli_aliases.conf mgcp.conf users.conf cli.conf minivm.conf voicemail.conf cli_permissions.conf misdn.conf vpb.conf |
#ls /etc/asterisk/ | grep exten*
extensions.conf.bak:; load after the extensions.ael file (where the global vars are stored). |
#ls /etc/asterisk/ | grep exten*
extensions.conf.bak:; load after the extensions.ael file (where the global vars are stored). |
#ls /etc/asterisk/ | grep exten
extensions.ael extensions.conf extensions.conf.bak extensions.lua extensions_minivm.conf |
#ls /etc/asterisk/ | grep exten
extensions.ael extensions.conf extensions.conf.bak extensions.lua extensions_minivm.conf |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.23412.9285 2014-11-25 13:20:28.551617439 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 13:29:06.971623572 +0200 @@ -3,6 +3,28 @@ context=default qualify=yes +; должны добавить регитсрацию на нашем астериске + +register => atlanta:1234@192.168.40.1/NY + +[phone](!) +type=friend +host=dynamic +qualify=yes +secret=password + +; подключение к другому городу +; подключаюсь к NY + +[NY](phones) +; новая опция +directmedia=no +; directmedia - запрет прямова соединения между пирами телефон-телефон +; работать телефонам резрешено только через asterisk +secret=1234 + + + ;#include "/etc/asterisk/sip.conf.kiev" ;#include "/etc/asterisk/sip.conf.kharkov" ;#include "/etc/asterisk/sip.conf.odessa" @@ -22,12 +44,6 @@ secret=1234 host=dynamic -[phone](!) -type=friend -host=dynamic -qualify=yes -secret=password - ;[softphone](!) ;.... |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> sip reload Reloading SIP debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> sip reload Reloading SIP debian5*CLI> exit |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... debian5*CLI> sip notify prune qualify reload set show unregister debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (5 ms) 2203 (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... debian5*CLI> sip notify prune qualify reload set show unregister debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (5 ms) 2203 (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.26960.7669 2014-11-25 13:31:22.459625181 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 13:32:57.495626297 +0200 @@ -19,7 +19,7 @@ [NY](phones) ; новая опция directmedia=no -; directmedia - запрет прямова соединения между пирами телефон-телефон +; directmedia - запрет прямого соединения между пирами (телефон-телефон) ; работать телефонам резрешено только через asterisk secret=1234 |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... [Nov 25 13:33:59] WARNING[13555]: config.c:1192 process_text_line: Inheritance requested, but category 'phones' does not exist, line 19 of /etc/asterisk/sip.conf [Nov 25 13:33:59] ERROR[13555]: chan_sip.c:28034 reload_config: Contents of sip.conf are invalid and cannot be parsed debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) 2203 (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... [Nov 25 13:33:59] WARNING[13555]: config.c:1192 process_text_line: Inheritance requested, but category 'phones' does not exist, line 19 of /etc/asterisk/sip.conf [Nov 25 13:33:59] ERROR[13555]: chan_sip.c:28034 reload_config: Contents of sip.conf are invalid and cannot be parsed debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) 2203 (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.32417.6930 2014-11-25 13:34:22.887627313 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 13:35:29.547628101 +0200 @@ -5,7 +5,7 @@ ; должны добавить регитсрацию на нашем астериске -register => atlanta:1234@192.168.40.1/NY +register => atlanta:1234@192.168.40.1/ny [phone](!) type=friend @@ -16,7 +16,7 @@ ; подключение к другому городу ; подключаюсь к NY -[NY](phones) +[NY](phone) ; новая опция directmedia=no ; directmedia - запрет прямого соединения между пирами (телефон-телефон) |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... [Nov 25 13:35:35] WARNING[13555]: chan_sip.c:20720 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'atlanta' to '192.168.40.1' debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) 2203 (Unspecified) D N 0 UNKNOWN NY (Unspecified) D N 0 UNKNOWN 4 sip peers [Monitored: 1 online, 2 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... [Nov 25 13:35:35] WARNING[13555]: chan_sip.c:20720 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'atlanta' to '192.168.40.1' debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) 2203 (Unspecified) D N 0 UNKNOWN NY (Unspecified) D N 0 UNKNOWN 4 sip peers [Monitored: 1 online, 2 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (103 ms) 2203 (Unspecified) D N 0 UNKNOWN NY (Unspecified) D N 0 UNKNOWN 4 sip peers [Monitored: 1 online, 2 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (103 ms) 2203 (Unspecified) D N 0 UNKNOWN NY (Unspecified) D N 0 UNKNOWN 4 sip peers [Monitored: 1 online, 2 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.28108.31973 2014-11-25 13:40:48.847631883 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 13:41:42.627632518 +0200 @@ -16,7 +16,7 @@ ; подключение к другому городу ; подключаюсь к NY -[NY](phone) +[ny](phone) ; новая опция directmedia=no ; directmedia - запрет прямого соединения между пирами (телефон-телефон) @@ -53,4 +53,3 @@ ;.... ;quialify=yes -[2203](phone) |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (107 ms) ny (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (107 ms) ny (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (107 ms) ny (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] -- Remote UNIX connection -- Remote UNIX connection disconnected debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (107 ms) ny (Unspecified) D N 0 UNKNOWN 3 sip peers [Monitored: 1 online, 1 offline Unmonitored: 1 online, 0 offline] -- Remote UNIX connection -- Remote UNIX connection disconnected debian5*CLI> exit Executing last minute cleanups |
#[2202]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Remote UNIX connection -- Remote UNIX connection disconnected debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) ny/atlanta 192.168.40.1 D N 5060 OK (1 ms) 3 sip peers [Monitored: 2 online, 0 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#[2202]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Remote UNIX connection -- Remote UNIX connection disconnected debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) ny/atlanta 192.168.40.1 D N 5060 OK (1 ms) 3 sip peers [Monitored: 2 online, 0 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Stopped music on hold on SIP/2201-000000da == Spawn extension (gr1, 2202, 4) exited non-zero on 'SIP/2201-000000da' -- Remote UNIX connection -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes debian5*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. 64 bytes from 192.168.40.1: icmp_req=1 ttl=63 time=0.296 ms 64 bytes from 192.168.40.1: icmp_req=2 ttl=63 time=0.245 ms ^C --- 192.168.40.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.245/0.270/0.296/0.030 ms |
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. 64 bytes from 192.168.40.1: icmp_req=1 ttl=63 time=0.296 ms 64 bytes from 192.168.40.1: icmp_req=2 ttl=63 time=0.245 ms ^C --- 192.168.40.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.245/0.270/0.296/0.030 ms |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 13:50:30] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '2101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 25 13:50:30] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '2101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.9460.15307 2014-11-25 13:52:06.655639900 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 13:55:41.243642443 +0200 @@ -7,8 +7,8 @@ ; ; - -;exten => +; звонки на ny начинаються на +exten => _2[21]XX,1,Dial(SIP/ny/${EXTEN}) exten => 2201,1,NoOp(Starting call processing) |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-via-pstn) to new(ael-dundi-e164-via-pstn) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-customers'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.001658 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000072 sec -- Total time merge_contexts_delete: 0.001736 sec debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-via-pstn) to new(ael-dundi-e164-via-pstn) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-customers'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.001658 sec -- Time to restore hints and swap in new dialplan: 0.000006 sec -- Time to delete the old dialplan: 0.000072 sec -- Total time merge_contexts_delete: 0.001736 sec debian5*CLI> exit |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.8650.21892 2014-11-25 13:56:15.539642848 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 13:57:08.863643480 +0200 @@ -8,7 +8,7 @@ ; ; звонки на ny начинаються на -exten => _2[21]XX,1,Dial(SIP/ny/${EXTEN}) +exten => _21XX,1,Dial(SIP/ny/${EXTEN}) exten => 2201,1,NoOp(Starting call processing) |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_config -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001233 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000123 sec -- Total time merge_contexts_delete: 0.001361 sec debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_config -- Including switch 'Lua/' in context 'local' -- Registered extension context 'demo'; registrar: pbx_lua -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.001233 sec -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000123 sec -- Total time merge_contexts_delete: 0.001361 sec debian5*CLI> exit |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.25738.18976 2014-11-25 13:57:29.719643725 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 14:01:25.051646504 +0200 @@ -2,14 +2,10 @@ ; входящий вызов по сипу на 1101 ; Dial приложение (позвонить) -; SIP/ название канала, куда его нужно перенаправить -; -; -; +; SIP/ название канала, куда его нужно перенаправить ; звонки на ny начинаються на exten => _21XX,1,Dial(SIP/ny/${EXTEN}) - exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.11540.1058 2014-11-25 14:05:37.959649504 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 14:06:44.475650303 +0200 @@ -6,6 +6,7 @@ ; звонки на ny начинаються на exten => _21XX,1,Dial(SIP/ny/${EXTEN}) +exten => _32XX,1,Dial(SIP/london/${EXTEN}) exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) |
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) london/atlanta 192.168.80.1 D N 5060 OK (1 ms) ny/atlanta 192.168.40.1 D N 5060 OK (1 ms) 4 sip peers [Monitored: 3 online, 0 offline Unmonitored: 1 online, 0 offline] == Using SIP RTP CoS mark 5 [Nov 25 14:08:45] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '3101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (104 ms) london/atlanta 192.168.80.1 D N 5060 OK (1 ms) ny/atlanta 192.168.40.1 D N 5060 OK (1 ms) 4 sip peers [Monitored: 3 online, 0 offline Unmonitored: 1 online, 0 offline] == Using SIP RTP CoS mark 5 [Nov 25 14:08:45] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '3101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.30468.16286 2014-11-25 14:09:59.671652601 +0200 +++ /etc/asterisk/sip.conf 2014-11-25 14:10:11.263652739 +0200 @@ -6,7 +6,7 @@ ; должны добавить регитсрацию на нашем астериске register => atlanta:1234@192.168.40.1/ny -register => atlanta:1234@192.168.70.1/london +register => atlanta:1234@192.168.80.1/london [phone](!) type=friend |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Using SIP RTP CoS mark 5 -- Executing [3201@default:1] Dial("SIP/2201-00000018", "SIP/london/3201") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/london/3201 -- SIP/london-00000019 is ringing == Spawn extension (default, 3201, 1) exited non-zero on 'SIP/2201-00000018' == Using SIP RTP CoS mark 5 [Nov 25 14:11:06] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '3101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Using SIP RTP CoS mark 5 -- Executing [3201@default:1] Dial("SIP/2201-00000018", "SIP/london/3201") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/london/3201 -- SIP/london-00000019 is ringing == Spawn extension (default, 3201, 1) exited non-zero on 'SIP/2201-00000018' == Using SIP RTP CoS mark 5 [Nov 25 14:11:06] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '3101' rejected because extension not found in context 'default'. debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.23482.6376 2014-11-25 14:11:37.223653760 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 14:14:01.751655508 +0200 @@ -6,7 +6,8 @@ ; звонки на ny начинаються на exten => _21XX,1,Dial(SIP/ny/${EXTEN}) -exten => _32XX,1,Dial(SIP/london/${EXTEN}) +;exten => _32XX,1,Dial(SIP/london/${EXTEN}) +exten => _3XXX,1,Dial(SIP/london/${EXTEN}) exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000101 sec -- Total time merge_contexts_delete: 0.001550 sec == Using SIP RTP CoS mark 5 -- Executing [3101@default:1] Dial("SIP/2201-0000001a", "SIP/london/3101") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/london/3101 -- SIP/london-0000001b is ringing == Spawn extension (default, 3101, 1) exited non-zero on 'SIP/2201-0000001a' debian5*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) Verbosity is at least 3 debian5*CLI> dialplan reload ... -- Time to restore hints and swap in new dialplan: 0.000005 sec -- Time to delete the old dialplan: 0.000101 sec -- Total time merge_contexts_delete: 0.001550 sec == Using SIP RTP CoS mark 5 -- Executing [3101@default:1] Dial("SIP/2201-0000001a", "SIP/london/3101") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/london/3101 -- SIP/london-0000001b is ringing == Spawn extension (default, 3101, 1) exited non-zero on 'SIP/2201-0000001a' debian5*CLI> exit |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.25553.14893 2014-11-25 14:14:55.267656100 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 14:17:40.715658060 +0200 @@ -8,6 +8,7 @@ exten => _21XX,1,Dial(SIP/ny/${EXTEN}) ;exten => _32XX,1,Dial(SIP/london/${EXTEN}) exten => _3XXX,1,Dial(SIP/london/${EXTEN}) +exten => _1XXX,1,Dial(SIP/ny/${EXTEN}) exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15112.32498.29015 2014-11-25 14:18:00.759658293 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 14:18:34.535658689 +0200 @@ -9,6 +9,7 @@ ;exten => _32XX,1,Dial(SIP/london/${EXTEN}) exten => _3XXX,1,Dial(SIP/london/${EXTEN}) exten => _1XXX,1,Dial(SIP/ny/${EXTEN}) +exten => _23XX,1,Dial(SIP/ny/${EXTEN}) exten => 2201,1,NoOp(Starting call processing) exten => 2201,2,NoOp(to extension 2201) |
Время первой команды журнала | 11:11:42 2014-11-25 | |||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:18:34 2014-11-25 | |||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.00 | |||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.12 | |||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.50 | |||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008