[Serusers] Expressions in config file
Sybren Stüvel
sybren at thirdtower.com
Wed Nov 24 00:59:07 CET 2004
Hi there,
Is there any way to use expressions in the route configuration? I'd
love to use something like:
if(uri=~"sip:([a-z])+ at thirdtower.com" && !lookup()) {
seturi("sip:voicemail at thirdtower.com/$1");
}
Which would mean "if someone calls to "sip:someone at thirdtower.com" but
"someone" is unknown / unregistered, forward to
"sip:voicemail at thirdtower.com/someone".
Greetings,
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
---- Registered Linux user #349923 --- http://counter.li.org/ ----
More information about the sr-users
mailing list