FreeCalypso > hg > themwi-system-sw
diff sip-in/readconf.c @ 104:ce3b1db7d1d7
sip-in: force-pcma-codec config option to use PCMA when both are offered
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2022 21:52:07 -0800 |
parents | a9137bdb6047 |
children | 0d6435808bcd |
line wrap: on
line diff
--- a/sip-in/readconf.c Mon Sep 26 20:46:19 2022 -0800 +++ b/sip-in/readconf.c Tue Sep 27 21:52:07 2022 -0800 @@ -17,6 +17,7 @@ struct in_addr sip_bind_ip; unsigned sip_bind_port; int cfg_use_100rel; +int cfg_force_pcma; unsigned cfg_retrans_timeout = 500; unsigned cfg_retrans_count = 10; unsigned max_forwards = 70; @@ -165,6 +166,10 @@ handler = handle_bool; var = &cfg_use_100rel; set_id = 0; + } else if (!strcmp(kw, "force-pcma-codec")) { + handler = handle_bool; + var = &cfg_force_pcma; + set_id = 0; } else if (!strcmp(kw, "sip-udp-retrans")) { handler = handle_retrans_conf; var = (void *) 0;