[Devel] [ openser-Feature Requests-1591247 ] Named routes and flags

SourceForge.net noreply at sourceforge.net
Sun Nov 12 21:06:39 CET 2006


Feature Requests item #1591247, was opened at 2006-11-06 10:41
Message generated for change (Comment added) made by vabdulla
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1591247&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: core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Named routes and flags

Initial Comment:
In the latest SER, it's possible to have named routes,
it would be nice to see the same functionality in
OpenSER as well.

For example


route {
   if (loose_route) {
      # blabla
   }

   if (METHOD == INVITE) {
      route("invite.handler");
   }
}

route["invite.handler"] {
   # bla bla bla bla
   if (from_uri =~ "1.3.3.7") {
      setflag("eliteUser");
   }
}

This makes the code a lot easier to read, especially
when you have some real large configurations.

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

Comment By: vabdulla (vabdulla)
Date: 2006-11-12 21:06

Message:
Logged In: YES 
user_id=1580175

Hello,
Did you saw the scripting tutorial on openser.org:
http://openser.org/docs/scripting.html ?
It explains how to achieve this exact goal with simple m4
macros.
I am doing so and it really eases the script writing task...

-vma
.



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

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



More information about the Devel mailing list