SOLVED Testing mod_bcg729

Status
Not open for further replies.

Daniele

Member
Feb 1, 2017
45
0
6
43
Hi,
I'm taking a try of mod_bcg729 (https://github.com/xadhoom/mod_bcg729). I was able to load the module:

Code:
type,name,ikey
codec,ADPCM (IMA),mod_spandsp
codec,AMR,mod_amr
codec,BroadVoice16 (BV16),mod_bv
codec,BroadVoice32 (BV32),mod_bv
codec,G.711 alaw,CORE_PCM_MODULE
codec,G.711 ulaw,CORE_PCM_MODULE
codec,G.722,mod_spandsp
codec,G.723.1 6.3k,mod_g723_1
codec,G.726 16k,mod_spandsp
codec,G.726 16k (AAL2),mod_spandsp
codec,G.726 24k,mod_spandsp
codec,G.726 24k (AAL2),mod_spandsp
codec,G.726 32k,mod_spandsp
codec,G.726 32k (AAL2),mod_spandsp
codec,G.726 40k,mod_spandsp
codec,G.726 40k (AAL2),mod_spandsp
codec,G.729,mod_bcg729
codec,GSM,mod_spandsp
codec,H.261 Video (passthru),mod_h26x
codec,H.263 Video (passthru),mod_h26x
codec,H.263+ Video (passthru),mod_h26x
codec,H.263++ Video (passthru),mod_h26x
codec,H.264 Video (passthru),mod_h26x
codec,LPC-10,mod_spandsp
codec,MP3,mod_shout
codec,PROXY PASS-THROUGH,CORE_PCM_MODULE
codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE
codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE
codec,Speex,CORE_SPEEX_MODULE
codec,VP8 Video,CORE_VPX_MODULE
codec,VP9 Video,CORE_VPX_MODULE

31 total.

Unfortunately when I make an internal call with SIP Phones (Grandstream or Lynksys) the call use always PCMA.
If I try to force the codec in the extension I've a "NOT SUPPORTED CODEC".

I set
global_codec_prefs: G.729,GSM,G7221@32000h,G7221@1
outbound_codec_prefs: G.729,GSM,PCMU,PCMA

Some hint?

Thanks
 

Daniele

Member
Feb 1, 2017
45
0
6
43
Thanks a lot. It worked. I'm still struggling with a problem when calls come in though. Internal calls now use G729 codec, calls that are coming from Voip provider instead arrive in PCMA (I'm sure the provider offert G729).
Infact then the call arrive I see:
Code:
dce8a2d4-c0ea-4e92-9011-4a9846dc1401
555    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=ptime:20
556    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=silenceSupp:off - - - -
557    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=fmtp:101 0-16
558    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:101 telephone-event/8000
559    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:3 GSM/8000
560    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:111 G726-32/8000
561    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=fmtp:18 annexb=no
562    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:18 G729/8000
563    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:9 G722/8000
564    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:0 PCMU/8000
565    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 a=rtpmap:8 PCMA/8000
566    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 m=audio 12960 RTP/AVP 8 0 9 18 111 3 101
567    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 t=0 0
568    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 c=IN IP4 87.238.10.15
569    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 s=Asterisk PBX 1.6.2.9
570    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 o=root 431812372 431812372 IN IP4 87.238.10.15
571    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 v=0

and then:

Code:
    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:3047 Set Codec sofia/external/0212345678@87.238.10.15 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
518    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4316 Set telephone-event payload to 101@8000
519    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
520    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
521    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G722:9:8000:20:64000:1]
522    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4455 Audio Codec Compare [GSM:3:8000:20:13200:1] ++++ is saved as a match
523    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [GSM:3:8000:20:13200:1]/[GSM:3:8000:20:13200:1]
524    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
525    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G726-32:111:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
526    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G726-32:111:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
527    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G726-32:111:8000:20:0:1]/[G722:9:8000:20:64000:1]
528    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G726-32:111:8000:20:0:1]/[GSM:3:8000:20:13200:1]
529    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G726-32:111:8000:20:0:1]/[G729:18:8000:20:8000:1]
530    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
531    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
532    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
533    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1]
534    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4455 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
535    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
536    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
537    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
538    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4455 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match
539    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]
540    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G722:9:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
541    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
542    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
543    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4455 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
544    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
545    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
546    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
547    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
548    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4455 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
549    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
550    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
551    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
552    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
553    dce8a2d4-c0ea-4e92-9011-4a9846dc1401 2017-03-21 09:10:28.139645 [DEBUG] switch_core_media.c:4400 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]

I remind that my outbound_codec_prefs = G729,GSM,PCMU,PCMA

Am I doing something wrong? Thanks
 
Status
Not open for further replies.