| 3551 | } |
| 3552 | |
| 3553 | static 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 | |
| 3571 | static char _rtp_proxy_buf[IP_ADDR_MAX_STR_SIZE + 1/* : */ + 5/* port */]; |
| 3572 |
no test coverage detected