I am working on a 'REFER' handler and was going to see about making it middleware, but there is no middleware handling for dialog events. So, the middleware could only be used on out of dialog REFER messages. Would adding something like the srf.use method to the dialog class be worthwhile? Or, since it's easy, just stick to using the REFER handler in the dialog.on callback?
I am working on a 'REFER' handler and was going to see about making it middleware, but there is no middleware handling for dialog events. So, the middleware could only be used on out of dialog REFER messages. Would adding something like the
srf.use
method to the dialog class be worthwhile? Or, since it's easy, just stick to using the REFER handler in thedialog.on
callback?I am picturing something like this: