1:5060端口
linphone默認(rèn)的源端口是5060,如果本地的5060端口被占用窜护,就會出現(xiàn)連接服務(wù)器不成功。所以一般要設(shè)置源端口為隨機(jī)端口:
```
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");
}
```