I have an old Asterisk/FreePBX system (ver 13.0.167) that has developed a strange problem. I have two copper lines with analog FXO ports. I want to use one port for local outgoing and 800 calls, the other for all other 1+ calls. SOMETIMES, when I make a 1-123-456-7890 type call, I get exactly two times where I get an instant ring signal, and neither of the analog lines goes off-hook. The 3rd time I try the call, it goes out as intended on the desired line. I’ve been chasing this for some time and have extracted some logs, but they don’t tell me what is wrong.
You may find more experience on the FPBX forums. Some members here have experience with it, and some not.
I’ve worked with Asterisk for about 25 years and have never used FPBX.
A console log (with verbosity cranked up a bit) may yield clues.
Thanks for the pointer to FPBX. I have some conflicting notes from a long time ago. Some say to not have the dialplan in outgoing routes, the other says to not have it in trunks. Right now I took the dilaplan out of the trunks section and will see what happens. It seems like every time the system is rebooted, the same dialplan info goes back in both places.
Thanks,
Jon
Hi Jon, a couple of thoughts.
Put the dial patterns in Outbound Routes only. That’s where you choose which trunk a call uses. Leave the trunk’s Dial Number Manipulation Rules blank unless one line really needs a prefix or strip change. If you have patterns in both places, a call can match the route and then fail the trunk’s rules, and you hear that instant ring with no line going off-hook.
If the patterns come back after a reboot, the change probably isn’t being saved. After you edit, click Submit and then the red Apply Config button. You can check by running fwconsole reload and seeing whether the trunk’s rules are still blank.
Since it fails exactly twice and then works, I’d also look at the FXO side. The driver may think the line is still in use from the last call (bad hangup detection), so it skips to the next channel. To catch it, run asterisk -rvvvvv, dahdi show channels and core set debug 3 while you place a failing call. That shows which trunk it tried and the hangup cause, like 34 (congestion) or 17 (busy). If it’s hangup detection, busydetect and hanguponpolarityswitch on the FXO ports are where I’d look next.
If you post that console output here, people can probably narrow it down quickly.
(Drafted with AI assistance, reviewed by me.)
Just a tip, if you are fed up of typing all those “v” characters, edit your asterisk.conf and change the verbose setting to, e.g.
verbose = 100
Now you don’t have to type any “v” characters at all.
(Drafted with no AI assistance whatsoever.)
Good tip.
I’ve been using -rvvvvvTvvvvv for years because it surprises me it works. Now I just use it to see if it still works.
Thanks, ConnectivityKing! What you suggest is what I now have set up. I had notes that first said do the opposite, and later said to do it your way. I will have to see if this works right next time I make a long distance call.
Thanks very much!
Jon