Не могу подключить кодек h264. Кодеки в папке modules есть
В настройках core show codecs отображаются.
Но при проверки sip show settings видит только аудио. Подскажите решение.спасибо
Код: Выделить всё
[general]
videosupport=yes
allow=alaw
allow=ulaw
allow=h264
Код: Выделить всё
localhost*CLI> sip show settings
Global Settings:
----------------
UDP Bindaddress: 0.0.0.0:5060
TCP SIP Bindaddress: Disabled
TLS SIP Bindaddress: Disabled
Videosupport: Yes
Textsupport: No
Ignore SDP sess. ver.: No
AutoCreate Peer: No
Match Auth Username: No
Allow unknown access: Yes
Allow subscriptions: Yes
Allow overlap dialing: Yes
Allow promisc. redir: No
Enable call counters: No
SIP domain support: No
Realm. auth: No
Our auth realm asterisk
Use domains as realms: No
Call to non-local dom.: Yes
URI user is phone no: No
Always auth rejects: Yes
Direct RTP setup: No
User Agent: FPBX-2.10.0rc1(1.8.11)
SDP Session Name: Asterisk PBX 1.8.11-cert1
SDP Owner Name: root
Reg. context: (not set)
Regexten on Qualify: No
Legacy userfield parse: No
Caller ID: Unknown
From: Domain:
Record SIP history: Off
Call Events: Off
Auth. Failure Events: Off
T.38 support: No
T.38 EC mode: Unknown
T.38 MaxDtgrm: -1
SIP realtime: Disabled
Qualify Freq : 60000 ms
Q.850 Reason header: No
Store SIP_CAUSE: No
Network QoS Settings:
---------------------------
IP ToS SIP: CS3
IP ToS RTP audio: EF
IP ToS RTP video: AF41
IP ToS RTP text: CS0
802.1p CoS SIP: 4
802.1p CoS RTP audio: 5
802.1p CoS RTP video: 6
802.1p CoS RTP text: 5
Jitterbuffer enabled: No
Network Settings:
---------------------------
SIP address remapping: Disabled, no localnet list
Externhost: <none>
Externaddr: (null)
Externrefresh: 10
Global Signalling Settings:
---------------------------
Codecs: 0xc (ulaw|alaw)
Codec Order: ulaw:20,alaw:20
Relax DTMF: No
RFC2833 Compensation: No
Symmetric RTP: No
Compact SIP headers: No
RTP Keepalive: 0 (Disabled)
RTP Timeout: 0 (Disabled)
RTP Hold Timeout: 0 (Disabled)
MWI NOTIFY mime type: application/simple-message-summary
DNS SRV lookup: Yes
Pedantic SIP support: Yes
Reg. min duration 60 secs
Reg. max duration: 3600 secs
Reg. default duration: 120 secs
Outbound reg. timeout: 20 secs
Outbound reg. attempts: 0
Notify ringing state: Yes
Include CID: No
Notify hold state: Yes
SIP Transfer mode: open
Max Call Bitrate: 384 kbps
Auto-Framing: No
Outb. proxy: <not set>
Session Timers: Accept
Session Refresher: uas
Session Expires: 1800 secs
Session Min-SE: 90 secs
Timer T1: 500
Timer T1 minimum: 100
Timer B: 32000
No premature media: Yes
Max forwards: 70
Default Settings:
-----------------
Allowed transports: UDP
Outbound transport: UDP
Context: from-sip-external
Force rport: Yes
DTMF: rfc2833
Qualify: 0
Use ClientCode: No
Progress inband: Never
Language:
MOH Interpret: default
MOH Suggest:
Voice Mail Extension: *97
Код: Выделить всё
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)
localhost*CLI>
Код: Выделить всё
load => format_h264.so
Код: Выделить всё
[root@localhost modules]# ls
app_adsiprog.so
app_alarmreceiver.so
app_amd.so
app_authenticate.so
app_cdr.so
app_celgenuserevent.so
app_chanisavail.so
app_channelredirect.so
app_chanspy.so
app_confbridge.so
app_controlplayback.so
app_dahdibarge.so
app_dahdiras.so
app_db.so
app_dial.so
app_dictate.so
app_directed_pickup.so
app_directory.so
app_disa.so
app_dumpchan.so
app_echo.so
app_exec.so
app_externalivr.so
app_festival.so
app_flash.so
app_followme.so
app_forkcdr.so
app_getcpeid.so
app_ices.so
app_image.so
app_macro.so
app_meetme.so
app_milliwatt.so
app_minivm.so
app_mixmonitor.so
app_morsecode.so
app_mp3.so
app_nbscat.so
app_originate.so
app_page.so
app_parkandannounce.so
app_playback.so
app_playtones.so
app_privacy.so
app_queue.so
app_readexten.so
app_readfile.so
app_read.so
app_record.so
app_sayunixtime.so
app_senddtmf.so
app_sendtext.so
app_setcallerid.so
app_sms.so
app_softhangup.so
app_speech_utils.so
app_stack.so
app_system.so
app_talkdetect.so
app_test.so
app_transfer.so
app_url.so
app_userevent.so
app_verbose.so
app_voicemail.so
app_waitforring.so
app_waitforsilence.so
app_waituntil.so
app_while.so
app_zapateller.so
bridge_builtin_features.so
bridge_multiplexed.so
bridge_simple.so
bridge_softmix.so
cdr_csv.so
cdr_custom.so
cdr_manager.so
cdr_syslog.so
cel_custom.so
cel_manager.so
chan_agent.so
chan_bridge.so
chan_dahdi.so
chan_iax2.so
chan_local.so
chan_multicast_rtp.so
chan_oss.so
chan_phone.so
chan_sip.so
chan_skinny.so
chan_unistim.so
codec_adpcm.so
codec_alaw.so
codec_a_mu.so
codec_dahdi.so
codec_g722.so
codec_g726.so
codec_gsm.so
codec_ilbc.so
codec_lpc10.so
codec_ulaw.so
format_g719.so
format_g723.so
format_g726.so
format_g729.so
format_gsm.so
format_h263.so
format_h264.so
format_ilbc.so
format_jpeg.so
format_pcm.so
format_siren14.so
format_siren7.so
format_sln16.so
format_sln.so
format_vox.so
format_wav_gsm.so
format_wav.so
func_aes.so
func_audiohookinherit.so
func_base64.so
func_blacklist.so
func_callcompletion.so
func_callerid.so
func_cdr.so
func_channel.so
func_config.so
func_cut.so
func_db.so
func_devstate.so
func_dialgroup.so
func_dialplan.so
func_enum.so
func_env.so
func_extstate.so
func_frame_trace.so
func_global.so
func_groupcount.so
func_iconv.so
func_lock.so
func_logic.so
func_math.so
func_md5.so
func_module.so
func_pitchshift.so
func_presence_state.so
func_rand.so
func_realtime.so
func_sha1.so
func_shell.so
func_sprintf.so
func_srv.so
func_strings.so
func_sysinfo.so
func_timeout.so
func_uri.so
func_version.so
func_vmcount.so
func_volume.so
pbx_ael.so
pbx_config.so
pbx_dundi.so
pbx_loopback.so
pbx_realtime.so
pbx_spool.so
res_adsi.so
res_ael_share.so
res_agi.so
res_calendar.so
res_clialiases.so
res_clioriginate.so
res_convert.so
res_crypto.so
res_digium_phone.so
res_fax.so
res_limit.so
res_monitor.so
res_musiconhold.so
res_mutestream.so
res_phoneprov.so
res_realtime.so
res_rtp_asterisk.so
res_rtp_multicast.so
res_security_log.so
res_smdi.so
res_speech.so
res_stun_monitor.so
res_timing_dahdi.so
res_timing_pthread.so
Код: Выделить всё
videosupport=yes
maxcallbitrate=384
allow=h264
Да ну? Вот прямо так и установлен? Кто же его установил? И, если установил, то почему нету codec_h264.so?mikeles писал(а):Я улавливаю. Но это видео, и вроде как пишут что он именно так подгружается.
B как видите, в core show codecs все нормально отображается, видеокодек установлен!
Хочется Вас просто потроллить власть!mikeles писал(а):Подскажите пожалуйста, где можно найти codec_h264.so?
switch писал(а):Модуль для этого кодека не нужен, так как астериск не занимается его перекодированием, а просто пропускает трафик насквозь. Следовательно вся поддержка заключается в корректном распознавании соответствующего значения в SDP