Понедельник (04/08/13)

/dev/pts/0
15:46:07
$ssh 192.168.15.253
~                                                                                                                                                |
~                                                                                                                                                |
[root@linux7:~]# ls -l /etc/asterisk/sip.conf                                                                                                    |
-rw-r--r-- 1 root root 73 Apr  8 16:40 /etc/asterisk/sip.conf                                                                                    |
[root@linux7:~]# chown asterisk:asterisk /etc/asterisk/sip.conf                                                                                  |
[root@linux7:~]# chmod 600 /etc/asterisk/sip.conf                                                                                                |
[root@linux7:~]# ls -l /etc/asterisk/sip.conf.ORIG                                                                                               |
-rw-r----- 1 asterisk asterisk 63882 Jan 14 20:36 /etc/asterisk/sip.conf.ORIG                                                                    |
[root@linux7:~]# cat /etc/asterisk/sip.conf                                                                                                      |
context=default                                                                                                                                  |
                                                                                                                                                 |
; SIP-peer                                                                                                                                       |
[2301]                                                                                                                                           |
type=friend                                                                                                                                      |
secret=1234                                                                                                                                      |
host=dynamic                                                                                                                                     |
                                                                                                                                                 |
Asterisk 1.6.2.9-2+squeeze10, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
linux7*CLI> quit
[root@linux7:~]# asterisk -r                                                                                                                     |
-------------------------------------------------------------------------------------------------------------------------------------------------