mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
[bsc_mgcp] Set the right remote rtp and rtcp port
* It is the same as local endpoint port
This commit is contained in:
@@ -1153,6 +1153,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");
|
||||
|
||||
Reference in New Issue
Block a user