PJSIP拨出电话在wifi网络中无音频

时间:2019-04-10 11:46:25

标签: pjsip

我在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;
}

0 个答案:

没有答案