FreeCalypso > hg > themwi-interim
changeset 9:0ec938ed530b
mtctest: capture MSC RTP info for play command
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 09 Jun 2024 03:37:44 +0000 |
parents | a902ccbf6bbc |
children | 395c56969bc4 |
files | mtctest/sig_handler.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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");