[Devel] [ openser-Feature Requests-1662566 ] Enhance t_check_status()

SourceForge.net noreply at sourceforge.net
Sat Feb 17 23:49:10 CET 2007


Feature Requests item #1662566, was opened at 2007-02-17 17:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1662566&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Norman Brandinger (goestelecom)
Assigned to: Nobody/Anonymous (nobody)
Summary: Enhance t_check_status()

Initial Comment:
I would like to suggest an enhancement to tm/tm.c t_check_status(), or perhaps the addition of a "$T_Check_Status" variable.

The idea would to be able to create the following code in a configuration file:

switch($T_Check_Status) {
  ...
}

or

switch (t_check_status() {
  case 302:
    xlog("L_NOTICE", "Recipient moved, redirecting\n");
    $ru = "new_location at gw.com";
    t_relay();
    break;
    
  case 481:
    xlog("L_NOTICE", "Call Leg/Transaction Does Not Exist\n);
    exit;

  default:
    xlog("L_NOTICE", "Warning Unhandled Status\n");
}

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1662566&group_id=139143



More information about the Devel mailing list