Есть две компании, в которых я работаю.
В первой установлен AsteriskNOW 1.7, во второй так же.
С кодеками ничего не делал, стоят по умолчанию. На любые номера звоню и разговариваю без проблем, а вот на SIP номера тишина.
Полагаю, что нужен некий кодек. Тогда какой?
Причин отсутствия звука при вызове - множество. В случае если кодеки вашей системы и удаленной не совпадают, то вызов просто не установится в консоли будут видны соответствующие ошибки. Наиболее возможные причины отсутствия звука неправильно настроенный фаервол или NAT
Packet2Packet bridging SIP/109-000004be and SIP/009
попробуй добавить параметр t в команде диал и в клиенте canreinvite=no
Лог звонка с SIP на SIP. Честно говоря не знаю, есть ли в логе ошибки.
== Parsing '/etc/asterisk/asterisk.conf': == Found
Connected to Asterisk 1.6.2.11 currently running on localhost (pid = 29125)
Verbosity was 3 and is now 15
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [302179@from-internal:1] Macro("SIP/109-000004be", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/109-000004be", "AMPUSER=109") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/109-000004be", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/109-000004be", "1?Set(REALCALLERIDNUM=109)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/109-000004be", "AMPUSER=109") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/109-000004be", "AMPUSERCIDNAME=Sysadmin") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/109-000004be", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/109-000004be", "AMPUSERCID=109") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/109-000004be", "CALLERID(all)="Sysadmin" <109>") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/109-000004be", "1?continue") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [s@macro-user-callerid:18] Set("SIP/109-000004be", "CALLERID(number)=109") in new stack
-- Executing [s@macro-user-callerid:19] Set("SIP/109-000004be", "CALLERID(name)=Sysadmin") in new stack
-- Executing [s@macro-user-callerid:20] NoOp("SIP/109-000004be", "Using CallerID "Sysadmin" <109>") in new stack
-- Executing [302179@from-internal:2] Set("SIP/109-000004be", "_NODEST=") in new stack
-- Executing [302179@from-internal:3] Macro("SIP/109-000004be", "record-enable,109,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/109-000004be", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/109-000004be", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/109-000004be", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/109-000004be", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/109-000004be", "1?MacroExit()") in new stack
-- Executing [302179@from-internal:4] Macro("SIP/109-000004be", "dialout-trunk,2,302179,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/109-000004be", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/109-000004be", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/109-000004be", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/109-000004be", "DIAL_NUMBER=302179") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/109-000004be", "DIAL_TRUNK_OPTIONS=trT") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/109-000004be", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/109-000004be", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/109-000004be", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/109-000004be", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/109-000004be", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/109-000004be", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/109-000004be", "0?Set(REALCALLERIDNUM=109)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/109-000004be", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/109-000004be", "USEROUTCID=109") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/109-000004be", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/109-000004be", "TRUNKOUTCID=302555") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/109-000004be", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/109-000004be", "1?Set(CALLERID(all)=302555)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/109-000004be", "1?Set(CALLERID(all)=109)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/109-000004be", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/109-000004be", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/109-000004be", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/109-000004be", "OUTNUM=302179") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/109-000004be", "custom=SIP/009") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/109-000004be", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/109-000004be", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/109-000004be", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/109-000004be", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/109-000004be", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/109-000004be", "SIP/009/302179,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called 009/302179
-- SIP/009-000004bf answered SIP/109-000004be
-- Packet2Packet bridging SIP/109-000004be and SIP/009-000004bf
-- Executing [h@macro-dial:1] Macro("SIP/107-000004bc", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/107-000004bc", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/107-000004bc", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/107-000004bc", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/107-000004bc", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/107-000004bc' in macro 'hangupcall'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/107-000004bc' in macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/107-000004bc' in macro 'exten-vm'
== Spawn extension (from-internal, 103, 1) exited non-zero on 'SIP/107-000004bc'
это решается параметрами команды Dial попробуйте в аргументах Dial(....,r)
смотрите в extentions.conf и http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
core show translations
вывод в студию
Вывод core show translation:
localhost*CLI> 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
g723 - - - - - - - - - - - - - - - -
gsm - - 1001 1001 4000 1001 1000 3000 - - - 3999 2000 - - 2999
ulaw - 2000 - 1 3001 2 1 2001 - - - 3000 1001 - - 2000
alaw - 2000 1 - 3001 2 1 2001 - - - 3000 1001 - - 2000
g726aal2 - 2999 1001 1001 - 1001 1000 3000 - - - 3999 2000 - - 2999
adpcm - 2000 2 2 3001 - 1 2001 - - - 3000 1001 - - 2000
slin - 1999 1 1 3000 1 - 2000 - - - 2999 1000 - - 1999
lpc10 - 2999 1001 1001 4000 1001 1000 - - - - 3999 2000 - - 2999
g729 - - - - - - - - - - - - - - - -
speex - - - - - - - - - - - - - - - -
ilbc - - - - - - - - - - - - - - - -
g726 - 2000 2 2 3001 2 1 2001 - - - - 1001 - - 2000
g722 - 2999 1001 1001 4000 1001 1000 3000 - - - 3999 - - - 999
siren7 - - - - - - - - - - - - - - - -
siren14 - - - - - - - - - - - - - - - -
slin16 - 3999 2001 2001 5000 2001 2000 4000 - - - 4999 1000 - - -
localhost*CLI>
Задан: 2011-04-26 14:50:38 +0400
Просмотрен: 4,511 раз
Обновлен: May 03 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.