FreeCalypso > hg > sipout-test-utils
comparison test-fsk/main.c @ 6:ba66d297fe57
test-fsk: first attempt at modem Rx
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 04 Mar 2024 23:21:07 -0800 |
parents | 030d52b96a23 |
children |
comparison
equal
deleted
inserted
replaced
5:e80b0051cd92 | 6:ba66d297fe57 |
---|---|
138 sip_dest_sin.sin_port = htons(sip_dest_port); | 138 sip_dest_sin.sin_port = htons(sip_dest_port); |
139 sprintf(from_uri, "<sip:%s@%s>;tag=out%u", argv[optind+1], | 139 sprintf(from_uri, "<sip:%s@%s>;tag=out%u", argv[optind+1], |
140 inet_ntoa(sip_bind_ip), ntohs(rtp_local_addr.sin_port)); | 140 inet_ntoa(sip_bind_ip), ntohs(rtp_local_addr.sin_port)); |
141 sprintf(to_uri, "sip:%s@%s", argv[optind+2], sip_dest_domain); | 141 sprintf(to_uri, "sip:%s@%s", argv[optind+2], sip_dest_domain); |
142 select_modulation(argv[optind+3]); | 142 select_modulation(argv[optind+3]); |
143 init_modem_rx(); | |
143 if (logfile) { | 144 if (logfile) { |
144 rc = open_sip_log_file(logfile); | 145 rc = open_sip_log_file(logfile); |
145 if (rc < 0) | 146 if (rc < 0) |
146 exit(1); /* error msg already printed */ | 147 exit(1); /* error msg already printed */ |
147 } | 148 } |