I have an issue with a customer’s system. They are saying the phones aren’t in after hours mode on the weekends. They said calls came in to the receptionist a few times the past 2 weekends. I have no idea how to check this. Nothing has changed in the time conditions. The time conditions are set to regular business hours 9-5 M-F. Is there a way I can check this? Thanks!
You need to have an call log from the asterisk log file.
Once you have that, you can share it here and we can take a look.
You will need ssh access and follow the next steps:
The instructions from that page are “Suppose you want a call trace from a specific call that has already happened, so it’s too late to see it in the console live. First locate the call in the CDR, and get the uniquieid from the system column for the call in question:”
They gave me the exact time of the call which was 10:06, but there’s like 20 entries for that time from that number. It looks like they were pressing every option they could to try and get someone. Which one do I grep the unique id of to trace it? The very first one?
I just ran grep 1739631957.58872 /var/log/asterisk/full* as that was the first unique id of that call, but it didn’t return anything.
to get more call(s) log(s) you have to find from that call 1739631957.58872 /var/log/asterisk/full*
Asterisk C-XXXXX id.
for each call you will have different C-XXXXX ID. Then you can grep with that C-XXXXXX id to get more details.
grep C-00000001 /var/log/asterisk/full*
I’m not sure I understand.
Which part is not clear of you ? tell me i will try to help you.
What is this C-XXXXX number? I tried “grep C-1739631957.58872 /var/log/asterisk/full*” and it didn’t return anything. I’m not sure what I’m supposed to put there.
Let’s go from beginning.
- go to FreePBX → REports → CDR Reports
- Search between days (If you doens;t know the CID ) If you knows the cid just add in CallerID Number and Press Search.
- You will find some CRD calls. Copy the System ID
1739631957.58872
( like this ) - Go to SSH login to your FreePBX Box
- 1st search that System ID in the Asterisk Logs
grep 1739631957.58872 /var/log/asterisk/full*
- 2nd You will see For that System ID Asterisk Call details. And then Copy the
C-123456
Asterisk CALL ID - 3rd
grep C-XXXXXX /var/log/asterisk/full*
To See all details.
On the logs you can see more details, I hope it make sense.
Ok, on your 5th bullet point…when I do this I get nothing. I’ve tried several of the unique id’s and none of them return anything.
leave the mantissa out while grepping
date -d @1738631900
I’m not sure what a mantissa is, but when I run that last command I get:
Also, if you mean run the grep command like this I don’t get anything still:
The mantissa is the bit after the ‘point’ symbol, as an epoch it is the ‘sub-second’ as a asterisk it is an enumeration of the number of calls since asterisk started . that you didn’t find it means that there were no records in that ‘epochsecond’, try over with a legit value
That’s not the mathematical definition. In 222.111*10333 (222.111E333) 222.111 is the mantissa and 333 is the exponent. In the channel unique IDs, the two parts are not even parts of the simple number.
What is the log rotation like? Doing what was described only will work if the log files haven’t been rotated and compressed to tar.gz formats.
You should make a test call and watch the logs for the [c-xxxxxx] and then grep for that after to get that call from the logs
I think we’re chasing unicorns here. This seems like a pretty simple issue to me.
Log into the FreePBX gui and just start walking through the callflow. You’re bound to find where the calls are squeeking through. Pay particular attention to the fail destinations for any step along the way.
On the inbound routes do you have a “catchall” route that has DID set to “any?” If so start there. It’s likely the OP just forgot about a DID that isn’t their main one and someone out in the wild has it.
unless I’m not understanding the OP’s issue.
If I call while the phones are in after hours mode I can’t seem to get through. There’s no route setup in after hours mode where they should be able to get to a user. Both days they said this happened it was the same caller and it looks like they just pressed buttons non stop trying to get someone. Can I post the CDR log here so you guys can see it? Should i edit the phone numbers out?
All but the top 4 lines are the same number.
where do calls go after hours? to an IVR?
Have you tried installing Dialplan Visualizer? GitHub - madgen78/cpviz: Dial Plan Vizualizer module for FreePBX
Admin>Module Admin>Upload from Web: https://github.com/madgen78/cpviz/archive/refs/heads/master.zip
Should give you a visual overview of your call flow from DID to hangup/Voicemail
Yes, an after hours IVR that plays an announcement and only has one option, to leave a VM by pressing 9.
No, but I can try that.