[bsc_mgcp] Set the right remote rtp and rtcp port
* It is the same as local endpoint port
This commit is contained in:
parent
2c492ed276
commit
620961983c
|
@ -1159,6 +1159,8 @@ int main(int argc, char** argv)
|
|||
struct mgcp_endpoint *endp = &endpoints[i];
|
||||
inet_aton(forward_ip, &endp->remote);
|
||||
endp->ci = CI_UNUSED + 23;
|
||||
endp->rtp = htons(rtp_calculate_port(ENDPOINT_NUMBER(endp), rtp_base_port));
|
||||
endp->rtcp = htons(rtp_calculate_port(ENDPOINT_NUMBER(endp), rtp_base_port) + 1);
|
||||
}
|
||||
|
||||
DEBUGP(DMGCP, "Configured for Audio Forwarding.\n");
|
||||
|
|
Loading…
Reference in New Issue