O'Reilly logo

Building Telephony Systems with OpenSER by Flavio E. Goncalves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing Call Forward on Busy or nanswered

Icall forwardingblind call forwarding, implementingmplementing Call Forward on Busy or nanswered

This is the second part of this chapter. Now we will introduce two new important concepts. The first one is the failure_route and the second one is the append_branch used to fork the call. We will handle the following failure situations:

  • 408 – Timeout
  • 486 – Busy Here
  • 487 – Request Cancelled

To implement call forward on busy and call forward when unanswered, we will use the concept of the failure route.

In the logic below, just before sending the INVITE to the standard processing we will call the function t_on_failure("1"). This allows us to handle the SIP failure messages (with reply codes higher than 299, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required