FreeCalypso > hg > themwi-system-sw
comparison sip-out/main.c @ 257:cb440d003976
sip-out: add libnumdb2 infra in prep for E911 routing
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 15 Aug 2023 10:50:37 -0800 |
parents | e54b0a9e322f |
children |
comparison
equal
deleted
inserted
replaced
256:63252528a56c | 257:cb440d003976 |
---|---|
42 struct timeval timeout; | 42 struct timeval timeout; |
43 time_t dead_sip_time; | 43 time_t dead_sip_time; |
44 | 44 |
45 openlog("themwi-sip-out", 0, LOG_LOCAL5); | 45 openlog("themwi-sip-out", 0, LOG_LOCAL5); |
46 read_config_file(); | 46 read_config_file(); |
47 if (read_number_db() < 0) { | |
48 fprintf(stderr, "error reading number database\n"); | |
49 exit(1); | |
50 } | |
47 if (read_out_routes_db() < 0) { | 51 if (read_out_routes_db() < 0) { |
48 fprintf(stderr, "error reading out-routes.bin database\n"); | 52 fprintf(stderr, "error reading out-routes.bin database\n"); |
49 exit(1); | 53 exit(1); |
50 } | 54 } |
51 if (create_outcall_socket() < 0) { | 55 if (create_outcall_socket() < 0) { |