Date: Thu, 28 Mar 2024 19:51:53 +0000 (UTC) Message-ID: <1190904252.2748.1711655513133@ubuntu> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2747_1906781332.1711655513132" ------=_Part_2747_1906781332.1711655513132 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
To combine numbering plans on the 3CX side, you need to create 2 SIP tru= nks - one for inbound calls, and the other for outbound calls.
In this example, the numbering plan on the 3CX side is 3-digit numbers (= which start with "5"), and on the Webitel side - 4-digit numbers (which sta= rt with "1").
In Webitel, in the Users section, create a new user with the number 10020:=
On the 3CX sides, create a SIP Trunk with t= he "Generic" type:
In the gateway card, we write the registrat= ion data of the Webitel user: Username, password, domain, sip server:
After saving, the trunk should be registere= d successfully:
Go to the "Outbound Rules" menu on the 3CX = side and create a rule that all 4-digit numbers should be sent in this trun= k:
Now we can make calls from 3CX to any Webit= el internal numbers.
In 3CX, in the SIP Trunks section, add a new entry with the "Bridge - Sl= ave" type:
We give the name, register the login 10021 and create a password.
In the Gateways section on the Webitel side, create a new gateway with r= egistration, where we enter the data of the newly created bridge:
After saving, successful registration should occur:
Go to the "Default callflow" section and create a routing scheme in whic= h we indicate that all 2-digit numbers that start with "5" must be sent thr= ough this gateway:
[ =09{ =09=09"ringback": { =09=09=09"call": { =09=09=09=09"name": "$${ru-ring}", =09=09=09=09"type": "tone" =09=09=09}, =09=09=09"transfer": { =09=09=09=09"name": "$${ru-ring}", =09=09=09=09"type": "tone" =09=09=09} =09=09} =09}, =09{ =09=09"recordSession": { =09=09=09"action": "start", =09=09=09"type": "mp3", =09=09=09"stereo": true, =09=09=09"followTransfer": true, =09=09=09"bridged": true, =09=09=09"minSec": 2, =09=09=09"email": [] =09=09} =09}, =09{ =09=09"bridge": { =09=09=09"endpoints": [ =09=09=09=09{ =09=09=09=09=09"type": "sipGateway", =09=09=09=09=09"name": "3CX", =09=09=09=09=09"dialString": "$1" =09=09=09=09} =09=09=09] =09=09} =09}, =09{ =09=09"hangup": "NORMAL_CLEARING" =09} ]
Now we can make calls from Webitel to any 3CX internal numbers.
The description is relevant for Webitel version 3.11