美文网首页
Linphone开发中遇到的一些问题

Linphone开发中遇到的一些问题

作者: no1ever | 来源:发表于2017-09-27 16:58 被阅读43次

    1:5060端口

    linphone默认的源端口是5060,如果本地的5060端口被占用,就会出现连接服务器不成功。所以一般要设置源端口为随机端口:

    LCSipTransportstransportValue = {-1, -1, -1, -1};

    //    // will also update the sip_*_port section of the config

    if(linphone_core_set_sip_transports(LC, &transportValue)) {

    NSLog(@"cannot set transport");

    }

    相关文章

      网友评论

          本文标题:Linphone开发中遇到的一些问题

          本文链接:https://www.haomeiwen.com/subject/scwuextx.html