/l3/users/2014-11-nt-voip/nt-voip/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#all "asterisk -rx 'sip show peers'" | grep 02/.*192 | awk '{print $1}' | tr -d :
1 3 4 5 6 7 |
#_ +1 +4
+1 +4 |
#_ +5
+5 |
#vim /etc/asterisk/extensions.conf
![]() --- /dev/null 2014-11-24 01:42:46.270560796 -0500 +++ /etc/asterisk/extensions.conf 2014-11-24 11:06:12.768871522 -0500 @@ -0,0 +1,5 @@ + +[general] + +exten => _11XX,1,Dial(${EXTEN}) + |
#cat /etc/asterisk/extensions.conf
[general] exten => _11XX,1,Dial(${EXTEN}) |
#grep default /etc/asterisk/sip.conf
context=default |
#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 debian0 (pid = 17209) ... ael-trunklocal ael-trunktollfree app_dial_gosub_virtual_context app_queue_gosub_virtual_context chanvar demo globals local parkedcalls default debian0*CLI> dialplan show default [ Context 'default' created by 'pbx_config' ] '_11XX' => 1. Dial(SIP/${EXTEN}) [pbx_config] -= 1 extension (1 priority) in 1 context. =- debian0*CLI> quit Executing last minute cleanups |
#all "asterisk -rx 'sip show peers'" | grep 02/.*192 | awk '{print $1}' | tr -d :
1 3 4 5 6 7 |
#sterisk -rvv
![]() |
#sterisk -rvv
|
#sterisk -rvv
|
#_ +6 +7 +8
![]() |
#sterisk -rvv
![]() |
#sterisk -rvv
: ll "asterisk -rx 'dialplan show default'" | grep SIP/ | awk '{print $1}' | tr -d 6 7 8 |
#ÑÐall cat /etc/default/extensions.conf
1: cat: /etc/default/extensions.conf: No such file or directory 2: cat: /etc/default/extensions.conf: No such file or directory 3: cat: /etc/default/extensions.conf: No such file or directory 4: cat: /etc/default/extensions.conf: No such file or directory 5: cat: /etc/default/extensions.conf: No such file or directory 6: cat: /etc/default/extensions.conf: No such file or directory 7: cat: /etc/default/extensions.conf: No such file or directory 8: cat: /etc/default/extensions.conf: No such file or directory |
#all cat /etc/asterisk/extensions.conf
1: cat: /etc/asterisk/extensions.conf: No such file or directory 2: cat: /etc/asterisk/extensions.conf: No such file or directory 3: aasd 4: cat: /etc/asterisk/extensions.conf: No such file or directory 5: cat: /etc/asterisk/extensions.conf: No such file or directory 6: [default] 6: 6: exten => _23XX,1,Dial(SIP/${EXTEN}) 7: [default] 7: 7: exten => _31XX,1,Dial(SIP/${EXTEN}) 8: [default] 8: 8: exten => _32XX,1,Dial(SIP/${EXTEN}) 8: |
#cat /etc/asterisk/extensions.conf
[default] exten => _11XX,1,Dial(SIP/${EXTEN}) |
#cat /etc/asterisk/extensions.conf
[default] exten => _11XX,1,Dial(SIP/${EXTEN}) |
#all cat /etc/asterisk/extensions.conf
1: [default] 1: 1: exten => _11XX,1,Dial(SIP/${EXTEN}) 2: cat: /etc/asterisk/extensions.conf: No such file or directory 3: exten => _13XX,1,Dial(SIP/${EXTEN}) 4: cat: /etc/asterisk/extensions.conf: No such file or directory 5: cat: /etc/asterisk/extensions.conf: No such file or directory 6: [default] 6: 6: exten => _23XX,1,Dial(SIP/${EXTEN}) 7: [default] 7: 7: exten => _31XX,1,Dial(SIP/${EXTEN}) 8: [default] 8: 8: exten => _32XX,1,Dial(SIP/${EXTEN}) 8: |
#all cat /etc/asterisk/extensions.conf
1: [default] 1: 1: exten => _11XX,1,Dial(SIP/${EXTEN}) 2: cat: /etc/asterisk/extensions.conf: No such file or directory 3: [default] 3: 3: 3: exten => _13XX,1,Dial(SIP/${EXTEN}) 4: cat: /etc/asterisk/extensions.conf: No such file or directory 5: cat: /etc/asterisk/extensions.conf: No such file or directory 6: [default] 6: 6: exten => _23XX,1,Dial(SIP/${EXTEN}) 7: [default] 7: 7: exten => _31XX,1,Dial(SIP/${EXTEN}) 8: [default] 8: 8: exten => _32XX,1,Dial(SIP/${EXTEN}) 8: |
#_ +1
+1 |
#cat /etc/asterisk/extensions.conf
![]() |
#_ +1
|
#_ +1
2 +2 |
#_ +3
+3 |
#_ +5
+5 |
##cat /etc/default/isc-dhcp-server
|
#all cat /etc/asterisk/extensions.conf
1: [default] 1: 1: exten => _11XX,1,Dial(SIP/${EXTEN}) 2: [default] 2: 2: exten => _12XX,1,Dial(SIP/${EXTEN}) 3: [default] 3: 3: 3: exten => _13XX,1,Dial(SIP/${EXTEN}) ... 6: [default] 6: 6: exten => _23XX,1,Dial(SIP/${EXTEN}) 7: [default] 7: 7: exten => _31XX,1,Dial(SIP/${EXTEN}) 8: [default] 8: 8: exten => _32XX,1,Dial(SIP/${EXTEN}) 8: |
#cat /etc/asterisk/extensions.conf
![]() |
#_ +5
4 +4 |
#_ done
|
#all init 0
3: ssh: connect to host m3 port 22: Connection timed out 5: ssh: connect to host m5 port 22: Connection timed out 6: ssh: connect to host m6 port 22: Connection timed out 7: ssh: connect to host m7 port 22: Connection timed out |
#ssh m1
l3-agent is already running: pid=4022; pidfile=/root/.lilalo/l3-agent.pid |
#cat /etc/asterisk/sip.conf
[general] context=default [1101] type=friend secret=1234 host=dynamic [1102] type=friend secret=1234 host=dynamic |
#asterisk -rv
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 debian1 (pid = 2476) Verbosity was 0 and is now 1 debian1*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 1101/1101 192.168.10.100 D N 5060 Unmonitored 1102/1102 192.168.10.101 D N 35840 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] debian1*CLI> quit Executing last minute cleanups |
#exit
exit Connection to m1 closed. |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-9664.1390.10554 2014-11-25 02:51:44.750585825 -0500 +++ /etc/asterisk/sip.conf 2014-11-25 02:51:54.402586101 -0500 @@ -1,5 +1,6 @@ [general] context=default +qualify=yes [3301] type=friend |
#cat /etc/asterisk/sip.conf
[general] context=default qualify=yes [3301] type=friend secret=1234 host=dynamic [3302] type=friend secret=1234 host=dynamic |
#asterisk -rv
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 debian0 (pid = 17209) Verbosity is at least 2 debian0*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found [Nov 25 02:52:24] ERROR[17246]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("debian0", "(null)", ...): Name or service not known [Nov 25 02:52:24] WARNING[17246]: acl.c:582 resolve_first: Unable to lookup 'debian0' == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found debian0*CLI> quit Executing last minute cleanups |
#cat /etc/asterisk/extensions.conf
![]() |
#_ +4
![]() vim |
#_ +4
![]() ^C |
#cat /etc/asterisk/sip.conf
[general] context=default qualify=yes [3301] type=friend secret=1234 host=dynamic [3302] type=friend secret=1234 host=dynamic |
#all 'asterisk -rx "sip show peers"'
1: Name/username Host Dyn Forcerport ACL Port Status 1 |