Есть 2 таких зверька E1550.
Asterisk 1.8.6.0
Ubuntu 14.04.1 LTS
dongle.conf
Код: Выделить всё
[general]
interval=15
[defaults]
rxgain=0
txgain=0
autodeletesms=yes
resetdongle=yes
u2diag=0
2gonly=yes
usecallingpres=yes
callingpres=allowed_passed_screen ; set caller ID presentation
disablesms=no
language=ru
smsaspdu=yes
callwaiting=no
disable=no
initstate=start
dtmf=relax
[dongle1]
imei=352445045062537
;imsi=255061044166111
group=21
context=dongle_in
[dongle2]
imei=352445045429058
;imsi=255030804755767
group=21
context=dongle_in
Код: Выделить всё
[general]
qualify=600
nat=no
canreinvite=no
allowguest=no ; Allow or reject guest calls (default is yes)
bindport=5074
alwaysauthreject=yes
autofallthrough=yes
rtptimeout=30
Language=ru
externip=46.172.***
localnet=10.30.0.141
[siptemp](!)
type=friend
host=dynamic
transport=udp
encryption=no
dtmfmode=rfc2833
context=sip-internal
;disallow=all
;allow=all
;allow=ulaw
;allow=alaw
callgroup=1
pickupgroup=1
call-limit=2
nat=yes
[User-101](siptemp);
username=User-101
secret=********
callerid=User-101 <101>
nat=no
[User-102](siptemp);
username=User-102
secret=**********
callerid=User-102 <102>
nat=no
Код: Выделить всё
[dongle_in]
exten= +380996344416,1,NoOp(dongle call ${CALLERID(number)})
same=> n,GoTo(gxw-int,s,1)
exten= +380991676747,1,NoOp(dongle call ${CALLERID(number)})
same=> n,GoTo(gxw-int,s,1)
[gxw-int]
exten => s,1,NoOp(Start call day)
exten => s,n,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Dial(SIP/User-101,15,rTt)
exten => s,n,Hangup
[GSM-out]
exten => _801XXXXXXXXXX,1,NoOp("**** Start Calling from ${CALLERID(number)}****")
same => n,Dial(Dongle/dongle1/${EXTEN:3},30,Tt)
same => n,Hangup
exten => _802XXXXXXXXXX,1,NoOp("**** Start Calling from ${CALLERID(number)}****")
same => n,Dial(Dongle/dongle2/${EXTEN:3},30,Tt)
same => n,Hangup
Исходящие звонки ходят отлично, звук слышно, все ок.
А вот со входящими беда.
Звонки проходят через раз, но при этом в консоли вот такая беда
Код: Выделить всё
Executing [s@incoming-work:8] Answer("Dongle/dongle2-0100000006", "") in new stack
== Begin MixMonitor Recording Dongle/dongle2-0100000006
-- Executing [s@incoming-work:9] Playback("Dongle/dongle2-0100000006", "hello-world") in new stack
-- <Dongle/dongle2-0100000006> Playing 'hello-world.gsm' (language 'ru')
Executing [s@incoming-work:12] Dial("Dongle/dongle2-0100000006", "SIP/User-101,15,rTtM(incall-t2,0661082211,1416577607,101,361)") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/User-101
[Nov 21 15:46:50] WARNING[9232]: channel.c:982 channel_indicate: [Dongle/dongle2-0100000006] Don't know how to indicate condition 22
[Nov 21 15:46:50] WARNING[9232]: chan_sip.c:6341 sip_write: Asked to transmit frame type slin, while native formats is 0x4 (ulaw) read/write = 0x4 (ulaw)/0x4 (ulaw)
[Nov 21 15:46:50] WARNING[9232]: chan_sip.c:6341 sip_write: Asked to transmit frame type slin, while native formats is 0x4 (ulaw) read/write = 0x4 (ulaw)/0x4 (ulaw)
[Nov 21 15:46:50] WARNING[9232]: chan_sip.c:6341 sip_write: Asked to transmit frame type slin, while native formats is 0x4 (ulaw) read/write = 0x4 (ulaw)/0x4 (ulaw)
При исходящем вызове такого нету
Код: Выделить всё
core show translation
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 siren7 siren14 slin16 g719 speex16 testlaw
g723 - - - - - - - - - - - - - - - - - - -
gsm - - 855 855 6736 1084 854 2067 - - - 5223 855 - - 856 - - 907
ulaw - 2991 - 1 5883 231 1 1214 - - - 4370 2 - - 3 - - 54
alaw - 3032 43 - 5924 272 42 1255 - - - 4411 43 - - 44 - - 95
g726aal2 - 3649 660 660 - 889 659 1872 - - - 5028 660 - - 661 - - 712
adpcm - 2991 2 2 5883 - 1 1214 - - - 4370 2 - - 3 - - 54
slin - 2990 1 1 5882 230 - 1213 - - - 4369 1 - - 2 - - 53
lpc10 - 4155 1166 1166 7047 1395 1165 - - - - 5534 1166 - - 1167 - - 1218
g729 - - - - - - - - - - - - - - - - - - -
speex - - - - - - - - - - - - - - - - - - -
ilbc - - - - - - - - - - - - - - - - - - -
g726 - 3892 903 903 6784 1132 902 2115 - - - - 903 - - 904 - - 955
g722 - 3604 615 615 6496 844 614 1827 - - - 4983 - - - 1 - - 667
siren7 - - - - - - - - - - - - - - - - - - -
siren14 - - - - - - - - - - - - - - - - - - -
slin16 - 6362 3373 3373 9254 3602 3372 4585 - - - 7741 2758 - - - - - 3425
g719 - - - - - - - - - - - - - - - - - - -
speex16 - - - - - - - - - - - - - - - - - - -
testlaw - 2991 2 2 5883 231 1 1214 - - - 4370 2 - - 3 - - -
Код: Выделить всё
core show codecs
Disclaimer: this command is for informational purposes only.
It does not indicate anything about your configuration.
INT BINARY HEX TYPE NAME DESCRIPTION
-----------------------------------------------------------------------------------
1 (1 << 0) (0x1) audio g723 (G.723.1)
2 (1 << 1) (0x2) audio gsm (GSM)
4 (1 << 2) (0x4) audio ulaw (G.711 u-law)
8 (1 << 3) (0x8) audio alaw (G.711 A-law)
16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2)
32 (1 << 5) (0x20) audio adpcm (ADPCM)
64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM)
128 (1 << 7) (0x80) audio lpc10 (LPC10)
256 (1 << 8) (0x100) audio g729 (G.729A)
512 (1 << 9) (0x200) audio speex (SpeeX)
1024 (1 << 10) (0x400) audio ilbc (iLBC)
2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551)
4096 (1 << 12) (0x1000) audio g722 (G722)
8192 (1 << 13) (0x2000) audio siren7 (ITU G.722.1 (Siren7, licensed from Polycom))
16384 (1 << 14) (0x4000) audio siren14 (ITU G.722.1 Annex C, (Siren14, licensed from Polycom))
32768 (1 << 15) (0x8000) audio slin16 (16 bit Signed Linear PCM (16kHz))
65536 (1 << 16) (0x10000) image jpeg (JPEG image)
131072 (1 << 17) (0x20000) image png (PNG image)
262144 (1 << 18) (0x40000) video h261 (H.261 Video)
524288 (1 << 19) (0x80000) video h263 (H.263 Video)
1048576 (1 << 20) (0x100000) video h263p (H.263+ Video)
2097152 (1 << 21) (0x200000) video h264 (H.264 Video)
4194304 (1 << 22) (0x400000) video mpeg4 (MPEG4 Video)
8388608 (1 << 23) (0x800000) video unknown (unknown)
16777216 (1 << 24) (0x1000000) video unknown (unknown)
33554432 (1 << 25) (0x2000000) text unknown (unknown)
67108864 (1 << 26) (0x4000000) text red (T.140 Realtime Text with redundancy)
134217728 (1 << 27) (0x8000000) text t140 (Passthrough T.140 Realtime Text)
268435456 (1 << 28) (0x10000000) text unknown (unknown)
536870912 (1 << 29) (0x20000000) text unknown (unknown)
1073741824 (1 << 30) (0x40000000) (unk) unknown (unknown)
2147483648 (1 << 31) (0x80000000) (unk) unknown (unknown)
4294967296 (1 << 32) (0x100000000) audio g719 (ITU G.719)
8589934592 (1 << 33) (0x200000000) audio speex16 (SpeeX 16khz)
17179869184 (1 << 34) (0x400000000) audio unknown (unknown)
34359738368 (1 << 35) (0x800000000) audio unknown (unknown)
68719476736 (1 << 36) (0x1000000000) audio unknown (unknown)
137438953472 (1 << 37) (0x2000000000) audio unknown (unknown)
274877906944 (1 << 38) (0x4000000000) audio unknown (unknown)
549755813888 (1 << 39) (0x8000000000) audio unknown (unknown)
1099511627776 (1 << 40) (0x10000000000) audio unknown (unknown)
2199023255552 (1 << 41) (0x20000000000) audio unknown (unknown)
4398046511104 (1 << 42) (0x40000000000) audio unknown (unknown)
8796093022208 (1 << 43) (0x80000000000) audio unknown (unknown)
17592186044416 (1 << 44) (0x100000000000) audio unknown (unknown)
35184372088832 (1 << 45) (0x200000000000) audio unknown (unknown)
70368744177664 (1 << 46) (0x400000000000) audio unknown (unknown)
140737488355328 (1 << 47) (0x800000000000) audio testlaw (G.711 test-law)
281474976710656 (1 << 48) (0x1000000000000) video unknown (unknown)
562949953421312 (1 << 49) (0x2000000000000) video unknown (unknown)
1125899906842624 (1 << 50) (0x4000000000000) video unknown (unknown)
2251799813685248 (1 << 51) (0x8000000000000) video unknown (unknown)
4503599627370496 (1 << 52) (0x10000000000000) video unknown (unknown)
9007199254740992 (1 << 53) (0x20000000000000) video unknown (unknown)
18014398509481984 (1 << 54) (0x40000000000000) video unknown (unknown)
36028797018963968 (1 << 55) (0x80000000000000) video unknown (unknown)
72057594037927936 (1 << 56) (0x100000000000000) video unknown (unknown)
144115188075855872 (1 << 57) (0x200000000000000) video unknown (unknown)
288230376151711744 (1 << 58) (0x400000000000000) video unknown (unknown)
576460752303423488 (1 << 59) (0x800000000000000) video unknown (unknown)
1152921504606846976 (1 << 60) (0x1000000000000000) video unknown (unknown)
2305843009213693952 (1 << 61) (0x2000000000000000) video unknown (unknown)
4611686018427387904 (1 << 62) (0x4000000000000000) video unknown (unknown)
Ясно что что-то не так со свистками,но куда копать не пойму.
Свистки подключены к хабам, и вродебы как не отваливаются
dongle show devices
Код: Выделить всё
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle1 21 Free 31 3 3 MTS UKR E1550 11.608.14.11.174 352445045062537 255013540676747 +380991676747
dongle3 21 Free 25 3 3 KYIVSTAR E171 11.126.85.01.143 354807043293000 255030004518232 Unknown
dongle2 21 Free 27 3 3 MTS UKR E1550 11.608.14.11.174 352445045429058 255013640344416 +380996344416
3 донгл для входящей связи не используется.