Hello I’m new in FreePBX
I’m using FreePBX 15.0.37.1.
I have 3 trunks (last 4 digits are: 2976, 0702, 0704) and 6 extensions (214,215,216,221,222,223).
I want that any extension to be able to use any available trunks for outbound calls.
The calls work perfectly on each extensions.
I set “Continue if Busy” on all trunks and i see the “In use by 3 routes” message on the trunk’s page.
In the outbound routes, I set the other trunks in the “Trunk sequence for matched routes” one after the other. (is it need or not?)
The orders are as follows in the outbound routes:
1.trunk: 2976 - 2976,0702,0703
2.trunk: 0702 - 0702,0703,2976
3.trunk: 0704 - 0704,0702,2976
I set the callerID in the Outbound Routes/Dial Patterns to 21[4-6] and 22[1-3]. (which extension has rights to which trunk. isn’t it?)
But…
If one extension calls, I get an “All circuits are busy now please try again later” message on the other extensions.
The problem is each extension first tries to call the first trunk set as the first in the outbound routes (2976).
Why my extension not jump to the next free trunk?
I think the Dial Patterns is the main problem but I don’t know how to set it to be good.
Should I attach any logs? If yes, which one?
So sorry if my english is full with error…
Thanks if you help
Hangup cause 21 just says that the call was rejected by the 0704 and 0702 trunks. For more details, at the Asterisk command prompt (not a shell prompt), type pjsip set logger on
make another failing test, and paste a new log, which will now include SIP traces.
On the call via the second trunk, sip.ephone.hu rejected the call with SIP/2.0 403 Invalid From username
… From: <sip:XXXXX[email protected]>;tag=3327881d-ca19-4d48-a179-059ff835a225
If this came from the From User setting in the trunk, you need to set it to the correct value for each trunk.
If this is a caller ID you are trying to send, it appears that ephone doesn’t support sending a caller ID that doesn’t correspond to the number on the trunk, so you need to set From User or Force Trunk CID appropriately.