FreeCalypso > hg > themwi-system-sw
comparison rtp-mgr/ctrl_prot.c @ 183:3962d9345a09
rtp-mgr: use new EP type constant names
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 11 Mar 2023 21:48:23 -0800 |
| parents | 565477d07418 |
| children |
comparison
equal
deleted
inserted
replaced
| 182:f4ed6042e16c | 183:3962d9345a09 |
|---|---|
| 64 } | 64 } |
| 65 /* start preparing response */ | 65 /* start preparing response */ |
| 66 bzero(&resp, sizeof resp); | 66 bzero(&resp, sizeof resp); |
| 67 resp.transact_ref = req.transact_ref; | 67 resp.transact_ref = req.transact_ref; |
| 68 switch (req.ep_type) { | 68 switch (req.ep_type) { |
| 69 case TMGW_EP_TYPE_DUMMY_GSM: | 69 case TMGW_EP_TYPE_GSM_ONLY: |
| 70 case TMGW_EP_TYPE_DUMMY_PSTN: | 70 case TMGW_EP_TYPE_PSTN_ONLY: |
| 71 case TMGW_EP_TYPE_GATEWAY: | 71 case TMGW_EP_TYPE_GATEWAY: |
| 72 break; | 72 break; |
| 73 default: | 73 default: |
| 74 resp.res = RTP_ALLOC_ERR_PARAM; | 74 resp.res = RTP_ALLOC_ERR_PARAM; |
| 75 error_resp: send(fd, &resp, sizeof resp, 0); | 75 error_resp: send(fd, &resp, sizeof resp, 0); |
| 106 sizeof(struct sockaddr_in)); | 106 sizeof(struct sockaddr_in)); |
| 107 iov.iov_base = &resp; | 107 iov.iov_base = &resp; |
| 108 iov.iov_len = sizeof resp; | 108 iov.iov_len = sizeof resp; |
| 109 /* file descriptor passing voodoo */ | 109 /* file descriptor passing voodoo */ |
| 110 switch (req.ep_type) { | 110 switch (req.ep_type) { |
| 111 case TMGW_EP_TYPE_DUMMY_GSM: | 111 case TMGW_EP_TYPE_GSM_ONLY: |
| 112 num_fd = 2; | 112 num_fd = 2; |
| 113 fd_out[0] = rtp_gsm.rtp_fd; | 113 fd_out[0] = rtp_gsm.rtp_fd; |
| 114 fd_out[1] = rtp_gsm.rtcp_fd; | 114 fd_out[1] = rtp_gsm.rtcp_fd; |
| 115 break; | 115 break; |
| 116 case TMGW_EP_TYPE_DUMMY_PSTN: | 116 case TMGW_EP_TYPE_PSTN_ONLY: |
| 117 num_fd = 2; | 117 num_fd = 2; |
| 118 fd_out[0] = rtp_pstn.rtp_fd; | 118 fd_out[0] = rtp_pstn.rtp_fd; |
| 119 fd_out[1] = rtp_pstn.rtcp_fd; | 119 fd_out[1] = rtp_pstn.rtcp_fd; |
| 120 break; | 120 break; |
| 121 case TMGW_EP_TYPE_GATEWAY: | 121 case TMGW_EP_TYPE_GATEWAY: |
