Skip to content

Out of dialog REFER requests #89

@wakamoleguy

Description

@wakamoleguy

It is possible to receive REFER requests as initial, out-of-dialog requests. Some phone systems use this mechanism for third party call control behavior of some kind. At the moment, SIP.js will reject the request with 405 Method Not Allowed.

I believe this would be possible to implement similarly to our MESSAGE handling. That is, we add a ua.on('refer', callback) event. If the application defines such a callback, call it. Otherwise, reject with 405.

As for the actual behavior of the REFER, check RFC 3515. It should be similar to in-dialog REFER, although we probably don't want to provide the convenience method. Doing so would encourage applications to implement this behavior without prompting the user. Per the RFC, the user SHOULD be prompted for permission.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions