# HG changeset patch # User Mychaela Falconia # Date 1717904264 0 # Node ID 0ec938ed530b57e256eb5a1ed78a161294e4e69e # Parent a902ccbf6bbc5e4c9fca6abefb297a8b2b8d3e30 mtctest: capture MSC RTP info for play command diff -r a902ccbf6bbc -r 0ec938ed530b mtctest/sig_handler.c --- a/mtctest/sig_handler.c Sun Jun 09 02:48:55 2024 +0000 +++ b/mtctest/sig_handler.c Sun Jun 09 03:37:44 2024 +0000 @@ -20,6 +20,10 @@ extern struct rtp_alloc_simple rtp_info; extern struct timeval cur_event_time; +int got_msc_rtp_info; +struct sockaddr_storage msc_rtp_addr; +uint8_t rtp_payload_type; + static void print_bearer_cap(bcap) struct gsm_mncc_bearer_cap *bcap; @@ -357,6 +361,10 @@ printf("payload_type=0x%x payload_msg_type=0x%x\n", msg->payload_type, msg->payload_msg_type); print_sdp(msg->sdp); + got_msc_rtp_info = 1; + bcopy(&msg->addr, &msc_rtp_addr, + sizeof(struct sockaddr_storage)); + rtp_payload_type = msg->payload_type; return; case MNCC_RTP_CONNECT: printf("MNCC_RTP_CONNECT: error response\n");