[mgcp] Print the rtp_port number, do not assume it was already assigned.
This commit is contained in:
parent
1b0ea97457
commit
590cd98842
|
@ -317,7 +317,7 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg)
|
|||
|
||||
rtp_port = rtp_calculate_port(ENDPOINT_NUMBER(endp), g_cfg->rtp_base_port);
|
||||
if (mgcp_bind_rtp_port(endp, rtp_port) != 0) {
|
||||
LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", endp->rtp_port);
|
||||
LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", rtp_port);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue