comparison sip-in/mncc_handle.c @ 84:f82157ac7303

sip-in: handle MNCC_RTP_CREATE
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Sep 2022 22:44:44 -0800
parents 3e3fbf44f9d7
children 70c3c8ebee33
comparison
equal deleted inserted replaced
83:3e3fbf44f9d7 84:f82157ac7303
179 syslog(LOG_CRIT, 179 syslog(LOG_CRIT,
180 "error: Rx MNCC message type 0x%x has invalid callref 0x%x", 180 "error: Rx MNCC message type 0x%x has invalid callref 0x%x",
181 msg->msg_type, msg->callref); 181 msg->msg_type, msg->callref);
182 exit(1); 182 exit(1);
183 } 183 }
184 /* handling to be implemented */ 184 /* save Osmocom network RTP information */
185 bcopy(&msg->addr, &call->gsm_rtp_osmo, sizeof(struct sockaddr_storage));
186 call->gsm_payload_type = msg->payload_type;
187 call->gsm_payload_msg_type = msg->payload_msg_type;
188 /* respond with MNCC_RTP_CONNECT */
189 msg->msg_type = MNCC_RTP_CONNECT;
190 bcopy(&call->gsm_rtp_tmgw, &msg->addr, sizeof(struct sockaddr_storage));
191 send_mncc_to_gsm(msg, sizeof(struct gsm_mncc_rtp));
185 } 192 }
186 193
187 void 194 void
188 msg_from_mncc(msg, msglen) 195 msg_from_mncc(msg, msglen)
189 union mncc_msg *msg; 196 union mncc_msg *msg;