This commit is contained in:
Quan HL
2023-11-24 13:38:53 +07:00
parent d61934d996
commit 46520db3e2

View File

@@ -81,7 +81,7 @@ class Regbot {
const transport = this.protocol.includes('/') ? this.protocol.substring(0, this.protocol.indexOf('/')) :
this.protocol;
const proxy = `sip:${this.ipv4}${isIPv4 ? `:${this.port}` : ''};transport=${transport}`;
const req = await srf.request(`sip:${this.aor}`, {
const req = await srf.request(`sip${transport === 'tls' ? 's' : ''}:${this.aor}`, {
method: 'REGISTER',
proxy,
headers: {