Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

    sb.append("<h1>Gosub</h1>");

        sb.append(

...

Gosub

Gosub is a specialised Action designed to send a call to another Call Route returning when complete.<br>");

        sb.append("Gosub is designed to work with Actions such as Rewrite which are able to modify the dialed number ");

        sb.append(

                " and then resubmit the call to the route pattern match logic so that it can be process by an appropriate route.<br></br>");

        sb.append("<h3>Target Type</h3>");

        sb.append(

                "

Target Type

Defines the value to use as the 'target' when the call is passed to the specified Context.</br></br>");

        sb.append("<h4>Dialed No</h4>");

        sb.append("

Dialed No

The no. originally dialed is used as the target.</br></br>");

        sb.append("<h4>Target</h4>");

        sb.append("

Target

The Route Target to send the call to.</br></br>");

        sb.append("<h4>Route Variable</h4>");

        sb.append("

Route Variable

The value of the given variable is used as the target.</br></br>");

        sb.append("<h3>Context</h3>");

        sb.append(

                "

Context

The Context to reroute the call into. Often it is sufficient to simply reroute the call back into the same context ");

        sb.append("after the target has been modified as it will now match a different route.</br></br>");

        sb.append("<h2>Example</h2>");

        sb.append(

                "

Example

You have multiple SIP service providers and one of them sends calls to your PBX with a DID that includes the country code e.g. 613 8320 8100. <br>");        sb.append(

                "Rather than have two sets of routes (one for each service provider) you can create a route which matchs the 613 prefix, ");

        sb.append(

                "strips that prefix (using Rewrite) and then resubmits the call into the routes using this Gosub Action.<br>");