FreeCalypso > hg > themwi-system-sw
comparison 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 |
comparison
equal
deleted
inserted
replaced
103:3b3f07b112f3 | 104:ce3b1db7d1d7 |
---|---|
15 #include <strings.h> | 15 #include <strings.h> |
16 | 16 |
17 struct in_addr sip_bind_ip; | 17 struct in_addr sip_bind_ip; |
18 unsigned sip_bind_port; | 18 unsigned sip_bind_port; |
19 int cfg_use_100rel; | 19 int cfg_use_100rel; |
20 int cfg_force_pcma; | |
20 unsigned cfg_retrans_timeout = 500; | 21 unsigned cfg_retrans_timeout = 500; |
21 unsigned cfg_retrans_count = 10; | 22 unsigned cfg_retrans_count = 10; |
22 unsigned max_forwards = 70; | 23 unsigned max_forwards = 70; |
23 | 24 |
24 static char config_file_pathname[] = "/var/gsm/themwi-sip-in.cfg"; | 25 static char config_file_pathname[] = "/var/gsm/themwi-sip-in.cfg"; |
163 set_id = 2; | 164 set_id = 2; |
164 } else if (!strcmp(kw, "use-100rel")) { | 165 } else if (!strcmp(kw, "use-100rel")) { |
165 handler = handle_bool; | 166 handler = handle_bool; |
166 var = &cfg_use_100rel; | 167 var = &cfg_use_100rel; |
167 set_id = 0; | 168 set_id = 0; |
169 } else if (!strcmp(kw, "force-pcma-codec")) { | |
170 handler = handle_bool; | |
171 var = &cfg_force_pcma; | |
172 set_id = 0; | |
168 } else if (!strcmp(kw, "sip-udp-retrans")) { | 173 } else if (!strcmp(kw, "sip-udp-retrans")) { |
169 handler = handle_retrans_conf; | 174 handler = handle_retrans_conf; |
170 var = (void *) 0; | 175 var = (void *) 0; |
171 set_id = 0; | 176 set_id = 0; |
172 } else if (!strcmp(kw, "max-forwards")) { | 177 } else if (!strcmp(kw, "max-forwards")) { |