[sr-dev] [tracker] Comment added: route name in action struct

sip-router bugtracker at sip-router.org
Mon Jun 9 16:57:45 CEST 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#441 - route name in action struct
User who did this - Daniel-Constantin Mierla (miconda)

----------
First patch is ok, but the second has hardcoded only route for everything but failure route.

You can add a function like:

<code>
char* get_current_route_name() {
   switch(route_type) {
      case REQUEST_ROUTE:
          return "route";
      case FAILURE_ROUTE:
          return "failure_route";
      case BRANCH_ROUTE:
      ...
      default:
          return "unknown";
   }
}
</code>

You can see all the relevant route types in route.h file from core.
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=441#comment1519

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list