我在IOS应用程序中具有udp传输的初始pjsua。它可以在LTE网络上正常工作,但是当用户在udp传输上向Wifi网络注册pjsua时,通话双方都听不到声音。请帮我解决这个问题。
状态= pjsua_transport_create(PJSIP_TRANSPORT_UDP,&transportConfig,&tp_id);
if (status != PJ_SUCCESS) {
NSLog(@"Error creating UDP transport");
[self thread_stop];
[self thread_callOnMain:completion withFlag:NO];
return;
}
pjsua_transport_info transportInfo;
if (_config.transportPort == 0) {
status = pjsua_transport_get_info(tp_id, &transportInfo);
if (status != PJ_SUCCESS) {
NSLog(@"Error getting transport info");
}
_config.transportPort = transportInfo.local_name.port;
transportConfig.port = (unsigned)_config.transportPort;
}