Type something to search...
How to reroute a 404 call with an Audiocodes SBC

How to reroute a 404 call with an Audiocodes SBC


Introduction

When a call is sent to an unknown number or extension in a business telephony solution, the call fails and returns an error. Sometimes, this extension is known in another system and must be answered even if the first system rejected the call. Here is a detailed explanation of how to configure alternative routing in your SBC (Session Border Controller).


Explanation of the problem

When I work on a telephony migration to Microsoft Teams, I set up a SIP trunk that allows me to connect the existing PBX to Teams through an SBC. This hybrid architecture allows me to migrate services smoothly while maintaining service continuity with the legacy system. This way, a Teams user can call a user in the PBX and vice versa. The SBC also allows me to connect the carrier’s SIP trunk and third-party solutions that operate within the company (analog or SIP systems, etc.).

The image below shows an example of a multi-service configuration : Teams, Telus (carrier), analog gateways (ATA), CUCM (PBX) and Intrado (911 console).

image

In one of my current projects (with a city), we need to connect the citizens’ 911 call handling solution to Teams so that calls can be handled by an agent from their Teams client. However, since we’re in the process of migrating, not all agents have yet been migrated to Teams, and some are still using a phone connected to the Cisco PBX (CUCM). Calls must therefore be handled by Teams or Cisco.

So how do we know where to send the call for handling when we don’t know which solution each agent is logged into ? If calls are sent to Teams and the extension doesn’t exist, the call returns a 404 - User Not Found error and hangs up. That’s a lost call !

The solution is to set up routing based on the 404 code returned by Teams to the SBC. The SBC sends all calls to Teams and as soon as a 404 error is returned, the SBC reroutes the call into the PBX to connect the call with the Cisco agent.


Prerequisites

Administrator role

  • An administrator account to access the Audiocodes SBC.

Step 1 : Log in to the SBC

Connect to the SBC by opening your web browser to https://YOUR_IP_ADDRESS.

image


Step 2 : Create an alternate routing code

Click Setup, Signaling & Media, then SBC, and Alternative Reasons Set.

Click New, and create the 404 Not Found code.

image


Step 3 : Add the code to the Teams IP Group

Click Setup, Signaling & Media, then Core Entities, and IP Groups.

Edit your Teams IP Group and add the 404 code you created to the SBC Alternative Routing Reasons Set attribute.

image


Step 4 : Create an alternative routing rule

Click Setup, Signaling & Media, then SBC, and IP-to-IP Routing.

Add a new routing rule to route calls to the CUCM, below the rule that routes calls to Teams. This new routing rule must have the Alternative Route Option attribute configured with the value Alternative Route Consider Inputs.

image


Call analysis

We can see in the Syslog capture of my Audiocodes SBC that my call is sent by Intrado to the SBC, which then sends it to the first Teams proxy; the call is returned with a 404 error since the +1234 extension is unknown there. The call is tested on all three Teams proxies before being sent to the CUCM proxy, which accepts the call (200 OK (SDP)) since the +1234 extension is known there.

image


Conclusion

You now know how to configure 404-based alternate routing on an Audiocodes SBC.


Sources

Audiocodes - SIP response codes


Did you enjoy this post ? If you have any questions, comments or suggestions, please feel free to send me a message from the contact form.

Don’t forget to follow us and share this post.

Related Posts

How I resolved dropped Teams calls

How I resolved dropped Teams calls

Introduction A customer contacted me to tell me that he was having an issue with his Microsoft Teams telephony. Outgoing calls are being cut off even before the audio connection is establis

Read More
Pricing update for Teams telephony licenses

Pricing update for Teams telephony licenses

Introduction Microsoft recently announced a price increase for several Teams telephony licenses, effective April 1, 2025. This pricing update reflects the continued innovation and increased

Read More
The SMS messages will be native in Teams

The SMS messages will be native in Teams

