MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / rtpp_get_error

Function rtpp_get_error

modules/rtpproxy/rtpproxy.c:3553–3569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3551}
3552
3553static inline int rtpp_get_error(char *command)
3554{
3555 int ret;
3556 str val;
3557 if (!command)
3558 return -1;
3559 if (command[0] != 'E')
3560 return 0;
3561 val.s = command + 1;
3562 val.len = strlen(val.s) - 1 /* newline */;
3563
3564 if (str2sint(&val, &ret)) {
3565 LM_ERR("bad error received from RTPProxy: %s\n", command);
3566 return -1;
3567 }
3568 return ret;
3569}
3570
3571static char _rtp_proxy_buf[IP_ADDR_MAX_STR_SIZE + 1/* : */ + 5/* port */];
3572

Callers 3

rtpproxy_offer_answerFunction · 0.85
rtpproxy_stats_fFunction · 0.85
rtpproxy_all_stats_fFunction · 0.85

Calls 1

str2sintFunction · 0.85

Tested by

no test coverage detected