portaudio callout only PCMA (but not G722)

Tamer Higazi th982a at googlemail.com
Wed Feb 12 14:20:46 UTC 2020


Hi people,

I try to figure out why I am only cappable to callout with portaudio
with PCMA and not with G722

In the dialplan I have this:

<action application="set" data="media_mix_inbound_outbound_codecs=true"/>

otherwise I am not capable to call out.
Do I need any other modules or codecs which I forgot to compile ?

When placing the call I see this:

2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[L16:100:48000:20:768000:1]
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5647 Audio Codec
Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5508 Set
telephone-event payload to 101 at 8000
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:3837 Set Codec
sofia/external/08000xxxxxx PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2020-02-12 15:02:57.593179 [DEBUG] switch_core_codec.c:111
sofia/external/08000xxxxxx Original read codec set to PCMA:8
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5851 Set
telephone-event payload to 101 at 8000
2020-02-12 15:02:57.593179 [DEBUG] switch_core_media.c:5909
sofia/external/08000xxxxxx Set 2833 dtmf send payload to 101 recv
payload to 101


When I call from my sip hard phone I see this:

2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5647 Audio Codec
Compare [G722:9:8000:20:64000:1] ++++ is saved as a match
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5647 Audio Codec
Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5592 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-02-12 15:09:10.253179 [DEBUG] switch_core_media.c:5647 Audio Codec
Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match


any ideas ?


best, Tamer




More information about the FreeSWITCH-users mailing list