another issue -
with my matrix Gateway…
on chansip all is working fine but on pjsip outgoing calls are going fine…
but incoming calls are not landing on the freepbx… asterisk log matrix sngrep log
sip and pjsip listen on different ports. You are stating that pjsip is not working but you only posted the sip configuration. Make sure your calls are being sent to the proper UDP port for pjsip.
is there a command for CLI from where i can get the pjsip conf settings for the trunk?
it is very inconvenient to take screenshots and post them here and then experts like you to read it.
The log in your penultimate post shows a complete call, but there was an attempt on line 717 to call 31 at BSNL, which of course was rejected. The call was then sent to the Matrix and accepted. I did not attempt to analyze why this happened, but BSNL might block your account if you send them too many invalid requests.
The Asterisk log in your last post only shows an outbound call via the Matrix, which appeared to be completely successful. If something was wrong with it, please explain.
The ‘sngrep’ log in your last post shows Asterisk requesting authentication from the Matrix, which it apparently didn’t provide. Try configuring the pjsip trunk for Authentication None. If it’s already set that way, put 192.168.1.240 in Match (Permit) for the trunk. If you still have trouble, paste the Asterisk log for such a call, including pjsip logger.
Screenshots or your trunk settings, both the General and Advanced tabs of pjsip Settings, should be fine.
Or, from the Asterisk command prompt: pjsip show endpoint matrix_pjsip pjsip show auth matrix_pjsip pjsip show aor matrix_pjsip pjsip show identify matrix_pjsip pjsip show registration matrix_pjsip
I’m puzzled. If both FreePBX and Matrix are statically configured (neither side is registering to the other) and you have Authentication None, I don’t understand why Asterisk is trying to auth the INVITE from the Matrix.
Paste the Asterisk log (with pjsip logger on) for a failing call from Matrix to FreePBX.
You have pjsip Port to Listen On = 5160 and chan_sip Bind Port =5060. That’s backwards from the default settings, but is not a problem.
Then, you have the Matrix configured to send calls to port 5060 on FreePBX, so it’s going to chan_sip, where there is no trunk, so a phony auth request gets dummied up, and the Matrix chokes.
Configure the Matrix to send these calls to port 5160 and you should be good to go.
is it possible to have all FXO ports on the matrix register as individual trunks rather than peer-2-peer connection as a single trunk… the rotation of the trunks is done at matrix end…also i can select specific trunk using specific prefix when dialing and matrix removes that prefix at its end…
Just on a side note…is it significantly better to use pjsip instead on chansip??
i personally find chansip much easier to configure and is more forgiving…