Doubango参数配置

来源:互联网 发布:数组中删除指定元素 编辑:程序博客网 时间:2024/06/10 04:51


NgnBaseService<INgnConfigurationService> *mConfigurationService = _mEngine.configurationService;

    [mConfigurationService setStringWithKey:IDENTITY_IMPI andValue:phone];
    [mConfigurationService setStringWithKey:IDENTITY_IMPU andValue:[NSString stringWithFormat:@"sip:%@@%@",phone,avHost]];
    [mConfigurationService setStringWithKey:IDENTITY_PASSWORD andValue:phone];
    [mConfigurationService setStringWithKey:NETWORK_REALM andValue:avHost];
    [mConfigurationService setStringWithKey:NETWORK_PCSCF_HOST andValue:avHost];
    [mConfigurationService setIntWithKey:NETWORK_PCSCF_PORT andValue:5061];
    //    [mConfigurationService setBoolWithKey:NETWORK_USE_EARLY_IMS andValue:TRUE];
    [mConfigurationService setBoolWithKey:NETWORK_USE_3G andValue:TRUE];
    [mConfigurationService setBoolWithKey:NETWORK_USE_WIFI andValue:TRUE];
    [mConfigurationService setStringWithKey:DEFAULT_NETWORK_IP_VERSION andValue:@"ipv4"];
    
    [mConfigurationService setStringWithKey:NETWORK_TRANSPORT andValue:@"TLS"];
    
    [mConfigurationService setIntWithKey:SECURITY_SRTP_MODE andValue:kDefaultSecuritySRtpMode_Mandatory];
    [mConfigurationService setIntWithKey:SECURITY_SRTP_TYPE andValue:kDefaultSecuritySRtpType_Dtls];

0 0
原创粉丝点击