Skip to content

Commit

Permalink
rtpproxy: renamed extract_mediaip() to rp_extract_mediaip()
Browse files Browse the repository at this point in the history
- extract_mediaip() is also in core sdp parser

(cherry picked from commit 8d00447)
(cherry picked from commit eec7d26)
  • Loading branch information
miconda committed Oct 12, 2020
1 parent 97d3d11 commit e58632e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/rtpproxy/rtpproxy.c
Expand Up @@ -114,7 +114,7 @@ static str DEFAULT_RTPP_SET_ID_STR = str_init("0");
#define PTL_CPROTOVER "20081102"

#define CPORT "22222"
static int extract_mediaip(str *, str *, int *, char *);
static int rp_extract_mediaip(str *, str *, int *, char *);
static int alter_mediaip(struct sip_msg *, str *, str *, int, str *, int, int);
static int alter_mediaport(struct sip_msg *, str *, str *, str *, int);
static int alter_rtcp(struct sip_msg *msg, str *body, str *oldport, str *newport);
Expand Down Expand Up @@ -958,7 +958,7 @@ replace_sdp_ip(struct sip_msg* msg, str *org_body, char *line, str *ip)
}
body1 = body;
for(;;) {
if (extract_mediaip(&body1, &oldip, &pf,line) == -1)
if (rp_extract_mediaip(&body1, &oldip, &pf,line) == -1)
break;
if (pf != AF_INET) {
LM_ERR("not an IPv4 address in '%s' SDP\n",line);
Expand Down Expand Up @@ -988,7 +988,7 @@ replace_sdp_ip(struct sip_msg* msg, str *org_body, char *line, str *ip)
}

static int
extract_mediaip(str *body, str *mediaip, int *pf, char *line)
rp_extract_mediaip(str *body, str *mediaip, int *pf, char *line)
{
char *cp, *cp1;
int len, nextisip;
Expand Down

0 comments on commit e58632e

Please sign in to comment.