Skip to content

Commit

Permalink
First checks of RTPCHECK and minor cleanup
Browse files Browse the repository at this point in the history
Issue #483
  • Loading branch information
wdoekes committed Sep 18, 2020
1 parent 4caf78e commit a1664e5
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 210 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
Expand Up @@ -4,6 +4,28 @@ Changes in 3.7.0
(Nothing yet. Just added this to diverge from branch/3.6.)


Features added in 3.7.0
=======================

* RTPCHECK code by Jeannot Langlois (@jeannotlanglois). Command line examples:
```
# SET-SIDE (RTP)
./sipp -m 1 -sf sipp_scenarios/pfca_uac_apattern.xml \
-t u1 -i 127.0.0.2 -p 5060 -mp 4000 127.0.0.3:5060
# ICP-SIDE (RTP)
./sipp -m 1 -sf sipp_scenarios/pfca_uas.xml \
-i 127.0.0.3 -t u1 -p 5060 -mp 5000 -rtp_echo
# SET-SIDE (SRTP)
./sipp -m 1 -sf sipp_scenarios/pfca_uac_bpattern_crypto_simple.xml \
-t u1 -i 127.0.0.2 -p 5060 -mp 4000 -rtpcheck_debug -srtpcheck_debug \
127.0.0.3:5060
# ICP-SIDE (SRTP)
./sipp -m 1 -sf sipp_scenarios/pfca_uas_both_crypto_simple.xml \
-t u1 -i 127.0.0.3 -p 5060 -mp 5000 -srtpcheck_debug
```


BREAKING(!) changes in 3.6.1
============================

Expand Down
192 changes: 0 additions & 192 deletions Makefile.am

This file was deleted.

6 changes: 0 additions & 6 deletions commandlines.rtpcheck

This file was deleted.

6 changes: 0 additions & 6 deletions commandlines.srtpcheck

This file was deleted.

8 changes: 4 additions & 4 deletions sipp_scenarios/pfca_uas_both_crypto_simple.xml
Expand Up @@ -100,16 +100,16 @@
]]>
</send>

<recv request="ACK">
</recv>

<nop>
<action>
<exec rtp_echo="startaudio,0,PCMU/8000" />
<exec rtp_echo="startvideo,99,H264/90000" />
</action>
</nop>

<recv request="ACK">
</recv>

<nop>
<action>
<exec rtp_echo="updateaudio,0,PCMU/8000" />
Expand All @@ -119,7 +119,7 @@

<recv request="BYE">
</recv>

<send>
<![CDATA[
SIP/2.0 200 OK
Expand Down
6 changes: 4 additions & 2 deletions src/call.cpp
Expand Up @@ -2709,7 +2709,8 @@ char* call::createSendingMessage(SendingMessage *src, int P_index, char *msg_buf
(_RCAST(struct sockaddr_in *, &(play_args_v.from)))->sin_port = port;
}
} else {
ERROR("media_port keyword with no audio or video on the current line (%s)", begin);
// This check will not do, as we use the media_port in other places too.
//ERROR("media_port keyword with no audio or video on the current line (%s)", begin);
}
#endif
dest += sprintf(dest, "%u", port);
Expand Down Expand Up @@ -2737,7 +2738,8 @@ char* call::createSendingMessage(SendingMessage *src, int P_index, char *msg_buf
} else if (strstr(begin, "video")) {
play_args = &play_args_v;
} else {
ERROR("media_port keyword with no audio or video on the current line (%s)", begin);
// This check will not do, as we use the media_port in other places too.
//ERROR("media_port keyword with no audio or video on the current line (%s)", begin);
}
if (media_ip_is_ipv6) {
(_RCAST(struct sockaddr_in6 *, &(play_args->from)))->sin6_port = htons(port);
Expand Down

0 comments on commit a1664e5

Please sign in to comment.