January 2016
Intermediate to advanced
384 pages
8h 6m
English
Now, we will review an important concept called failure_route. We will handle the following failure situations:
To implement call forward on busy and call forward when unanswered, we will use the concept of the failure route. In this logic, we will call the t_on_failure("missed_call") function just before sending the INVITE to the destination. This allows the handling of SIP negative replies (codes higher than 299).
We will use a logic similar to blind call forwarding; load an AVP to redirect the call to a specific URI as follows:
if(avp_db_load("$rU","$avp(fwdbusy)")) { $ru = $avp(fwdbusy); ...Read now
Unlock full access