[bsc_mgcp] Set the right remote rtp and rtcp port

* It is the same as local endpoint port
This commit is contained in:
Holger Hans Peter Freyther 2010-01-05 12:35:16 +01:00
parent 2c492ed276
commit 620961983c
1 changed files with 2 additions and 0 deletions

View File

@ -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");