Hi tsww,
Try with changing the following:
1.
SIP Trunks => DIDX (Name of trunk) => General
Main Trunk No: DIDX (Name of trunk)
Destination for calls during office hours: End Call
Destination for calls outside office hours: End Call
2.
SIP Trunks => DIDX (Name of trunk) => DID's
Add DID1 and DID1
3.
Inbound Rules => DID1 Route calls to 1000
Inbound Rules => DID2 Route calls to 1001
Hi Ivan, I have done exactly what you have suggested see the below result in the log. It doesn't work.
___________________________________________________________________________________
12/26/2020 12:33:42 PM - Default best-route IP is determined as 142.93.146.233
12/26/2020 12:33:41 PM - Currently active calls [none]
12/26/2020 12:33:40 PM - Leg L:29.1[Line:10000<<+14168009900] is terminated: Cause: BYE from PBX
12/26/2020 12:33:40 PM - Terminated from <sip:
[email protected]>;tag=as4526b2ac to <sip:
[email protected]>;tag=b7ff3466; reason: Rejected
12/26/2020 12:33:40 PM - L:29.1[Line:10000<<+14168009900] Sending: OnSendResp Send 486/INVITE from 0.0.0.0:0 tid=68a7ef36
[email protected]:5060:
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP 159.203.27.198:5060;branch=z9hG4bK68a7ef36;rport=5060
To: <sip:
[email protected]>;tag=b7ff3466
From: <sip:
[email protected]>;tag=as4526b2ac
Call-ID:
[email protected]:5060
CSeq: 102 INVITE
Warning: 499 K803G-STUDI-UOIYI-GGHHS-1LCMF.localdomain "Disabled by Forwarding Rule"
Content-Length: 0
12/26/2020 12:33:40 PM - SendMsg from <sip:
[email protected]>;tag=b7ff3466 to <sip:
[email protected]>;tag=as4526b2ac
12/26/2020 12:33:40 PM - Call(C:29) is terminated
12/26/2020 12:33:40 PM - [CM503020]: Call(C:29): Normal call termination. Call originator: Line:10000<<+14168009900. Reason: Disabled by Forwarding Rule
12/26/2020 12:33:40 PM - [CM503016]: Call(C:29): Attempt to reach <sip

142.93.146.233:5060> from Line:10000<<+14168009900 has failed. Reason: Busy
12/26/2020 12:33:40 PM - [Flow] Call(C:29): has built target endpoint: EndCall:EndCall for call from L:29.1[Line:10000<<+14168009900]
12/26/2020 12:33:40 PM - [Flow] Call(C:29): building EndCall endpoint (routing rule)
12/26/2020 12:33:40 PM - [CM503010]: Call(C:29): Making route(s) from Line:10000<<+14168009900 to <sip

142.93.146.233:5060/UDP>
12/26/2020 12:33:40 PM - Remote SDP is set for leg L:29.1[Line:10000<<+14168009900]
12/26/2020 12:33:40 PM - [CM505003]: Provider:[DIDX] Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [] PBX contact: [sip:
[email protected]:5060]
12/26/2020 12:33:40 PM - Inbound DID: ''; Phonebook Name: ''
12/26/2020 12:33:40 PM - [CM500002]: Call(C:29): Info on incoming INVITE from Line:10000<<+14168009900:
Invite-IN Recv Req INVITE from 159.203.27.198:5060 tid=68a7ef36
[email protected]:5060:
INVITE sip:
[email protected] SIP/2.0
Via: SIP/2.0/UDP 159.203.27.198:5060;branch=z9hG4bK68a7ef36;rport=5060
Max-Forwards: 70
Contact: <sip:
[email protected]:5060>
To: <sip:
[email protected]>
From: <sip:
[email protected]>;tag=as4526b2ac
Call-ID:
[email protected]:5060
CSeq: 102 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Content-Type: application/sdp
Date: Sat, 26 Dec 2020 17:24:38 GMT
Supported: replaces, timer
User-Agent: DiDXsuPErTecSIPCa
Remote-Party-ID: "+14168009900" <sip:
[email protected]>;party=calling;privacy=off;screen=no
Content-Length: 305
v=0
o=root 387493850 387493850 IN IP4 199.47.126.6
s=Asterisk PBX 11.21.0
c=IN IP4 199.47.126.6
t=0 0
m=audio 33940 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
12/26/2020 12:33:40 PM - [CM503001]: Call(C:29): Incoming call from Line:10000<<+14168009900 to <sip

142.93.146.233:5060>
12/26/2020 12:33:40 PM - Line limit check: Current # of calls for line Lc:10000(@DIDX[<sip:
[email protected]:5060/UDP>]) is 1; limit is 10
12/26/2020 12:33:40 PM - Blacklist check: number '+14168009900', list: ''; result = false
12/26/2020 12:33:40 PM - Dev(1516214074):[sip:
[email protected]:5060 / 10000]: PBX contact is public IP: <sip:
[email protected]:5060/UDP>
12/26/2020 12:33:40 PM - [CM503012]: Inbound office hours rule (unnamed) for 10000 forwards to DN:
12/26/2020 12:33:40 PM - [Flow] No office hours set, office hours assumed
12/26/2020 12:33:40 PM - [Flow] Looking for inbound target: called=1001; caller="+14168009900" <sip:+14168009900@:0>
12/26/2020 12:33:40 PM - CallerNameAddr: "+14168009900"<sip:+14168009900;nf=e>
12/26/2020 12:33:40 PM - No inbound caller ID reformat rule for DN:10000 is defined, or it is disabled (<Rules />)
12/26/2020 12:33:40 PM - Source is identified as trunk Lc:10000(@DIDX[<sip:
[email protected]:5060/UDP>])
12/26/2020 12:33:40 PM - IncomingCall: C:29 from <sip:
[email protected]:0/UDP> to <sip:
[email protected]:0/UDP>
12/26/2020 12:33:40 PM - Added leg L:C:29.1[No endpoint yet]
12/26/2020 12:33:40 PM - Call from <sip:
[email protected]>;tag=as4526b2ac to <sip:
[email protected]>;tag=b7ff3466
12/26/2020 12:33:40 PM - Source is identified as trunk Lc:10000(@DIDX[<sip:
[email protected]:5060/UDP>])
12/26/2020 12:33:40 PM - Lc:10002(@VoIP.MS[<sip

:0/UDP>]) Resolving targets: primary - sip:[Check 3CX VoIP.ms Configuration Guide]:5060, no secondary over +UDP+IPv4+IPv6