| | |
| | | uri: config.sipUri, |
| | | password: config.password, |
| | | display_name: config.displayName, |
| | | realm: config.realm, |
| | | // realm: config.realm, |
| | | register: true, |
| | | session_expires:180, |
| | | register_expires: 300, // 注册有效期(秒) |
| | | connection_recovery_min_interval: 2, // 最小重连间隔 |
| | | connection_recovery_max_interval: 30 // 最大重连间隔 |
| | |
| | | rtcOfferConstraints: { offerToReceiveAudio: 1 } |
| | | } |
| | | |
| | | this.currentSession = this.ua.call(`sip:${targetNumber}`, options) |
| | | this.currentSession = this.ua.call(`sip:${targetNumber}@192.168.100.6`, options) |
| | | this.setupAudio(this.currentSession) |
| | | } |
| | | |