setting mod_portaudio priority codec call out
Hi people, I am looking to configure the priority codec with mod_portaudio. When I make an outbound call, pa uses PCMA as primary codec... When I receive from the same person a call, G722 is used. Any chance enforcing G722 as priority codec with PCMA as fallback by placing an outbound call? Thank you console output: o=root 1240735378 1240735378 IN IP4 21x.xx.xxx.xxx s=Asterisk PBX 11.21.1 c=IN IP4 21x.xx.xxx.xxx t=0 0 m=audio 12878 RTP/AVP 8 0 9 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:9 G722/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 2020-02-03 07:56:26.478728 [NOTICE] sofia.c:7314 Pre-Answer sofia/external/xxxxxxxxxx! 2020-02-03 07:56:26.478728 [DEBUG] mod_portaudio.c:809 portaudio/1xxxxxxxxxx CHANNEL KILL 2020-02-03 07:56:26.478728 [DEBUG] switch_channel.c:3565 (sofia/external/xxxxxxxxxx) Callstate Change DOWN -> EARLY 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[L16:100:48000:20:768000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5647 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[L16:100:48000:20:768000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5647 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [G722:9:8000:20:64000:1]/[L16:100:48000:20:768000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5647 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5508 Set telephone-event payload to 101@8000 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:3837 Set Codec sofia/external/xxxxxxxxxx PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2020-02-03 07:56:26.478728 [DEBUG] switch_core_codec.c:111 sofia/external/xxxxxxxxxx Original read codec set to PCMA:8 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5851 Set telephone-event payload to 101@8000 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:5909 sofia/external/xxxxxxxxxx Set 2833 dtmf send payload to 101 recv payload to 101 2020-02-03 07:56:26.478728 [DEBUG] switch_core_media.c:8659 AUDIO RTP [sofia/external/xxxxxxxxxx] 84.75.67.75 port 32108 -> 21x.xx.xxx.xxx port 12878 codec: 8 ms: 20 2020-02-03 07:56:26.478728 [DEBUG] switch_rtp.c:4408 Starting timer [soft] 160 bytes per 20ms 2020-02-03 07:56:26.498733 [DEBUG] switch_core_media.c:8973 sofia/external/xxxxxxxxxx Set 2833 dtmf send payload to 101 2020-02-03 07:56:26.498733 [DEBUG] switch_core_media.c:8980 sofia/external/xxxxxxxxxx Set 2833 dtmf receive payload to 101 2020-02-03 07:56:26.498733 [DEBUG] switch_core_media.c:9003 sofia/external/xxxxxxxxxx Set rtp dtmf delay to 40 2020-02-03 07:56:26.498733 [DEBUG] switch_ivr_originate.c:3809 Originate Resulted in Success: [sofia/external/xxxxxxxxxx] 2020-02-03 07:56:26.498733 [DEBUG] mod_portaudio.c:809 portaudio/1xxxxxxxxxx CHANNEL KILL 2020-02-03 07:56:26.498733 [DEBUG] mod_portaudio.c:809 portaudio/1xxxxxxxxxx CHANNEL KILL 2020-02-03 07:56:26.498733 [DEBUG] switch_channel.c:2130 (portaudio/1xxxxxxxxxx) Callstate Change RING_WAIT -> ACTIVE 2020-02-03 07:56:26.498733 [DEBUG] mod_portaudio.c:809 portaudio/1xxxxxxxxxx CHANNEL KILL 2020-02-03 07:56:26.498733 [DEBUG] mod_portaudio.c:809 portaudio/1xxxxxxxxxx CHANNEL KILL 2020-02-03 07:56:26.498733 [DEBUG] switch_ivr_bridge.c:1796 (sofia/external/xxxxxxxxxx) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2020-02-03 07:56:26.498733 [DEBUG] switch_core_state_machine.c:585 (sofia/external/xxxxxxxxxx) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 2)
participants (1)
-
Tamer Higazi