FreeCalypso > hg > themwi-interim
comparison mtctest/sig_handler.c @ 6:33d8b3177540
mtctest compiles in the new environment
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 09 Jun 2024 01:55:28 +0000 |
parents | e7b192a5dee5 |
children | 0ec938ed530b |
comparison
equal
deleted
inserted
replaced
5:e7b192a5dee5 | 6:33d8b3177540 |
---|---|
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 #include <stdlib.h> | 12 #include <stdlib.h> |
13 #include <string.h> | 13 #include <string.h> |
14 #include <strings.h> | 14 #include <strings.h> |
15 #include <themwi/rtp/rtp_alloc_simple.h> | |
15 #include "../include/mncc.h" | 16 #include "../include/mncc.h" |
16 #include "../include/gsm48_const.h" | 17 #include "../include/gsm48_const.h" |
17 | 18 |
18 extern int disconnect_mode; | 19 extern int disconnect_mode; |
19 extern struct sockaddr_storage dummy_rtp_endp; | 20 extern struct rtp_alloc_simple rtp_info; |
20 extern struct timeval cur_event_time; | 21 extern struct timeval cur_event_time; |
21 | 22 |
22 static void | 23 static void |
23 print_bearer_cap(bcap) | 24 print_bearer_cap(bcap) |
24 struct gsm_mncc_bearer_cap *bcap; | 25 struct gsm_mncc_bearer_cap *bcap; |
195 | 196 |
196 printf("Sending MNCC_RTP_CONNECT\n"); | 197 printf("Sending MNCC_RTP_CONNECT\n"); |
197 bzero(&rtp, sizeof(struct gsm_mncc_rtp)); | 198 bzero(&rtp, sizeof(struct gsm_mncc_rtp)); |
198 rtp.msg_type = MNCC_RTP_CONNECT; | 199 rtp.msg_type = MNCC_RTP_CONNECT; |
199 rtp.callref = 1; | 200 rtp.callref = 1; |
200 bcopy(&dummy_rtp_endp, &rtp.addr, sizeof(struct sockaddr_storage)); | 201 bcopy(&rtp_info.gsm_addr, &rtp.addr, sizeof(struct sockaddr_storage)); |
201 send_mncc_to_gsm(&rtp, sizeof(struct gsm_mncc_rtp)); | 202 send_mncc_to_gsm(&rtp, sizeof(struct gsm_mncc_rtp)); |
202 } | 203 } |
203 | 204 |
204 static void | 205 static void |
205 handle_dtmf_time() | 206 handle_dtmf_time() |