diff options
-rw-r--r-- | pjsip-apps/src/samples/siprtp.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pjsip-apps/src/samples/siprtp.c b/pjsip-apps/src/samples/siprtp.c index 108d0ca5..387b4571 100644 --- a/pjsip-apps/src/samples/siprtp.c +++ b/pjsip-apps/src/samples/siprtp.c @@ -1365,6 +1365,13 @@ static void print_call(int call_index) printf(" %s\n", userinfo); + if (call->inv == NULL || call->inv->state < PJSIP_INV_STATE_CONFIRMED || + call->connect_time.sec == 0) + { + return; + } + + /* Signaling quality */ { char pdd[64], connectdelay[64]; @@ -1391,10 +1398,6 @@ static void print_call(int call_index) } - if (call->inv == NULL || call->inv->state < PJSIP_INV_STATE_CONFIRMED) { - return; - } - printf(" Stream #0: audio %.*s@%dHz, %dms/frame, %sB/s (%sB/s +IP hdr)\n", (int)audio->si.fmt.encoding_name.slen, audio->si.fmt.encoding_name.ptr, |