Converted to generic shell syntax.
Corrected doc.
Example middleware: how to catch end-of-call and generate a CDR.
Router: add the option to clear the route-set.
(Untested) middleware to set the (global) route-set based on the (local) endpoint.