FreeCalypso > hg > themwi-system-sw
diff sip-out/readconf.c @ 156:0bacca1f2f7b
sip-out: handle all INVITE responses, except errors
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Oct 2022 07:13:55 -0800 |
parents | e54b0a9e322f |
children |
line wrap: on
line diff
--- a/sip-out/readconf.c Tue Oct 11 23:30:00 2022 -0800 +++ b/sip-out/readconf.c Wed Oct 12 07:13:55 2022 -0800 @@ -24,6 +24,7 @@ unsigned sip_linger_gotbye = 30; unsigned sip_linger_bye_out_ok = 5; unsigned sip_linger_bye_out_err = 180; +unsigned sip_linger_response_err = 180; int block_1900_numbers = 1; static char config_file_pathname[] = "/var/gsm/themwi-sip-out.cfg"; @@ -190,6 +191,10 @@ handler = handle_num; var = &sip_linger_bye_out_err; set_id = 0; + } else if (!strcmp(kw, "sip-linger-response-error")) { + handler = handle_num; + var = &sip_linger_response_err; + set_id = 0; } else if (!strcmp(kw, "max-forwards")) { handler = &handle_num; var = &max_forwards;