I use this subst("/^To:.*$/To: $var(new_to)\r/i") where $var(new_to)
is a new value of the "To" header and it works fine on kamailio-3.2.4
Sorry if I repeat myself - I just subscribed
properly to the list:
if you don't need to change it back for
replies and next requests, try:
$td = "xyz.com";
IIRC, that is available on 3.2.x. If not, either you upgrade or use
replace functions from textops.
Cheers,
Daniel
Thank you for replying. We tried the direct assignment of
$td="xyz.com" but the variable doesn't change. We are doing an xlog
print right after and an ngrep and we confirmed that the domain part
of the URI doesn't change. I also tried a subst() and it's the same
problem. I read on the online documentation that the variable is
read-only and I figured it can't be changed through these methods.
That's why I tried uac_replace_to().
To sum it up, is that variable read-only or not ?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org