[OpenSER-Users] Can't use variables as function parameter?
Iñaki Baz Castillo
ibc at in.ilimit.es
Wed Aug 1 10:18:47 CEST 2007
El Tuesday 31 July 2007 20:38:44 Victor Gamov escribió:
> 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 ?
Yes, thanks, that works.
Anyway I can't understand why some functions allow variables into their
parameters and others no :(
Thanks a lot.
--
Iñaki Baz Castillo
ibc at in.ilimit.es
More information about the Users
mailing list