WEB UI to manage Internal/External scode translations:


The negative "result" codes  in the customer's CDRs section can be interpreted using the following table:


|  ID | Description                                              | Hint                                                                                             |
|-----|----------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|  -1 | External Translator Rejected The Call                    | Check configured external translator script. Contact support team.                               |
|  -2 | Body-less INVITE                                         | Old code for INVITE without SDP. Contact support team.                                           |
|  -3 | Account Expired                                          | Check Lifetime setting on Account                                                                |
|  -4 | Connection Capacity Exceeded                             | Check Capacity setting on Vendor Connection                                                      |
|  -5 | Malformed SDP                                            | Check SDP in incoming INVITE                                                                     |
|  -6 | Unsupported Content-Type                                 | Check SDP in incoming INVITE                                                                     |
|  -7 | Unacceptable Codec                                       | Check Preferred Codec and Use Preferred Codec Only on Account                                    |
|  -8 | Invalid CLD Translation Rule In The Authentication Rule  | Check CLD Translation Rule syntax on Authentication Rule of an Account                           |
|  -9 | Invalid CLI Translation Rule In The Authentication Rule  | Check CLI Translation Rule syntax on Authentication Rule of an Account                           |
| -10 | Invalid CLD Translation Rule In The Account              | Check CLD Translation Rule syntax on Account                                                     |
| -11 | Invalid CLI Translation Rule In The Account              | Check CLI Translation Rule syntax on Account                                                     |
| -12 | Cannot Find The Session To Bind To                       | The session was not found in b2bua. Contact support team.                                        |
| -13 | Invalid CLI Translation Rule In The DID                  | Check CLI Translation Rule syntax on DID                                                         |
| -14 | No Rate Found In Tariff                                  | Check Tariff Rates of Account                                                                    |
| -15 | Call Loop Detected                                       | Check Disallow Loops on Account                                                                  |
| -16 | Too Many Sessions                                        | Check Max Sessions on Environment                                                                |
| -17 | Account Is In Use                                        | Check Max Sessions on Account                                                                    |
| -18 | Call Per Second (CPS) Limit On Account Exceeded          | Check Max Calls Per Second on Account                                                            |
| -19 | Call Per Second (CPS) System Limit Exceeded              | Check Max CPS on Account                                                                         |
| -20 | Insufficient Balance                                     | Check Balance on Account/Customer                                                                |
| -21 | Destination Is Forbidden                                 | Check Destination Set Route Forbidden flag                                                       |
| -22 | No Rate Found In Customer's Tariff                       | Check Tariff Rates of Customer                                                                   |
| -23 | Loss Protection                                          | Check Loss Protection on Tariff                                                                  |
| -24 | Address Is Incomplete                                    | Check Min/Max Length for the prefix in Destinations                                              |
| -25 | No Routes Found                                          | Check Route in Destination Set                                                                   |
| -26 | Call Per Second (CPS) Limit On Connection Exceeded       | Check Max CPS on Vendor Connection                                                               |
| -27 | Invalid Asserted ID Translation Rule In The Account      | Check Identity Translation Rule syntax on Account                                                |
| -28 | CLD is in the Do Not Call List                           | Check DNC List and DNCL Lookup setting on Account/Customer                                       |
| -29 | Invalid CLD Translation Rule In The DID                  | Check CLD Translation Rule syntax on DID                                                         |
| -30 | Call has been canceled by calling party                  | Caller aborted the call                                                                          |
| -31 | Call Per Second (CPS) Limit On Customer Exceeded         | Check Max Calls Per Second on Customer                                                           |
| -32 | Too Many Sessions For Customer                           | Check Max Sessions on Customer                                                                   |
| -33 | Call Per Second (CPS) Limit On Auth Rule Exceeded        | Check Max Calls Per Second on Account Authentication Rule                                        |
| -34 | Too Many Sessions For Auth Rule                          | Check Max Sessions on Account Authentication Rule                                                |
| -35 | Invalid CLI Translation Rule In Post-Auth Rule           | Check CLI Translation Rule syntax on Account Post Auth Rule                                      |
| -36 | Invalid CLD Translation Rule In Post-Auth Rule           | Check CLD Translation Rule syntax on Account Post Auth Rule                                      |
| -37 | CLI is in the Do Not Call List                           | Check CLI DNC List and DNCL Lookup setting on Account/Customer                                   |
| -38 | Too Many Sessions Overall                                | System Max Sessions limit exceeded. Contact support team.                                        |
| -39 | Call Per Second (CPS) Overall Limit Exceeded             | System Max Calls Per Second limit exceeded. Contact support team.                                |
| -40 | Anonymity Disallowed                                     | Check Block Incoming AC on Account                                                               |
| -41 | STIR/SHAKEN verification failed                          | Bad Identity in incoming INVITE, check Verification Connector settings in Stir-Shaken            |
| -42 | Internal Server Error                                    | Check RTPProxy status. Contact support team.                                                     |
| -43 | Media Relay Error                                        | Check RTPProxy and SMG status. Contact support team.                                             |
| -44 | STIR/SHAKEN Identity Required                            | No Identity in incoming INVITE, check Verification Connector settings in Stir-Shaken             |
| -45 | STIR/SHAKEN Authentication failed                        | Check Authentication Connector settings in Stir-Shaken and STIR/SHAKEN settings in Routing Group |

