Добрый день, вообщем проблема. При звонке с мобильного / на мобильный, очень сильный шум, но голос слышно.
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 slin16
g723 - - - - - - - - - - - - - -
gsm - - 2 2 4001 2 1 4001 - 8001 - 2 2 3
ulaw - 2 - 1 4001 2 1 4001 - 8001 - 2 2 3
alaw - 2 1 - 4001 2 1 4001 - 8001 - 2 2 3
g726aal2 - 2 2 2 - 2 1 4001 - 8001 - 2 2 3
adpcm - 2 2 2 4001 - 1 4001 - 8001 - 2 2 3
slin - 1 1 1 4000 1 - 4000 - 8000 - 1 1 2
lpc10 - 2 2 2 4001 2 1 - - 8001 - 2 2 3
g729 - - - - - - - - - - - - - -
speex - 4001 4001 4001 8000 4001 4000 8000 - - - 4001 4001 4002
ilbc - - - - - - - - - - - - - -
g726 - 2 2 2 4001 2 1 4001 - 8001 - - 2 3
g722 - 2 2 2 4001 2 1 4001 - 8001 - 2 - 1
slin16 - 4002 4002 4002 8001 4002 4001 8001 - 12001 - 4002 4000 -
В sip.conf
В разделе general:
disallow=all
allow=alaw,ulaw
У пользователей sip:
disallow=all
allow=alaw,ulaw
При звонке sip show channels:
Peer User/ANR Call ID Format Hold Last Message Expiry
192.168.1.100 Алексан� 0c6631c10f07bf4 0x40 (slin) No Init: INVITE
Что может быть? Почему format slin?
С система linux и asterisk знаком очень поверхностно, так что не пинайте за тупые вопросы и формулировки)
*CLI> core show channel Datacard/datacard1-3941 -
- General --
Name: Datacard/datacard1-3941
Type: Datacard
UniqueID: 1316718159.4
Caller ID: +79510677310
Caller ID Name: datacard1
DNID Digits: (N/A)
Language: en
State: Ring (4)
Rings: 1
NativeFormats: 0x40 (slin)
WriteFormat: 0x40 (slin)
ReadFormat: 0x40 (slin)
WriteTranscode: No
ReadTranscode: No
1st File Descriptor: 21
Frames in: 0
Frames out: 0
Time to Hangup: 0
Elapsed Time: 0h0m44s
Direct Bridge: <none>
Indirect Bridge: <none>
-- PBX --
Context: datacard-incoming
Extension: s
Priority: 1
Call Group: 0
Pickup Group: 0
Application: Dial
Data: SIP/101
Blocking in: ast_waitfor_nandfds
Variables:
DIALEDTIME=
ANSWEREDTIME=
DIALEDPEERNAME=
DIALEDPEERNUMBER=
DIALSTATUS=
IMSI=250993167342412
IMEI=359390023273768
PROVIDER=Beeline
DATACARD=datacard1
CDR Variables:
level 1: clid="datacard1" <+79510677310>
level 1: src=+79510677310
level 1: dst=s
level 1: dcontext=datacard-incoming
level 1: channel=Datacard/datacard1-3941
level 1: dstchannel=SIP/101-00000002
level 1: lastapp=Dial
level 1: lastdata=SIP/101
level 1: start=2011-09-22 23:02:39
level 1: duration=43
level 1: billsec=0
level 1: disposition=NO ANSWER
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1316718159.4
*CLI> core show channel SIP/101-00000002
Name: SIP/101-00000002
Type: SIP
UniqueID: 1316718159.5
Caller ID: s
Caller ID Name: (N/A)
DNID Digits: (N/A)
Language: ru
State: Ringing (5)
Rings: 0
NativeFormats: 0x40 (slin)
WriteFormat: 0x40 (slin)
ReadFormat: 0x40 (slin)
WriteTranscode: No
ReadTranscode: No
1st File Descriptor: 25
Frames in: 1
Frames out: 0
Time to Hangup: 0
Elapsed Time: 0h0m20s
Direct Bridge: <none>
Indirect Bridge: <none>
-- PBX --
Context: inside
Extension: s
Priority: 1
Call Group: 2
Pickup Group: 2
Application: AppDial
Data: (Outgoing Line)
Blocking in: ast_waitfor_nandfds
Variables:
DIALEDPEERNUMBER=101
SIPCALLID=731dd9f0128bdf9363c84a3f1a8db332@192.168.1.180
CDR Variables:
level 1: dst=s
level 1: dcontext=inside
level 1: channel=SIP/101-00000002
level 1: start=2011-09-22 23:02:39
level 1: duration=19
level 1: billsec=0
level 1: disposition=NO ANSWER
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1316718159.5
*CLI> sip show peer 101
* Name : 101
Secret : <Set>
MD5Secret : <Not set>
Context : inside
Subscr.Cont. : <Not set>
Language : ru
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup : 1
Pickupgroup : 1
Mailbox : 101
VM Extension : asterisk
LastMsgsSent : 32767/65535
Call limit : 0
Dynamic : Yes
Callerid : "New User" <>
MaxCallBR : 384 kbps
Expire : 3474
Insecure : no
Nat : RFC3581
ACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: -1
CanReinvite : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : No
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 192.168.1.2 Port 43196
Defaddr->IP : 0.0.0.0 Port 5060
Transport : UDP
Def. Username: Александр
SIP Options : (none)
Codecs : 0xc (ulaw|alaw)
Codec Order : (alaw:20,ulaw:20)
Auto-Framing : No
100 on REG : No
Status : Unmonitored
Useragent : X-Lite release 1011s stamp 41150
Reg. Contact : sip:101@192.168.1.2:43196;rinstance=8f181f043f91829a
Qualify Freq : 60000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
Parkinglot :
а как выполнить команду asterisk -rx 'sip show peer 101' | grep Codecs не совсем понял
*CLI> core show channel Datacard/datacard1-7399
-- General --
Name: Datacard/datacard1-7399
Type: Datacard
UniqueID: 1316721661.1
Caller ID: +79510677310
Caller ID Name: datacard1
DNID Digits: (N/A)
Language: en
State: Up (6)
Rings: 1
NativeFormats: 0x40 (slin)
WriteFormat: 0x40 (slin)
ReadFormat: 0x40 (slin)
WriteTranscode: No
ReadTranscode: No
1st File Descriptor: 18
Frames in: 5105
Frames out: 2551
Time to Hangup: 0
Elapsed Time: 0h0m51s
Direct Bridge: <none>
Indirect Bridge: <none>
-- PBX --
Context: datacard-incoming
Extension: s
Priority: 2
Call Group: 0
Pickup Group: 0
Application: MusicOnHold
Data: (Empty)
Blocking in: ast_waitfor_nandfds
Variables:
IMSI=250993167342412
IMEI=359390023273768
PROVIDER=Beeline
DATACARD=datacard1
CDR Variables:
level 1: clid="datacard1" <+79510677310>
level 1: src=+79510677310
level 1: dst=s
level 1: dcontext=datacard-incoming
level 1: channel=Datacard/datacard1-7399
level 1: lastapp=MusicOnHold
level 1: start=2011-09-23 00:01:01
level 1: answer=2011-09-23 00:01:01
level 1: duration=51
level 1: billsec=51
level 1: disposition=ANSWERED
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1316721661.1
Задан: 2011-09-21 20:31:12 +0400
Просмотрен: 1,677 раз
Обновлен: Sep 21 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.