examples: Display more details on RTP payload in rtp-udp-test-*
Minor change, more verbose output to make sure the functions in the library are doing OK. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
59b4f79946
commit
4cd6689587
|
@ -60,8 +60,8 @@ static int read_cb(struct osmo_dgram_conn *conn)
|
|||
return -1;
|
||||
}
|
||||
|
||||
LOGP(DLINP, LOGL_DEBUG, "received message with RTP payload type: %d\n",
|
||||
payload_type);
|
||||
LOGP(DLINP, LOGL_DEBUG, "received message with payload type: %d "
|
||||
"and size: %d (%s)\n", payload_type, msg->len, msg->data);
|
||||
|
||||
msgb_free(msg);
|
||||
return 0;
|
||||
|
@ -81,7 +81,7 @@ static void *tall_test;
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
char dummy_data[RTP_PT_GSM_FULL_PAYLOAD_LEN] = {};
|
||||
char dummy_data[RTP_PT_GSM_FULL_PAYLOAD_LEN] = "payload test";
|
||||
|
||||
signal(SIGINT, sighandler);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ static struct osmo_rtp_handle *rtp;
|
|||
int read_cb(struct osmo_dgram_conn *conn)
|
||||
{
|
||||
struct msgb *msg;
|
||||
char dummy_data[RTP_PT_GSM_FULL_PAYLOAD_LEN] = {};
|
||||
char dummy_data[RTP_PT_GSM_FULL_PAYLOAD_LEN] = "payload test";
|
||||
int payload_type;
|
||||
|
||||
LOGP(DRTP_TEST, LOGL_DEBUG, "received message from datagram\n");
|
||||
|
@ -57,8 +57,8 @@ int read_cb(struct osmo_dgram_conn *conn)
|
|||
LOGP(DRTP_TEST, LOGL_ERROR, "cannot parse RTP message\n");
|
||||
return -1;
|
||||
}
|
||||
LOGP(DLINP, LOGL_DEBUG, "received message with payload type: %d\n",
|
||||
payload_type);
|
||||
LOGP(DLINP, LOGL_DEBUG, "received message with RTP payload type: %d "
|
||||
"and size: %d (%s)\n", payload_type, msg->len, msg->data);
|
||||
|
||||
/*
|
||||
* ... now build gsm_data_frame, set callref and msg_type based
|
||||
|
|
Loading…
Reference in New Issue