That error is irrelevant, the result of some hacker using automated tools on a system in Canada attempting to access your system. Assuming that you have strong passwords, you don’t have to worry about these guys yet. Eventually, you can set up FreePBX firewall to block them.
What I asked for is the complete Asterisk log for a failing call, including pjsip logger. It’s typically several hundred lines. Paste it at pastebin.freepbx.org and post the link here.
When i try to make incoming call from my mobile phone ,the Asterisk not showing any log errors about the call but i can hear the phone ring on my mobile .
i only found this error :
WARNING[31899]: pjproject: <?>: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
When i try to make outgoing call
i pasted the log here
You apparently installed a module “extension routing” or “class of service” whose purpose is to control which extensions are allowed to use which Outbound Routes. By default, all routes are blocked from all extensions. You need to set your extension 1122 (or all extensions) to allow all routes. See https://wiki.freepbx.org/display/FPG/Extension+Routing-Admin+Guide
I did that with no success in outgoing or incoming calls .
I notice something :
The PJSIP show my trunk in peers but not in registrations .I think that’s means we are not registered in the trunk yet .
OK, so maybe something went wrong (IMO unlikely) or it failed further on. In either case, paste a new log (with pjsip logger on) and we’ll take a look.
Some providers don’t require registration, because they send calls to a previously configured IP address. I believe that is your situation. If incoming INVITEs hit your PBX, you don’t need registration.
@Stewart1
After >core restart now
No i can the following
== Endpoint MY-USER-NAME is now Reachable
– Contact MY-USER-NAME/sip:Y.Y.Y.Y:5083 is now Reachable. RTT: 16.922 msec
WARNING[24715]: pjproject: <?>: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
That is probably unrelated to your trunk. Are you using TLS on any of your trunks or extensions?
In any case, turn on both loggers: pjsip set logger on sip set debug on
make an outgoing test call, paste the complete Asterisk log for the call, post the link.
I am getting a 404 error on that link. Please upload it again. Make sure that ‘Delete After’ is set to ‘Keep Forever’, so future readers can learn from this thread. If you had accidentally selected ‘Burn on reading’, then it may have been deleted after someone else read it.
For the outbound, line 46 shows -- Executing [66663247@from-internal:7] GotoIf("PJSIP/1122-00000007", "1?restrictedroute-c4ca4238a0b923820dcc509a6f75849b,66663247,2:outbound-allroutes,66663247,2") in new stack
so the system still finds the selected Outbound Route restricted from extension 1122.
Assuming that the route that 66663247 should match is the first or only route in your Outbound Routes, please post screenshots of that route (all tabs).
For incoming, if you believe registration is required, please post a screenshot of Reports->Asterisk Info->Registries
Also, what, if anything, shows in sngrep when you attempt an incoming call?
When the number is called, what does the caller hear?
That pattern is intended for numbers in US, Canada and a few other countries. It won’t match the numbers you are dialing.
Replace the pattern with XXXX.
which will accept anything with 5 or more digits. After Apply Config for the new pattern, you will need to turn pjsip logger and sip debug back on. The call will likely still fail, but it should get much further. Paste a new log.
When i make call from my mobile i hear a message that says "the minimum cost of this call not available in your credit "
when i call from my extensions to outside i saw this error
res_pjsip_header_funcs.c:410 remove_header: No headers had been previously added to this session.
I don’t know what that means but suspect that it is a result of the provider eventually rejecting the call. It appears that the INVITE is coming in but is sent repeatedly, so there was no response (or an incorrect response).
I have trouble reading your sngrep because it was badly butchered by the forum software.
Please post it again, preceding it with three backquotes “```” (but without the “”) on a line by itself and following it with three backquotes on a line by itself. Look at the preview to confirm format before posting.
That is not relevant to what went wrong, please paste a new complete log.
So they are sending the call to port 5060 but no reply. If you are sure that you had pjsip logger on when the call was made and nothing was logged, there are two likely possibilities:
pjsip Port to Listen On was not set to 5060 – confirm that this is properly set.
blocked by FreePBX firewall.
For the Firewall, go to Admin -> System Admin ->Intrusion Detection. Do any addresses appear in the currently banned list?
Also, go to Connectivity -> Firewall, Networks tab and add y.y.y.y to Trusted zone.
Retest incoming with pjsip logger on. If anything gets logged, paste it and post the link.
For outgoing, after fixing the Outbound Route pattern, we need a new log.