[OpenSER-Users] Can't use variables as function parameter?
Victor Gamov
vit at lipetsk.ru
Tue Jul 31 20:38:44 CEST 2007
IƱaki Baz Castillo wrote:
> Hi, in URI as "ping at domain.org" I need to change URI to just "domain.org"
> (without the username@). But I have multidomain so can't rewrite uri directly
> and must use the requested URI domain ($rd).
>
> So I try:
>
> if (uri=~"sip:ping[@]+.*") {
> rewriteuri("sip:$rd");
> xlog("L_INFO", "-- New URI = $ru\r\n");
$ru = "sip:" + $rd ?
--
CU,
Victor Gamov
More information about the sr-users
mailing list