| /l3/users/mugiwara/asterisk/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
|
#mcedit extensions.conf
|
|
#mcedit sip.conf
[kharkov] 14 0 14 303 c 99 0x63 [102] type=friend secret=password host=dynamic canreinvite=no [103] type=friend secret=password host=dynamic canreinvite=no [kiev] type=friend secret=password host=dynamic username=dnepr canreinvite=no [odessa] type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
|
#mcedit extensions.conf
|
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15372.10998.31749 2010-05-26 11:14:29.000000000 +0300
+++ /etc/asterisk/extensions.conf 2010-05-26 11:14:51.000000000 +0300
@@ -7,4 +7,5 @@
exten => _3XX,1,Dial(Sip/odessa/${EXTEN})
exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
exten => _5XX,1,Dial(Sip/crimea/${EXTEN})
-exten => _6XX,1,Dial(Sip/lvov/${EXTEN})
\ В конце файла нет новой строки
+exten => _6XX,1,Dial(Sip/lvov/${EXTEN})
+
|
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> console dial 380681234567 linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found linux1*CLI> -- Got SIP response 486 "Busy Here" back from 192.168.3.1 -- SIP/odessa-081df130 is busy == Everyone is busy/congested at this time (1:1/0/0) == Auto fallthrough, channel 'Console/dsp' status is 'BUSY' [May 26 11:16:20] WARNING[14958]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
|
#less /var/log/asterisk/messages
|
|
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux1 (pid = 15529) Verbosity is at least 3 linux1*CLI> exit |
|
#less /etc/asterisk/sip.conf
|
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [380638969600@default:1] Dial("SIP/102-081d1390", "Sip/odessa/380638969600") in new stack -- Called odessa/380638969600 -- Got SIP response 503 "Service Unavailable" back from 192.168.3.1 -- SIP/odessa-081d88c8 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/102-081d1390' status is 'CONGESTION' linux1*CLI> linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
|
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-15801.22540.18130 2010-05-26 11:22:50.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-26 11:23:04.000000000 +0300 @@ -7,19 +7,19 @@ ;register => dnepr:password@192.168.6.1/lvov -[101] +[701] type=friend secret=password host=dynamic canreinvite=no -[102] +[702] type=friend secret=password host=dynamic canreinvite=no -[103] +[703] type=friend secret=password host=dynamic |
|
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
|
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (gr2, 301, 1) exited non-zero on 'SIP/701-b730b168' -- Executing [201@gr2:1] Dial("SIP/701-b730d538", "Sip/kiev/201") in new stack -- Called kiev/201 -- SIP/kiev-081d6548 is ringing == Spawn extension (gr2, 201, 1) exited non-zero on 'SIP/701-b730d538' [May 26 13:36:30] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found. [May 26 13:36:41] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found. [May 26 13:36:55] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '701' rejected because extension not found. [May 26 13:36:56] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit |
|
#ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established. RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea. Are you sure you want to continue connecting (yes/no)? Host key verification failed. |
|
#ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established. RSA key fingerprint is 95:9e:2c:1f:7b:eb:a2:b6:f0:48:a1:90:62:4c:e1:ea. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.5.1' (RSA) to the list of known hosts. root@192.168.5.1's password: Linux linux5 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed May 26 10:33:10 2010 l3-agent is already running: pid=13611; pidfile=/root/.lilalo/l3-agent.pid |
|
#mc
|
|
#mcedit extensions.conf
extensions.conf [----] 0 L:[ 1+ 1 2/ 10] *(10 / 304b)= e 101 0x65
[default]
exten => _7XX,1,Dial(Sip/${EXTEN})
exten => _2XX,1,Dial(Sip/kiev/${EXTEN})
exten => _4XX,1,DialBMip/k 0rkov/${E 3 4/ 20 85 / 581b)= e 101 0x65
]
exten => _7XX,1,Dial(Sip/${EXTEN})
exten => _2XX,1,Dial(Sip/kiev/${EXTEN})
exten => _2XX,1,Dial(Sip/kiev/${EXodessa}${EXTEN})
exten => _4XX,1,Dial(Sip/kharkov/${EXTEN})
...
]
1,Dial(Sip/kharkov/${EXTEN})
1,Dial(Sip/odessa/${EXTEN})
]
XXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
include => local
[gr2]
include => world
[gr3]
include => local
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701 (Unspecified) D 0 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 3 offline] [May 26 12:06:32] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found. [May 26 12:06:51] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '201' rejected because extension not found. [May 26 12:06:51] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 [May 26 12:07:05] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '702' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
include => local [gr3] include => local include => corp include => world 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux1 (pid = 15529) Verbosity is at least 4 [May 26 12:11:15] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found. [May 26 12:12:24] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '301' rejected because extension not found. [May 26 12:12:31] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '501' rejected because extension not found. [May 26 12:12:36] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '201' rejected because extension not found. [May 26 12:12:45] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '401' rejected because extension not found. [May 26 12:12:51] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
|
|
#mcedit extensions.conf
|
|
#mcedit sip.conf
|
|
#mcedit extensions.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/cdr_pgsql.conf': Found -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found > doing dnsmgr_lookup for '216.207.245.47' == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' [May 26 12:14:26] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '702' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... kharkov/dnepr 192.168.4.1 D 5060 Unmonitored odessa/dnepr 192.168.3.1 5060 Unmonitored kiev/dnepr 192.168.2.1 D 5060 Unmonitored 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701 (Unspecified) D 0 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 3 offline] [May 26 12:16:07] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '702' to extension '201' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
|
|
#mcedit sip.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... odessa/dnepr 192.168.3.1 5060 Unmonitored kiev/dnepr 192.168.2.1 D 5060 Unmonitored 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701/701 192.168.1.11 D 2048 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 2 offline] [May 26 12:21:52] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 [May 26 12:24:52] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
âââââââââââââââââââââââââ ââââââââââââââââââââââ
[gr2]
include => corp
include => local
[gr3]
|
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15801.14436.16690 2010-05-26 12:34:46.000000000 +0300
+++ /etc/asterisk/extensions.conf 2010-05-26 12:35:19.000000000 +0300
@@ -2,6 +2,9 @@
[local]
exten => _7XX,1,Dial(Sip/${EXTEN})
+exten => 801,1,Answer
+exten => 801,n,Wait(1)
+exten => 801,n,Record(/tmp/greetings)
[corp]
exten => _2XX,1,Dial(Sip/kiev/${EXTEN})
@@ -22,4 +25,4 @@
[gr3]
include => local
include => corp
-include => world
\ В конце файла нет новой строки
+include => world
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Registered extension context 'gr2' -- Including context 'corp' in context 'gr2' -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
|
|
#mcedit extensions.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:44:45] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from 'dnepr' to extension '800' rejected because extension not found. -- Executing [801@gr2:1] Answer("SIP/701-b7313940", "") in new stack -- Executing [801@gr2:2] Wait("SIP/701-b7313940", "i") in new stack [May 26 12:45:00] WARNING[16403]: pbx.c:1832 pbx_extension_helper: No application 'Record ' for extension (gr2, 801, 3) == Spawn extension (gr2, 801, 3) exited non-zero on 'SIP/701-b7313940' linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- <SIP/701-b7316460> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/701-b7316460' status is 'UNKNOWN' -- Executing [801@gr2:1] Answer("SIP/701-b730eac8", "") in new stack -- Executing [801@gr2:2] Wait("SIP/701-b730eac8", "i") in new stack -- Executing [801@gr2:3] Record("SIP/701-b730eac8", "/var/tmp/welcome:gsm|3") in new stack -- <SIP/701-b730eac8> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/701-b730eac8' status is 'UNKNOWN' [May 26 12:48:53] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
exten => _801,n,W │ │
└───────────────────────────────────────────┘
exten => _5XXX,1,Set(CALLERID(all)=Privet<123>)
[gr1]
include => local
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr2' -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:51:53] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
extensions.conf [----] 16 L:[ 4+10 14/ 31] *(294 / 593b)= D 68 0x44
[local]
exten => _7XX,1,Dial(Sip/${EXTEN})
exten => _2800,1,Dial(Sip/${EXTEN:1})
exten => _801,1,Answer
)
|
|
#mcedit extensions.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found -- Executing [801@gr2:1] Answer("SIP/701-b730d538", "") in new stack -- Executing [801@gr2:2] Wait("SIP/701-b730d538", "1") in new stack -- Executing [801@gr2:3] Record("SIP/701-b730d538", "/var/tmp/welcome:gsm|3") in new stack -- <SIP/701-b730d538> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/701-b730d538' status is 'UNKNOWN' linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
extensions.conf [----] 25 L:[ 1+ 8 9/ 31] *(165 / 593b)= a 97 0x61
[default]
[local]
[world]
exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
[gr1]
include => local
1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'corp' in context 'gr2' -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:55:16] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '701' to extension '800' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
|
#mcedit sip.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'local' in context 'gr2' -- Registered extension context 'gr3' -- Including context 'local' in context 'gr3' -- Including context 'corp' in context 'gr3' -- Including context 'world' in context 'gr3' == Parsing '/etc/asterisk/users.conf': Found [May 26 12:57:54] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 [May 26 12:57:59] NOTICE[15550]: chan_sip.c:14441 handle_request_invite: Call from '701' to extension '800' rejected because extension not found. linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [801@gr2:3] Record("SIP/701-b730b168", "/var/tmp/welcome:gsm|3") in new stack -- <SIP/701-b730b168> Playing 'beep' (language 'en') -- Executing [800@gr2:1] Answer("SIP/701-b730b168", "") in new stack -- Executing [800@gr2:2] Wait("SIP/701-b730b168", "1") in new stack -- Executing [800@gr2:3] Playback("SIP/701-b730b168", "/var/tmp/welcome") in new stack -- <SIP/701-b730b168> Playing '/var/tmp/welcome' (language 'en') == Auto fallthrough, channel 'SIP/701-b730b168' status is 'UNKNOWN' [May 26 13:12:54] NOTICE[15550]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 702 linux1*CLI> quit Executing last minute cleanups |
|
#mcedit extensions.conf
|
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... crimea/dnepr 192.168.5.1 D 5060 Unmonitored kharkov/dnepr 192.168.4.1 D 5060 Unmonitored odessa/dnepr 192.168.3.1 5060 Unmonitored kiev/dnepr 192.168.2.1 D 5060 Unmonitored 703 (Unspecified) D 0 Unmonitored 702/702 192.168.1.10 D 15300 Unmonitored 701/701 192.168.1.11 D 2048 Unmonitored 8 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 2 offline] linux1*CLI> quit Executing last minute cleanups |
|
#mcedit sip.conf
register => dnepr:password1592.16232.5 28v 484 . 10 0x0A type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход ;register => dnepr:password@192.168.3.1/odessa register => dnepr:password@192.168.4.1/kharkov ;call-limit=1 register => dnepr:password@192.168.5.1/crimea ;register => dnepr:password@192.168.6.1/lvov callerid="Dnepr Phone" [702] secret=password ... callerid="Dnepr Phone" [702] context=gr1 type=friend secret=password host=dynamic [lvov] username=dnepr callerid="Kiev Phone" [odessa] |
|
#mcedit extensions.conf
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1})
exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _3XXX,1,Dial(Sip/odessa/${EXTEN:1})
exten => _5XXX,1,Set(CALLERID(all)=Privet<123>)
exten => _5XXX,n,Dial(Sip/crimea/${EXTEN:1})
[world]
exten => _380XXXXXXXXX,1,Dial(Sip/odessa/${EXTEN})
|
|
#mcedit extensions.conf
|
|
#mcedit sip.conf
|
|
#mcedit extensions.conf
|
|
#mcedit sip.conf
|
|
#mcedit sip.conf
|
|
#mcedit sip.conf
[702] type=friend host=dynamic callerid="SoftPhone" [703] secret=password canreinvite=no secret=password username=dnepr callerid="Kiev Phone" 1Помощь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
|
#mcedit extensions.conf
|
|
#mcedit sip.conf
secret=password BM 0 30 0 30/ 77 498 /1125b)= c 99 0x63 callerid="NoteBookPhone" [kiev] type=friend secret=password host=dynamic username=dnepr canreinvite=no callerid="Kiev Phone" context=gr2 [odessa] type=friend secret=password host=192.168.3.1 username=dnepr canreinvite=no ;limitonpeers=yes ;call-limit=1 callerid="Odessa Phone" type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
|
#mcedit sip.conf
type=friend 19 0 19 361 c 99 0x63 type=friend secret=password host=dynamic canreinvite=no callerid="SoftPhone" [703] type=friend secret=password host=dynamic canreinvite=no callerid="NoteBookPhone" [kiev] type=friend secret=password host=dynamic username=dnepr canreinvite=no callerid="Kiev Phone" type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход |
|
#mcedit extensions.conf
exten => _800,n,Wait(M) 1 3 4/ 47] *(65 /1132 . 10 0x0A
macro-m1]
[xten => s,1,..... $(MACRO_EXTEN)
xten => s,n,.....
e ]
exten => _3XX,1,Macro(m1)
[corp]
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _4XXX,1,Dial(Sip/kharkov/${EXTEN:1})
exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
|
|
#mcedit extensions.conf
;exten => _3XXX,1,DiB-(Sip 6dessa 1{18 191}) 440 8 . 10 0x0A
[macro-m1]
exten => s,1,Set(CALLERID(number)=1${ARG1})
exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}
exten => _3XX,1,Macro(m1,${CALLERID(number)},odessa)
xten => _3XX,1,Macro(m1,${CALLERID(number)},odessa)
[local] 1,Dial(Sip/${EXTEN})
exten => _7XX,1,Dial(Sip/${EXTEN})1})
exten => _2800,1,Dial( ip/${EXTEN:1})
exten => _801,1,Answer
...
exten => _801,1,Answer
exten => _801,n,Wait(1)
exten => _801,n,Record(/var/tmp/welcome:gsm,3)
exten => _800,1,Answer
exten => _800,n,Wait(1)
exten => _800,n,Playback(/var/tmp/welcome)
[corp]
exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
exten => _2XXX,1,Dial(Sip/kiev/${EXTEN:1})
exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)})
|
|
#mceditsip.conf
bash: mceditsip.conf: команда не найдена |
|
#mcedit sip.conf
register => dnepr:password@192.168.4.1/kharkov
;register => dnepr:password@192.168.6.1/lvov
]
context=gr2 ┌────────────────── Выход ──────────────────┐
secret=password │ │
canreinvite=no └───────────────────────────────────────────┘
]
context=gr1
secret=password
callerid="SoftPhone"
[703]
[703]
secret=password
type=friendь 2Сохрани3Блок 4Замена 5Копия 6Перемес7Поиск 8Удалить9МенюMC 10Выход
|
|
#mcedit extensions.conf
exten => _801,1,AnswBM 39 2 3/ 52 94 /1283 . 10 0x0A
]
[xten => _801,n,Wait(1) )
xten => s,n,GotoIf($[${ARG1}=101]?end)
})
exten => s,n,(end),Hangupar/tmp/welcome:gsm,3)
[macro-m2]
e ]
exten => _800,n,Wait(1)
]
...
;exten => s,1,ial(SIP/${MACRO_EXTEN},10)
exten => s,1,DotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?endть ] │
exten => s,n,Gial(SIP/odessa/${DB(mobile/${MACRO_EXTEN})})
exten => s,n(Dnd),Hangup
exten => s,n(end),Ha$[${DIALSTATUS}=BUSY]?busy)
exten => s,n,GotoIf(${DIALSTATUS}=BUSY]?busy)
exten => s,n(busy),Playback(/var/tmp/busy)
exten => _901,1,Answer
exten => _901,n,Wait(1)
;exten => _4XX,1,Dial(Sip/kharkov/${EXTEN})
|
|
#mcedit sip.conf
type=friend 11 37 0 37 598 e 101 0x65 canreinvite=no callerid="Kiev Phone" context=gr2 [odessa] type=friend secret=password host=192.168.3.1 username=dnepr canreinvite=no ... ;[lvov] ;type=friend ┌────────────────── Выход ──────────────────┐ ;secret=password │ │ ;host=dynamic └───────────────────────────────────────────┘ ;username=dnepr ;canreinvite=no [sipnet] type=friend secret= username= 0024321191 |