Вы находитесь на странице: 1из 7

29 2011 10:01

+ GPRS = mini VoIP


GSM

, ,
.
, ,
,
GSM + VoIP () .


:
1. DLink DIR-320.
( ASUS RT-N16, 400 200),
(4500. Asus 1500 Dlink).
2. GPRS Huawei E1550,
, .
3. USB Hub 7 StLab, , .
4. MicroSD Flash 1 ( ).

:
1. .
2. GPRS .
3. MicroSD .
4. IP-PBX Asterisk.

,
.
, 2.6,
.. 2.4 ,
chan_datacard (
GSM ).
Flash Samba,
FTP, SSH, .
, . DIR-320
.
( ) bin,
firmware.bin.
- ( bin), flashing.bat :
@Echo Off
:BEGIN
ping -n 1 -w 1 192.168.0.1
If errorlevel 1 Goto BEGIN
If errorlevel 0 Goto FLASH
Goto END
:FLASH
Echo *** Start Flashing ****
tftp -i 192.168.0.1 put c:\bin\firmware.bin
:END
c:\bin\firmware.bin .
( ):

IP 192.168.0.2
255.255.255.0
Reset (
), .
LAN Reset
flashing.bat.
1-2 ,
, Reset
.
.
IP 192.168.1.1, WEB
admin/admin.
:
1. Change Name root.
2. Change Password .
3. telnet .
4. .
GPRS
E1550 USB
.
CDRom , ()
, .
1. dc-unloker
, .
, .
2. GSM MicroSD ,
.
3. dc-unloker .
4. ,
IMEI, . IMEI .
5. OnLine .
6. IMEI . 2 Unlock Flash
( ). Unlock, .
7. dc-unloker 2 , :
AT^U2DIAG=256 ( + Card Reader)
AT^CARDLOCK="<Unlock >"
SIM CDRom.
MicroSD
1. :
Putty
WinCP
2. . .
3. Telnet Putty IP 192.168.1.1,
/ admin/admin.
4. fdisk , MicroSD
/dev/sda.
:
fdisk /dev/sda
Command (m for help): p
, :
Command (m for help): d
:
Command (m for help): n
p
1
( Enter)
Command (m for help): w
5. :
mke2fs -j /dev/discs/disca/part1
6. /opt
mount /dev/discs/disca/part1 /opt
7. ipkg
:
mkdir -p /opt/tmp/ipkg
ipkg.sh update
ipkg.sh install ipkg-opt

