[OpenSIPS-Users] textops replace and variables ..
sindrek
rauskjegg at gmail.com
Mon Aug 20 13:07:10 CEST 2012
Hi,
I'm stuck with an idiotic thing her .. probably an easy thing which I can
not see ..
I want to add "something" in front of a register contact uri.
This static way works:
if(is_method("REGISTER")){
replace("Contact: <sip:", "Contact: <sip:something");
};
This dynamic way does not:
if(is_method("REGISTER")){
$var(contact) = "something";
replace("Contact: <sip:", "Contact: <sip:"+$var(contact));
#or this:
replace("Contact: <sip:", "Contact: <sip: $var(contact)"); #does not get
the variable content, just it's name
};
I guess the replace method in the textops module does see the variable as
text/string? It migth need somethings like a .toString?
/BR
Sindre
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/textops-replace-and-variables-tp7581301.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list