/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 |
|
#vim /etc/asterisk/dongle.conf
|
## всё
|
#â# попÑобÑем ÑÑо бÑдеÑ
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 debian2 (pid = 11311) Verbosity was 0 and is now 1 debian2*CLI> dongle ... debian2*CLI> dongle show device devices version debian2*CLI> dongle show devi device devices debian2*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Not connec 0 0 0 NONE Unknown [Nov 27 17:01:50] ERROR[11366]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed debian2*CLI> quit Executing last minute cleanups |
## что-то не заработало
|
## ÑÑо-Ñо нÐ# попÑобÑеÐÐvim /etc/asterisk/dongle.conf
dtmf=relax ; control of i use this value for gateways or if not use DTMF for AVR or inside dd ialplan ; inband - do DTMF tones detection ; relax - like inband but with relaxdtmf option ; default is 'relax' by compatibility reason ; dongle required settings [dongle0] ; Ð²Ð¾Ñ Ð·Ð´ÐµÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑаеÑÑÑ Ð¼Ð¾Ð´ÐµÐ¼ audio=/dev/ttyUSB1 ; tty port for audio connection; no default value data=/dev/ttyUSB2 ; tty port for AT commands; no default value ; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345 ; imei and imsi must contain exactly 15 digits ! ; imei/imsi discovery is available on Linux only ; imei=123456789012345 imei=123456789012345 imsi=123456789012345 ; if audio and data set together with imei and/or imsi audio and data has precedence "/etc/asterisk/dongle.conf" 93L, 4880C written this case exact match by imei and imsi required |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/messages ^C
![]() |
#less /var/log/messages
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
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 debian2 (pid = 11564) Verbosity was 0 and is now 4 debian2*CLI> dongle show devic device devices debian2*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Not connec 0 0 0 NONE Unknown debian2*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#lsmod | head
Module Size Used by option 37168 0 usb_wwan 17320 1 option usbserial 32061 2 usb_wwan,option usb_storage 43870 0 bnep 17567 2 rfcomm 33700 0 bluetooth 119455 10 rfcomm,bnep binfmt_misc 12957 1 nfsd 216181 2 |
#modprobe -r option
|
#lsmod | head
Module Size Used by usb_storage 43870 0 bnep 17567 2 rfcomm 33700 0 bluetooth 119455 10 rfcomm,bnep binfmt_misc 12957 1 nfsd 216181 2 nfs 308353 0 nfs_acl 12511 2 nfs,nfsd auth_rpcgss 37143 2 nfs,nfsd |
#modprobe usb_wwan
|
#lsmod
Module Size Used by usb_wwan 17320 0 usbserial 32061 1 usb_wwan usb_storage 43870 0 bnep 17567 2 rfcomm 33700 0 bluetooth 119455 10 rfcomm,bnep binfmt_misc 12957 1 nfsd 216181 2 nfs 308353 0 ... xhci_hcd 73413 0 ahci 24997 3 libahci 22941 1 ahci ehci_hcd 40249 0 libata 140630 2 libahci,ahci scsi_mod 162321 5 libata,sd_mod,sg,sr_mod,usb_storage tg3 119064 0 libphy 19057 1 tg3 usbcore 128741 8 ehci_hcd,xhci_hcd,ohci_hcd,usbhid,usb_storage,usbserial,usb_wwan usb_common 12354 1 usbcore |
#lsmod | head
Module Size Used by usb_wwan 17320 0 usbserial 32061 1 usb_wwan usb_storage 43870 0 bnep 17567 2 rfcomm 33700 0 bluetooth 119455 10 rfcomm,bnep binfmt_misc 12957 1 nfsd 216181 2 nfs 308353 0 |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
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 debian2 (pid = 11717) Verbosity was 0 and is now 4 debian2*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Not connec 0 0 0 NONE Unknown debian2*CLI> quit Executing last minute cleanups |
#less /var/log/messages
|
#less /var/log/messages
|
#exit
exit Connection to m2 closed. |
#ssh m8
Linux debian8 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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: Thu Nov 27 13:56:58 2014 from 192.168.12.254 l3-agent is already running: pid=3660; pidfile=/root/.lilalo/l3-agent.pid |
#ls -l ls -ls /usr/lib/asterisk/modules/chan_dongle.so /usr
![]() ls: cannot access ls: No such file or directory 192 -rwxr-xr-x 1 root root 193112 Nov 27 16:55 /usr/lib/asterisk/modules/chan_dongle.so /usr: total 136 56 drwxr-xr-x 2 root root 53248 Nov 27 16:52 bin 4 drwxr-xr-x 2 root root 4096 Nov 23 12:49 games 4 drwxr-xr-x 40 root root 4096 Nov 27 16:48 include 40 drwxr-xr-x 169 root root 36864 Nov 27 09:48 lib 4 drwxrwsr-x 10 root staff 4096 Nov 27 16:28 local 12 drwxr-xr-x 2 root root 12288 Nov 27 09:48 sbin 12 drwxr-xr-x 306 root root 12288 Nov 27 16:52 share 4 drwxr-xr-x 5 root root 4096 Nov 26 14:09 src |
#ssh m8
Linux debian8 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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: Thu Nov 27 17:07:39 2014 from 192.168.12.254 l3-agent is already running: pid=3660; pidfile=/root/.lilalo/l3-agent.pid |
#/lls -ls /usr/lib/asterisk/modules/chan_dongle.so
![]() bash: /lls: No such file or directory |
#ls -ls /usr/lib/asterisk/modules/chan_dongle.so
192 -rwxr-xr-x 1 root root 193112 Nov 27 16:55 /usr/lib/asterisk/modules/chan_dongle.so |
## я буду делать
|
#â# ÑейÑÐ°Ñ Ð¿Ð¾ÑмоÑÑим
|
#vim /etc/asterisk/dongle.conf
|
#; you can use both imei and imsi together in this case exact match by imei and imsi required
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 debian8 (pid = 13900) ... -- [dongle0] Dongle has disconnected -- [dongle0] Trying to connect on /dev/ttyUSB2... -- [dongle0] Dongle has connected, initializing... [Nov 27 17:08:55] ERROR[13956]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed -- [dongle0] Error initializing Dongle -- [dongle0] Dongle has disconnected -- [dongle0] Trying to connect on /dev/ttyUSB2... [Nov 27 17:09:10] WARNING[13940]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory debian8*CLI> quit Executing last minute cleanups |
#less /var/log/messages
|
#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard Bus 003 Device 004: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D |
#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard Bus 003 Device 004: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D Bus 003 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem |
## если это стыарый моедем, то он не работает
|
##новый
|
## тогда странно, потому что у сергея работает
|
#exit
exit Connection to m8 closed. |
#cd
|
#ls -lt | head
total 8 -rw-r--r-- 1 root root 257 Nov 24 07:24 create-vlans -rw-r--r-- 1 root root 754 Nov 24 06:41 ports |
#ssh m8
Linux debian8 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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: Thu Nov 27 17:07:53 2014 from 192.168.12.254 l3-agent is already running: pid=3660; pidfile=/root/.lilalo/l3-agent.pid |
#cd chan-dongle/
|
#ls
aclocal.m4 at_read.c channel.h config.sub helpers.c memmem.o ringbuffer.c app.c at_read.h channel.o configure helpers.h missing ringbuffer.h app.h at_read.o char_conv.c configure.in helpers.o mixbuffer.c ringbuffer.o app.o at_response.c char_conv.h contrib INSTALL mixbuffer.h single.c at_command.c at_response.h char_conv.o COPYRIGHT.txt install-sh mixbuffer.o stamp-h1 at_command.h at_response.o cli.c cpvt.c LICENSE.txt mutils.h stamp-h.in at_command.o autom4te.cache cli.h cpvt.h Makefile pdiscovery.c test at_parse.c BUGS cli.o cpvt.o Makefile.in pdiscovery.h TODO.txt at_parse.h chan_dongle.c config.guess dc_config.c manager.c pdiscovery.o tools at_parse.o chan_dongle.h config.h dc_config.h manager.h pdu.c at_queue.c chan_dongle.o config.h.in dc_config.o manager.o pdu.h at_queue.h chan_dongle.so config.log etc memmem.c pdu.o at_queue.o channel.c config.status export.h memmem.h README.txt |
#exit
exit Connection to m8 closed. |
#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 debian6 (pid = 18376) ... debian6*CLI> dongle ussd dongle0 *101# [dongle0] USSD queued for send with id 0x1785fa0 -- [dongle0] Successfully sent USSD 0x1785fa0 [Nov 27 17:13:50] NOTICE[18608]: at_response.c:267 at_response_ok: [dongle0] Successfully sent USSD 0x1785fa0 [dongle0] Got USSD type 2 'USSD Terminated by network': '' == Starting Local/ussd@default-0ed3;1 at default,ussd,1 failed so falling back to exten 's' == Starting Local/ussd@default-0ed3;1 at default,s,1 still failed so falling back to context 'default' [Nov 27 17:13:52] WARNING[18617]: pbx.c:5367 __ast_pbx_run: Channel 'Local/ussd@default-0ed3;1' sent into invalid extension 's' in context 'default', but no invalid handler debian6*CLI> quit Executing last minute cleanups |
#ssh m6
Linux debian6 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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: Thu Nov 27 13:58:52 2014 from 192.168.12.254 l3-agent is already running: pid=3416; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/extensions.conf
|
#ls
1 extensions.conf.bak sent voicemail.conf.bak asterisk-core-sounds-ru-gsm-current.tar.gz extensions.conf.bak2 sip.conf.back |
#ls /tmp/
belki.wav gnash-cookies.6efRit orbit-user someone-called-8300 tracker-user burunduki.wav hello-en.wav pulse-134TkwqLW5kH someone-called-8301 call.call hello-ru.wav pulse-8xTeRLrWdHxS ssh-eSqVI977c3IR |
##ls /tmp/
|
#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 debian6 (pid = 18376) ... debian6*CLI> == Using SIP RTP CoS mark 5 [Nov 27 17:17:50] NOTICE[18399]: chan_sip.c:22753 handle_request_invite: Call from '2301' (192.168.60.100:5060) to extension '0665097199' rejected because extension not found in context 'gr1'. == Using SIP RTP CoS mark 5 -- Executing [380665097199@gr1:1] Dial("SIP/2301-00000000", "Dongle/dongle0/+380665097199") in new stack -- Called Dongle/dongle0/+380665097199 -- Dongle/dongle0-0100000000 is making progress passing it to SIP/2301-00000000 -- Dongle/dongle0-0100000000 answered SIP/2301-00000000 debian6*CLI> quit Executing last minute cleanups |
## я так понимаю работает
|
##yes
|
## теперь в обратную сторону
|
#less /etc/asterisk/dongle.conf
|
#vim /etc/asterisk/extensions.conf
|
#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 debian6 (pid = 18376) ... debian6*CLI> == Starting Dongle/dongle0-0100000001 at default,+1234567890,1 failed so falling back to exten 's' == Starting Dongle/dongle0-0100000001 at default,s,1 still failed so falling back to context 'default' [Nov 27 17:21:46] WARNING[18793]: pbx.c:5367 __ast_pbx_run: Channel 'Dongle/dongle0-0100000001' sent into invalid extension 's' in context 'default', but no invalid handler debian6*CLI> == Starting Dongle/dongle0-0100000002 at default,+1234567890,1 failed so falling back to exten 's' == Starting Dongle/dongle0-0100000002 at default,s,1 still failed so falling back to context 'default' [Nov 27 17:22:06] WARNING[18795]: pbx.c:5367 __ast_pbx_run: Channel 'Dongle/dongle0-0100000002' sent into invalid extension 's' in context 'default', but no invalid handler debian6*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 debian6 (pid = 18825) ... debian6*CLI> debian6*CLI> debian6*CLI> debian6*CLI> debian6*CLI> [dongle0] Got SMS from +380509721434: 'Тест связи!' -- Executing [sms@gsm-incoming:1] System("Local/sms@gsm-incoming-502a;1", "sh -c "echo Тест связи! >> /tmp/sms.log"") in new stack -- Auto fallthrough, channel 'Local/sms@gsm-incoming-502a;1' status is 'UNKNOWN' debian6*CLI> quit Executing last minute cleanups |
#cat /tmp/sms.log
Тест связи! |
#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 debian6 (pid = 18825) Verbosity is at least 3 debian6*CLI> debian6*CLI> dongle ussd dongle0 *101# [dongle0] USSD queued for send with id 0x2b3c5b0 -- [dongle0] Successfully sent USSD 0x2b3c5b0 [Nov 27 17:26:31] NOTICE[18882]: at_response.c:267 at_response_ok: [dongle0] Successfully sent USSD 0x2b3c5b0 [dongle0] Got USSD type 2 'USSD Terminated by network': '' -- Executing [ussd@gsm-incoming:1] System("Local/ussd@gsm-incoming-26a7;1", "sh -c "echo >> /tmp/ussd.log"") in new stack -- Auto fallthrough, channel 'Local/ussd@gsm-incoming-26a7;1' status is 'UNKNOWN' debian6*CLI> quit Executing last minute cleanups |
#cat /tmp/ussd.log
|
#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 debian6 (pid = 18825) Verbosity is at least 3 debian6*CLI> dongle ussd dongle0 *101 [dongle0] USSD queued for send with id 0x2b42870 -- [dongle0] Successfully sent USSD 0x2b42870 [Nov 27 17:26:54] NOTICE[18882]: at_response.c:267 at_response_ok: [dongle0] Successfully sent USSD 0x2b42870 [dongle0] Got USSD type 2 'USSD Terminated by network': '' -- Executing [ussd@gsm-incoming:1] System("Local/ussd@gsm-incoming-20e4;1", "sh -c "echo >> /tmp/ussd.log"") in new stack -- Auto fallthrough, channel 'Local/ussd@gsm-incoming-20e4;1' status is 'UNKNOWN' debian6*CLI> debian6*CLI> quit Executing last minute cleanups |
#cat /tmp/ussd.log
|
#vim /etc/asterisk/extensions.conf
|
#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 debian6 (pid = 18825) ... show sms start stop ussd debian6*CLI> dongle sms dongle0 Usage: dongle sms <device> <number> <message> Send a SMS to <number> with the <message> from <device> debian6*CLI> dongle sms dongle0 +380662707273 "Hello from Asterisk" [dongle0] SMS queued for send with id 0x2b3b200 -- [dongle0] Successfully sent SMS message 0x2b3b200 [Nov 27 17:31:55] NOTICE[18882]: at_response.c:257 at_response_ok: [dongle0] Successfully sent SMS message 0x2b3b200 debian6*CLI> quit Executing last minute cleanups |
#asterisk -rx 'dongle sms dongle0 +380662707273 "Hello from Asterisk once again"'
[dongle0] SMS queued for send with id 0x2b26580 |
#exit
exit Connection to m6 closed. |
#all init 0
3: ssh: connect to host m3 port 22: No route to host 5: ssh: connect to host m5 port 22: Connection timed out 8: ssh: connect to host m8 port 22: Connection timed out |
#logout
![]() l3script: logout: not login shell: use `exit' |
#exi
![]() l3script: exi: command not found |
#ssh m6
Linux debian6 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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: Thu Nov 27 17:11:20 2014 from 192.168.12.254 l3-agent is already running: pid=3475; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/extensions.conf
|
#exit
exit Connection to m6 closed. |
#_ настрокйка карточки PRI
|
#all lspci | grep -i digium
6: 02:00.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog card (rev 11) |
## как видите карточка стоит в машине 6
|
#â# анаÐлоговаÑ
|
#â# ÑÑо пÑавда не pri
|
#ssh m5
Linux debian5 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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: Thu Nov 27 11:20:36 2014 from 192.168.12.254 l3-agent is already running: pid=3833; pidfile=/root/.lilalo/l3-agent.pid |
#lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex 00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit 00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D] 00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller 00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [IDE mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) ... 00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10) |
#exit
exit Connection to m5 closed. |
#all lspci | grep -i broadcom
1: 03:00.0 |