ipkg update
8. ( ) :
ipkg install mc ( )
ipkg install nano ( )
ipkg install opnenssh (SSH SFTP)
ipkg install asterisk16 (IP )
9. MicroSD OpenSSH
Asterisk:
/etc fstab, :
touch /etc/fstab
(nano /etc/fstab) :
#!/bin/sh
/dev/discs/disca/part1 /opt ext3 rw,noatime 1 1
/tmp/local/ .files:
touch /tmp/local/.files
:
/etc/fstab
/tmp/local/ sbin
mkdir /tmp/local/sbin
touch /tmp/local/sbin/pre-mount ( )
touch /tmp/local/sbin/post-mount ( )
touch /tmp/local/sbin/pre-shutdown ( /
)
pre-mount :
#!/bin/sh
e2fsck -f -y -v /dev/discs/disca/part1 (
)
post-mount :
#!/bin/sh
/opt/etc/init.d/S40sshd ( OpenSSH )
/opt/sbin/asterisk ( astrisk)
pre-shutdown :
#!/bin/sh
/bin/umount /opt ( /opt)
:
cd /tmp/local/sbin
chmod +x /usr/local/sbin/*
:
flashfs save
flashfs commit
flashfs enable
:
reboot
, ,
SSH SFTP.
IP-PBX Asterisk
, .
chan_datacard (
, ,
).
chan_datacard.so /opt/lib/asterisk/modules/
datacard.conf /opt/etc/astrisk/
/opt/etc/astrisk/modules.conf (
):
[modules]
autoload=no
load => format_pcm.so
load => codec_ulaw.so
load => codec_alaw.so
load => app_dial.so
load => app_macro.so
load => app_playback.so
load => app_setcallerid.so
load => app_disa.so
load => app_transfer.so
load => func_timeout.so
load => func_callerid.so
load => func_logic.so
load => func_strings.so
load => pbx_config.so

load => pbx_spool.so


load => chan_sip.so
load => res_musiconhold.so
load => func_shell.so
load => func_channel.so
load => chan_datacard.so
load => chan_oss.so
/opt/etc/asterisk/datacard.conf ( ,
2 ):
[datacard0]
context=datacard-incoming ; context for incoming calls
audio=/dev/ttyUSB1 ; tty port for audio connection
data=/dev/ttyUSB2 ; tty port for AT commands
resetdatacard=yes ; reset datacard during initialization
disablesms=yes
rxgain=3 ; increase the incoming volume
txgain=3 ; increase the outgoint volume
group=1 ; calling group
[datacard1]
context=datacard-incoming ; context for incoming calls
audio=/dev/ttyUSB4 ; tty port for audio connection
data=/dev/ttyUSB5 ; tty port for AT commands
resetdatacard=yes ; reset datacard during initialization
disablesms=yes
rxgain=3 ; increase the incoming volume
txgain=3 ; increase the outgoint volume
group=1 ; calling group
/opt/etc/asterisk/sip.conf (
):
[general]
context=from-pstn-unauth
allowoverlap=yes
allowguest=yes
alwaysauthreject=yes
bindport=5060
bindaddr=0.0.0.0
srvlookup=no
nat=yes
canreinvite=no
insecure=invite
tos_sip=cs3
tos_audio=ef
tos_video=af41
disallow=all
allow=ulaw
allow=alaw
[101]
type=friend
defaultuser=101
secret=test
host=dynamic
context=test
disallow=all
allow=alaw
allow=ulaw
/opt/etc/asterisk/extensions.conf (
):
[general]
static=yes
writeprotect=no
autofallthrough=no
clearglobalvars=no
priorityjumping=yes
[globals]

[test]
exten => _8XX.,1,Dial(Datacard/g1/${EXTEN})
exten => _8XX.,n,Hangup()
[datacard-incoming]
exten => _.,1,Dial(SIP/101)
exten => _.,n,Hangup()
PIN (
).
.
SIP 101@192.168.1.1 test.
.
GSM .
PS: ,
,
Asterisk.
Astrisk , DIR -320, VoIP, GSM E1550

+56

32152

254

Dobrotin

6,7

G+

(29)
zedalert, 29 2011 10:09 #

+2

.
Dobrotin, 29 2011 10:13 #

, 7 , 230
. DSP
, )
1nd1go, 29 2011 11:40 #

GPRS !
1nd1go, 29 2011 11:56 #

+2

, DIY
Litiy, 29 2011 14:29 #

+1

VoIP
Litiy, 29 2011 14:32 #

. IP ATX . -
. .
200 , ,
/ IVR .. ,
40/ 100% .
Dobrotin, 29 2011 14:42 #

, , .. 4
.
, , .
, 711 64 ( ).
IVR , .
xReaper, 29 2011 15:16 #

?
. ,
.
Dobrotin, 29 2011 15:20 #

, LinkSys
SPA 3102 (1fxo,1fxs), ( )
.
, .. :-)

Dobrotin, 29 2011 15:24 #

112 - .
.
xReaper, 29 2011 15:33 #

,
, ,
. .
Siorinex, 1 2011 11:40 #

+1

? 03 ..
, ..?
,
.
Dobrotin, 1 2011 12:02 #

, . .
xReaper, 1 2011 13:48 #

?
, o ,
.
, .
sanfteam, 29 2011 15:30 #

, . - Huawei
Dobrotin, 29 2011 15:36 #

, . :-(
garbager, 30 2011 18:29 #

fdisk
* fdisck *
Dobrotin, 30 2011 18:31 #

, .
.
sanfteam, 29 2011 15:43 #

2 ( 2 )
GSM, , ?
?
Dobrotin, 29 2011 15:49 #

2 .

CounterPath Bria Professional
VoIP .

( ) . .. ,
( ).
xReaper, 29 2011 15:51 #

3 , , ,
.
Dobrotin, 29 2011 15:53 #

, . Android ,
.
sanfteam, 29 2011 16:28 #

- GSM
, ?

Dobrotin, 29 2011 16:35 #

, 1, 1
, .
Barabek, 29 2011 23:13 #

E1550, E1820. ,
, .
, , E1550 600 /, E1820
3,5 /.
Dobrotin, 29 2011 23:49 #

E1820 .
akshakirov, 30 2011 00:19 #


. B220 (4LAN, WiFi, 1SIM 3G/GPRS) Linksys
WRT54GL ddwrt. OpenVPN IAX2 .
dd-wrt c asterisk sip . Gigaset
470IP.
, dd-wrt +
?
Dobrotin, 30 2011 00:29 #

+1

Linksys WRT54GL DIR-320


4 .
dd-wrt () Linux 2.4,
2.6 (
chan_datacard, 2.4 ).
openwrt 2.6 dir-320,
(.. 4 )
.
, , -
GSM.
denisnikulin, 4 2011 02:26 #

, !
:
ipkg install opnenssh (SSH SFTP)
openssh. - :) .

.
, .

Q&A-


Kickstarter 1,3
200