onsip / SIP.js

A simple, intuitive, and powerful JavaScript signaling library
https://sipjs.com
MIT License
1.88k stars 700 forks source link

Add 'Allow: UPDATE' METHOD into session.ts #1017

Open junzeroroh opened 1 year ago

junzeroroh commented 1 year ago

Is your feature request related to a problem? Please describe. there are no option for update method RFC 3311. if add in extraHeader options it gonna be multple line like 'Allow:~', 'Allow:~'

it is just pushed in session.ts about latest sipjs such as extraHeaders.push( "Allow: " + ["ACK", "CANCEL", "INVITE", "MESSAGE", "BYE", "OPTIONS", "INFO", "NOTIFY", "REFER"].toString() ); ) Describe the solution you'd like A clear and concise description of what you want to happen. Add extraHeaderParams: [ ... ] like extraContactHeaderParams of resister

if (this.options.extraHeaderParams) { this.options.extraHeaderParams.forEach((header: string) => { ... }); }