User gets "403 Forbidden" from MOR

From Kolmisoft Wiki
Jump to navigationJump to search

To find out why User receives "403 Forbidden" from MOR, you should:

1) Check Last Calls for User's calls
Go to Statistics -> Calls -> Last Calls and search for calls of the User. If you find any failed calls, check the hangupcause code (HGC). All information on HGC and tips how to resolve it can be found here.

2) Check Last Calls for the destination the User dialled
Go to Statistics -> Calls -> Last Calls and search for the destination number, which was dialled by the User ("User" field should be empty in the Search filters):

  • If you find calls with HGC 207, this means that your provider is making calls and you did not allow the provider to make calls. To configure provider which can make calls, follow the manual here.
  • If you find calls with HGC 200, this means that User is not configured correctly or User is using incorrect details to register. Check your User (and User's device) configuration, make sure it is correct.

To check, if User is using correct registration details, connect to your server via SSH and check the Asterisk logs:

grep 1.2.3.4 /var/log/asterisk/messages

where 1.2.3.4 is the IP of your User.

If User is trying to register with a wrong password, you will see logs like these:

[2015-03-11 12:56:09] NOTICE[13687] chan_sip.c: Registration from '<sip:1212@1.2.3.4:5060>' failed for '11.22.33.44:5062' - Wrong password


If none of that helps, make sure user is sending calls to your MOR IP. To check if anything is coming to MOR, capture all incoming packets. This can be done by using Wireshark.

See also