Script transformations

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Script transformations

Chris Maciejewski
Hi,

I am trying to get "Replaces" from "Refer-to" header ($rt - variable) with the following code:

$var(replaces) = $(rt{param.value,Replaces});

but unfortunately

xlog("Replaces: $var(replaces)");

shows nothing.

My "Refer-to:" looks like:

sip:<user>@<some_ip>:5060?Replaces=zqinclbguzedgwq%40<some_ip>%3bto-tag%3das4d3ce04b%3bfrom-tag%3dqrtpr

Can anyone please suggest what would be the correct syntax of transformation in the above case?

Kind regards,
Chris

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users