For inbound calls there will be the following SIP error codes:


400, 'Bad Request - Malformed SDP'
400, 'Bad Request - Unsupported Content-Type'
403, 'Account Expired'
403, 'Account in Use %d' % self.i_account
403, 'Auth Failed (1)'
403, 'Auth Failed (2)'
403, 'Call Loop Detected'
403, 'Call rate too high for account %d' % self.i_account
403, 'Call rate too high'
403, 'Forbidden Destination %s' % prefix
403, 'Insufficient Balance %d' % self.i_account
403, 'Invalid CLD translation (1)'
403, 'Invalid CLD translation (3)'
403, 'Invalid CLI translation (2)'
403, 'Invalid CLI translation (4)'
403, 'Invalid CLI translation (5)'
403, 'Invalid P-Asserted-Id translation'
403, 'Loss to Destination %s Exceeds Max Loss' % prefix
403, 'No Rates Found for Account %d' % self.i_account
403, 'No Rates Found for Customer %d' % i_customer
403, 'Too many active calls'
403, 'Loss Protection'
484, 'Address Incomplete'
488, 'Not Acceptable Here'
500, 'Body-less INVITE is not supported'
500, 'Cannot Bind to the Requested Session'
500, 'Internal Server Error (1)'
500, 'Internal Server Error (2)'
500, 'Internal Server Error'
500, 'No Routes For the Call'
503, 'Call rate too high per connection'
503, 'Service Unavailable (FIXME1)'
503, 'Service Unavailable (FIXME2)'
503, 'Service Unavailable'

Once the customer sends the call, and after the first invite b2bua generate the following error:

500 Internal Server Error
and the call is rejected, most likely that's because the customer has made changes to the routing group of an account (assigned another routing group or so) when there was live traffic running.

As a result, the cache wasn't able to re-read immediately, it usually took up to 1 minute, or so after the first call attempt.


Please, do not confuse this error to any other 500 one:

Server internal error, which could be generated because of different reasons and in different periods of time.


TROUBLESHOOTING:


-4 "Connection Capacity Exceeded" and -16 "Too Many Sessions" (reached env CC limit) codes return 503 Service Unavailable SIP code.


"403 Auth Failed (1)" error is returned by b2bua when the "Trust CLI" option of the account is disabled and CLI doesn't match VoIP login during DIGEST authentication only

"403 Auth Failed (1)" error is returned by b2bua when the account authenticated for the call is BLOCKED. Starting from 5.2 the same error is returned for the case Customer that owns account authenticated for the call is BLOCKED.

Note: no CDRs are written for the calls that are dropped on blocked Account/Customer setup.

"403 Auth Failed (2)" error is returned when VoIP password is incorrect during DIGEST authentication only.


488 Not Acceptable Here

Account codec is not compatible with caller party codec.

Solution: to disable "Use Pref. Codec Only " in account parameters or reconfigure it according to the codec used.