' + i18n.gettext(key) + ':'); + html.push('
' + i18n.gettext(key) + ': ' + value + '
') + } + }) + html.push('+
= _("Document to configure the gateway") ?>
+ += _("Trunks and extensions must be configured with the PJSIP driver. This means chan_sip is not supported!") ?>
+
+
+ = _("When you go to the gateway page, you've got a grid showing all gateways configured like this.") ?>
+ = _("This grid shows some useful things regarding this gateway.") ?>
+
+ = _("To add a gateway, click on the + Add button above the grid.")?>
+ = _("A page is displayed, you just have to fill in the desired fields.") ?>
+ = _("The required fields are:") ?>
+ - = _("Extension as gateway") ?>
+ - = _("Gateway") ?>
+ - = _("Primary DID") ?>
+ = _("Start by selecting an extension to convert to a gateway.") ?>
+ = _("Enter the IP address of the gateway that will be connected to the extension. Example: 200.25.46.30 or 200.25.46.30:5061") ?>
+ = _("If you do not specify the port in the IP address of your gateway, the port will point to 5060.") ?>
+ = _("When you choose an extension to convert to a gateway, the Primary DID fields will be filled in automatically. The first DID will therefore be the head phone number.") ?>
+ = _("You may add any DID number associated to the gateway clicking on DID + button. If the field DID is added, fill it, otherwise, you can delete it clicking on the trash button.") ?>
+ = _("Fill in the other fields to identify the gateway. Then click on the Submit button.") ?>
+
+ + = _("On the grid, click on the Pencil icon on the right of row. Same type of fields used above. You can change everything excepted the field: Extension as Gateway and Primary DID.") ?> +
+
+ = _("You can delete a gateway clicking on the trash icon.") ?>
+
+ flowchart TD
+ A[Trunk PJSIP] <--> B(Context: \n from-trunk-gateway)
+ B<--> C{Calls}
+ C<--> D[Context: \n from-internal-gateway\nfa:fa-server\nGW 1]
+ C<--> E[Context: \n from-internal-gateway\nfa:fa-server\nGW 2]
+ C<--> F[Context: \n from-internal-gateway\nfa:fa-server\nPBX 1]
+ D<--> G[fa:fa-phone\nExt 1]
+ D<--> h[fa:fa-phone\nExt 2]
+ E<--> i[fa:fa-phone\nExt 1]
+ E<--> j[fa:fa-phone\nExt 2]
+ F<--> k[fa:fa-phone\nExt 1]
+ F<--> L[fa:fa-phone\nExt 2]
+
+
+ = _("Once extensions (PJSIP) are used as a gateway, their context will change to:") ?> from-internal-gateway.
+ = _("Regarding the trunk (PJSIP) used to receive calls to gateways, set the context manually to:") ?> from-trunk-gateway.
+ = _("Look the schema above.") ?>
+
+