Introduction Microsoft Teams continues to evolve, offering comprehensive communication and collaboration solutions. Among its features, SMS integration allows Teams users to easily communic

Read More
Import the DigiCert Root G2 certificate into a Ribbon SBC

Import the DigiCert Root G2 certificate into a Ribbon SBC

Introduction Since the arrival of Teams Direct Routing telephony, TLS certificates used by Microsoft servers are linked to the following root certification authority :Common Certificate

Read More
Import the DigiCert Root G2 certificate into an Audiocodes SBC

Import the DigiCert Root G2 certificate into an Audiocodes SBC

Introduction Since the arrival of Teams Direct Routing telephony, TLS certificates used by Microsoft servers are linked to the following root certification authority :Common Certificate

Read More
How to configure callback in a Teams queue

How to configure callback in a Teams queue

Introduction Callback in Teams allows callers in a queue to be called back after a certain time rather than waiting until an agent becomes available.Prerequisites **Licenses

Read More
How to handle duplicates in Teams directory search

How to handle duplicates in Teams directory search

Introduction Microsoft recently announced a significant optimization for the search by name and extension functionality in its Teams auto attendants. You have probably already had this case

Read More
How to inventory Direct Routing numbers in Teams

How to inventory Direct Routing numbers in Teams

Introduction Microsoft Teams continues to evolve to offer ever more effective communication and collaboration solutions. To make life easier for administrators, Microsoft has announced the

Read More
Debugging Teams calls via the SIP ladder

Debugging Teams calls via the SIP ladder

Introduction Microsoft Teams continues to evolve to offer ever more advanced communication and collaboration solutions. Among the features arriving very soon, we find the possibility of obt

Read More
How to analyze Direct Routing calls via the SIP ladder

How to analyze Direct Routing calls via the SIP ladder

Introduction I wrote an article last February to announce the upcoming release of the SIP ladder to analyze Teams Direct Routing calls from the Microsoft Teams Admin Center. The feature is

Read More
How to analyze incoming calls in Teams with CQD

How to analyze incoming calls in Teams with CQD

Introduction Microsoft's Teams Call Quality Dashboard (CQD) is a powerful tool designed to help administrators monitor and improve the quality of phone calls within their organization.

Read More
How to enable LDAP routing in an Audiocodes SBC

How to enable LDAP routing in an Audiocodes SBC

Introduction LDAP (Lightweight Directory Access Protocol) routing over an SBC (Session Border Controller) allows calls to be managed using information stored in an Active Directory.

Read More
Checking licenses for PSTN bot calls in Teams

Checking licenses for PSTN bot calls in Teams

Introduction Microsoft has announced an important update regarding license verification for PSTN bot calls to users in Microsoft Teams. This update aligns licensing requirements for Teams u

Read More
Managing call priorities in Teams call queues

Managing call priorities in Teams call queues

Introduction With the evolving use of Microsoft Teams as a business telephony solution, Microsoft is introducing a highly anticipated feature : call priority management in queues. This new

Read More
CyberGate connects your intercoms in Teams

CyberGate connects your intercoms in Teams

Introduction In a world where unified communications have become essential, CyberGate presents an innovative solution for integrating your IP devices directly into Microsoft Teams. Develo

Read More
How to set up a calling plan spend limit in Teams

How to set up a calling plan spend limit in Teams

Introduction Businesses interested in using Microsoft Teams as their single provider for telephony services, but reluctant due to the high cost of calling plans, can choose a *Pay-As-You-Go

Read More
How to configure and analyze emergency calls in Teams

How to configure and analyze emergency calls in Teams

Introduction Microsoft Teams telephony offers an essential feature for organizations : emergency call management. This feature allows users to make emergency calls while dynamically providi

Read More
How to use shifts in a Teams queue

How to use shifts in a Teams queue

Introduction The Shifts app in Microsoft Teams is a work schedule management tool designed primarily for frontline teams. It allows managers and employees to plan, view, share, and manage

Read More