support complex refer-to and refered-by uri

This commit is contained in:
Quan HL
2024-05-06 14:30:03 +07:00
parent 2fef169e92
commit 759530ded7

View File

@@ -971,8 +971,8 @@ Duration=${payload.duration} `
const response = await this.uas.request({
method: 'REFER',
headers: {
'Refer-To': stringifyUri(uri),
'Referred-By': stringifyUri(u),
'Refer-To': `<${stringifyUri(uri)}>`,
'Referred-By': `<${stringifyUri(u)}>`,
...customHeaders
}
});