Hello all, I’m newbie to Asterisk, so sorry if my explanation is not accurate. I have seen in CDR some calls that are registrated as if they were made from an ‘s’ extension. I have tried to follow the logic in my dialplan in order to see where does it loses the CNUM, but I didn’t get anything
I’ll put here an example of the output of CDR for one affected call, I have replace some data where:
CALLERNUMBER → Number of the client making the incoming call
DESTINATIONNUMBER → Number of the service receiving the call
FORWARDEDNUMBER → Number to which the call is forwarded
AGENT1 → Agent who receives the call
Fri, 1 Mar 2024 9:09 CHAN_START CALLERNUMBER DEFAULT DESTINATIONNUMBER from-pstn
Fri, 1 Mar 2024 9:09 ANSWER :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT 1799 ext-queues Answer
Fri, 1 Mar 2024 9:09 APP_START :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT recordcheck sub-record-check MixMonitor
Fri, 1 Mar 2024 9:09 APP_END :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT recordcheck sub-record-check MixMonitor
Fri, 1 Mar 2024 9:09 APP_START :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT 1799 ext-queues Queue
Fri, 1 Mar 2024 9:09 CHAN_START DEFAULT 1707 from-queue
Fri, 1 Mar 2024 9:09 CHAN_START DEFAULT 1707 from-queue
Fri, 1 Mar 2024 9:09 HANGUP DESTINATIONNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:09 CHAN_END DESTINATIONNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:09 CHAN_START DEFAULT 1704 from-queue
Fri, 1 Mar 2024 9:09 CHAN_START DEFAULT 1704 from-queue
Fri, 1 Mar 2024 9:09 HANGUP :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT h ext-local
Fri, 1 Mar 2024 9:09 CHAN_END :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT h ext-local
Fri, 1 Mar 2024 9:09 CHAN_START AGENT1 1704 DEFAULT s from-internal P
Fri, 1 Mar 2024 9:09 ANSWER AGENT1 1704 1704 DEFAULT 1704 from-internal AppDial
Fri, 1 Mar 2024 9:09 ANSWER :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT s macro-dial-one Dial
Fri, 1 Mar 2024 9:09 BRIDGE_ENTER AGENT1 1704 1704 DEFAULT s macro-dial-one AppDial
Fri, 1 Mar 2024 9:09 BRIDGE_ENTER :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT s macro-dial-one Dial
Fri, 1 Mar 2024 9:09 ANSWER DESTINATIONNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:09 BRIDGE_ENTER DESTINATIONNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:09 BRIDGE_ENTER :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT 1799 ext-queues Queue
Fri, 1 Mar 2024 9:10 CHAN_START AGENT1 1704 DEFAULT RG_FORWARDEDNUMBER from-internal
Fri, 1 Mar 2024 9:10 APP_START AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT recordcheck sub-record-check MixMonitor
Fri, 1 Mar 2024 9:10 APP_END AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT recordcheck sub-record-check MixMonitor
Fri, 1 Mar 2024 9:10 CHAN_START DEFAULT FORWARDEDNUMBER from-internal
Fri, 1 Mar 2024 9:10 CHAN_START DEFAULT FORWARDEDNUMBER from-internal
Fri, 1 Mar 2024 9:10 CHAN_START DEFAULT s from-pstn
Fri, 1 Mar 2024 9:10 ANSWER CID:1704 FORWARDEDNUMBER DEFAULT FORWARDEDNUMBER from-pstn AppDial
Fri, 1 Mar 2024 9:10 ANSWER AGENT1 1704 1704 DEFAULT s macro-dialout-trunk Dial
Fri, 1 Mar 2024 9:10 ANSWER CID:1704 FORWARDEDNUMBER DEFAULT RG_FORWARDEDNUMBER from-internal AppDial
Fri, 1 Mar 2024 9:10 BRIDGE_ENTER CID:1704 FORWARDEDNUMBER DEFAULT from-pstn AppDial
Fri, 1 Mar 2024 9:10 BRIDGE_ENTER AGENT1 1704 1704 DEFAULT s macro-dialout-trunk Dial
Fri, 1 Mar 2024 9:10 ANSWER AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT s macro-dial Dial
Fri, 1 Mar 2024 9:10 BRIDGE_ENTER CID:1704 FORWARDEDNUMBER DEFAULT s macro-dial AppDial
Fri, 1 Mar 2024 9:10 BRIDGE_ENTER AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT s macro-dial Dial
Fri, 1 Mar 2024 9:10 BRIDGE_EXIT CID:1704 FORWARDEDNUMBER DEFAULT s macro-dial AppDial
Fri, 1 Mar 2024 9:10 BRIDGE_EXIT AGENT1 1704 1704 DEFAULT s macro-dial-one AppDial
Fri, 1 Mar 2024 9:10 BRIDGE_ENTER CID:1704 FORWARDEDNUMBER DEFAULT s macro-dial AppDial
Fri, 1 Mar 2024 9:10 ATTENDEDTRANSFER AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT s macro-dial Dial
Fri, 1 Mar 2024 9:10 BRIDGE_EXIT AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT s macro-dial Dial PJ
Fri, 1 Mar 2024 9:10 HANGUP AGENT1 1704 1704 DEFAULT s macro-dial-one AppDial
Fri, 1 Mar 2024 9:10 CHAN_END AGENT1 1704 1704 DEFAULT s macro-dial-one AppDial
Fri, 1 Mar 2024 9:10 HANGUP AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT h from-internal
Fri, 1 Mar 2024 9:10 CHAN_END AGENT1 1704 1704 RG_FORWARDEDNUMBER DEFAULT h from-internal
Fri, 1 Mar 2024 9:15 BRIDGE_EXIT CID:1704 FORWARDEDNUMBER DEFAULT from-pstn AppDial
Fri, 1 Mar 2024 9:15 HANGUP CID:1704 FORWARDEDNUMBER DEFAULT from-pstn AppDial
Fri, 1 Mar 2024 9:15 BRIDGE_EXIT :CALLERNUMBER CALLERNUMBER 1704 DEFAULT s macro-dialout-trunk Dial
Fri, 1 Mar 2024 9:15 CHAN_END CID:1704 FORWARDEDNUMBER DEFAULT from-pstn AppDial
Fri, 1 Mar 2024 9:15 HANGUP :CALLERNUMBER CALLERNUMBER 1704 DEFAULT h from-internal
Fri, 1 Mar 2024 9:15 CHAN_END :CALLERNUMBER CALLERNUMBER 1704 DEFAULT h from-internal
Fri, 1 Mar 2024 9:15 LINKEDID_END :CALLERNUMBER CALLERNUMBER 1704 DEFAULT h from-internal
Fri, 1 Mar 2024 9:15 BRIDGE_EXIT CID:1704 FORWARDEDNUMBER DEFAULT s macro-dial AppDial
Fri, 1 Mar 2024 9:15 BRIDGE_EXIT :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT s macro-dial-one Dial
Fri, 1 Mar 2024 9:15 HANGUP CID:1704 FORWARDEDNUMBER DEFAULT s macro-dial AppDial
Fri, 1 Mar 2024 9:15 CHAN_END CID:1704 FORWARDEDNUMBER DEFAULT s macro-dial AppDial
Fri, 1 Mar 2024 9:15 HANGUP :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT h ext-local
Fri, 1 Mar 2024 9:15 CHAN_END :CALLERNUMBER CALLERNUMBER CALLERNUMBER DEFAULT h ext-local
Fri, 1 Mar 2024 9:15 BRIDGE_EXIT CID:1704 FORWARDEDNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:15 HANGUP CID:1704 FORWARDEDNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:15 CHAN_END CID:1704 FORWARDEDNUMBER DEFAULT 1799 from-queue AppQueue
Fri, 1 Mar 2024 9:15 BRIDGE_EXIT :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT 1799 ext-queues Queue
Fri, 1 Mar 2024 9:15 APP_END :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT 1799 ext-queues Queue
Fri, 1 Mar 2024 9:15 HANGUP :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT h ext-queues
Fri, 1 Mar 2024 9:15 CHAN_END :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT h ext-queues
Fri, 1 Mar 2024 9:15 LINKEDID_END :CALLERNUMBER CALLERNUMBER CALLERNUMBER DESTINATIONNUMBER DEFAULT h ext-queues