Skip to content

Instantly share code, notes, and snippets.

@elcontrastador
Last active February 16, 2018 03:35
Show Gist options
  • Save elcontrastador/383e7ec02a6e0f7a9a5ba8d0d65d9e39 to your computer and use it in GitHub Desktop.
Save elcontrastador/383e7ec02a6e0f7a9a5ba8d0d65d9e39 to your computer and use it in GitHub Desktop.
lab-voip1*CLI> core show codecs
Disclaimer: this command is for informational purposes only.
It does not indicate anything about your configuration.
ID TYPE NAME FORMAT DESCRIPTION
------------------------------------------------------------------------------------------------
31 image png png (PNG Image)
6 audio g726 g726 (G.726 RFC3551)
4 audio alaw alaw (G.711 a-law)
2 audio g723 g723 (G.723.1)
20 audio speex speex (SpeeX)
21 audio speex speex16 (SpeeX 16khz)
22 audio speex speex32 (SpeeX 32khz)
24 audio g722 g722 (G722)
25 audio siren7 siren7 (ITU G.722.1 (Siren7, licensed from Polycom))
32 video h261 h261 (H.261 video)
33 video h263 h263 (H.263 video)
8 audio adpcm adpcm (Dialogic ADPCM)
43 audio silk silk8 (SILK Codec (8 KHz))
44 audio silk silk12 (SILK Codec (12 KHz))
45 audio silk silk16 (SILK Codec (16 KHz))
46 audio silk silk24 (SILK Codec (24 KHz))
28 audio g719 g719 (ITU G.719)
34 video h263p h263p (H.263+ video)
35 video h264 h264 (H.264 video)
19 audio g729 g729 (G.729A)
9 audio slin slin (16 bit Signed Linear PCM)
10 audio slin slin12 (16 bit Signed Linear PCM (12kHz))
11 audio slin slin16 (16 bit Signed Linear PCM (16kHz))
12 audio slin slin24 (16 bit Signed Linear PCM (24kHz))
13 audio slin slin32 (16 bit Signed Linear PCM (32kHz))
14 audio slin slin44 (16 bit Signed Linear PCM (44kHz))
15 audio slin slin48 (16 bit Signed Linear PCM (48kHz))
16 audio slin slin96 (16 bit Signed Linear PCM (96kHz))
17 audio slin slin192 (16 bit Signed Linear PCM (192kHz))
3 audio ulaw ulaw (G.711 u-law)
18 audio lpc10 lpc10 (LPC10)
27 audio testlaw testlaw (G.711 test-law)
42 audio none none (<Null> codec)
41 image t38 t38 (T.38 UDPTL Fax)
38 video vp9 vp9 (VP9 video)
37 video vp8 vp8 (VP8 video)
5 audio gsm gsm (GSM)
36 video mpeg4 mpeg4 (MPEG4 video)
23 audio ilbc ilbc (iLBC)
39 text red red (T.140 Realtime Text with redundancy)
40 text t140 t140 (Passthrough T.140 Realtime Text)
29 audio opus opus (Opus Codec)
30 image jpeg jpeg (JPEG image)
7 audio g726aal2 g726aal2 (G.726 AAL2)
1 audio codec2 codec2 (Codec 2)
26 audio siren14 siren14 (ITU G.722.1 Annex C, (Siren14, licensed from Polycom))
#pjsip
[1110]
type = endpoint
context = oneif_pbxin
disallow = all
allow = siren14,slin,g722,ulaw,alaw
transport = transport_udp_nat
auth = oneif_lab_auth
aors = 1110
direct_media = no
mailboxes = 1110@oneif-lab
trust_id_outbound=yes
callerid=Main Phone <1110>
force_rport=yes
rtp_symmetric=yes
[1101]
type = endpoint
context = oneif_pbxin
disallow = all
allow = siren14,slin,g722,ulaw,alaw
transport = transport_udp_nat
auth = oneif_lab_auth
aors = 1101
direct_media = no
mailboxes = 1101@oneif-lab
trust_id_outbound=yes
callerid=1if p601 <1101>
force_rport=yes
rtp_symmetric=yes
lab-voip1*CLI> module show like siren
Module Description Use Count Status Support Level
format_siren14.so ITU G.722.1 Annex C (Siren14, licensed f 0 Running core
format_siren7.so ITU G.722.1 (Siren7, licensed from Polyc 0 Running core
res_format_attr_siren14.so Siren14 Format Attribute Module 1 Running core
res_format_attr_siren7.so Siren7 Format Attribute Module 1 Running core
4 modules loaded
== Setting global variable 'SIPDOMAIN' to 'lab-voip1.oneif.net'
-- Executing [1101@oneif_pbxin:1] Answer("PJSIP/1110-00000004", "") in new stack
-- Executing [1101@oneif_pbxin:2] Dial("PJSIP/1110-00000004", "PJSIP/1101/,20,tT") in new stack
-- Called PJSIP/1101/
-- PJSIP/1101-00000005 is ringing
[Feb 15 19:34:21] WARNING[112000][C-00000003]: channel.c:5507 set_format: Unable to find a codec translation path: (slin) -> (siren14)
[Feb 15 19:34:21] WARNING[112000][C-00000003]: indications.c:140 playtones_alloc: Unable to set 'PJSIP/1110-00000004' to signed linear format (write)
[Feb 15 19:34:21] WARNING[112000][C-00000003]: channel.c:4561 indicate_data_internal: Unable to handle indication 3 for 'PJSIP/1110-00000004'
-- PJSIP/1101-00000005 answered PJSIP/1110-00000004
-- Channel PJSIP/1101-00000005 joined 'simple_bridge' basic-bridge <1e139537-16bf-4a87-8656-3c0c4df6f14f>
-- Channel PJSIP/1110-00000004 joined 'simple_bridge' basic-bridge <1e139537-16bf-4a87-8656-3c0c4df6f14f>
lab-voip1*CLI> pjsip show channelstats
...........Receive......... .........Transmit..........
BridgeId ChannelId ........ UpTime.. Codec. Count Lost Pct Jitter Count Lost Pct Jitter RTT....
===========================================================================================================
1e139537 1101-00000005 00:00:20 siren1 838 0 0 0.000 840 1 0 0.003 0.001
1e139537 1110-00000004 00:00:20 siren1 980 0 0 0.000 838 0 0 0.002 0.001
Objects found: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment