[OpenSER-Users] Can't use variables as function parameter?

Iñaki Baz Castillo ibc at in.ilimit.es
Mon Jul 30 15:18:12 CEST 2007


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");
          ...


but I get:

    -- New URI = sip:$rd

so it seems that I cannot use variables for making function parameters, is it 
true? so then, how should I do it? maybe I need using AVP's for that?

Thanks for all.


-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list