I would recommend just using $du. [1] $du = “sip:” + $var(Fqdn) + “:5060”;
[1] http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc35 Ben Newlin From: <users-boun...@lists.opensips.org> on behalf of "Ramachandran, Agalya (Contractor)" <agalya_ramachand...@comcast.com> Reply-To: OpenSIPS users mailling list <users@lists.opensips.org> Date: Thursday, November 10, 2016 at 4:35 PM To: OpenSIPS users mailling list <users@lists.opensips.org> Subject: [OpenSIPS-Users] usage of setdsturi Hi team, I have a question in usage of setdsturi(). When I hardcode the uri in the function, such as setdsturi(“sip:t...@test.com:5060”) – this works. But why I try to use script variable, it complains as bad_uri. $var(test) = "sip:"+$var(Fqdn)+ ":5060"; setdsturi("$var(test)"); How do I setdsturi() dynamically, with the value in script variable and not by hardcoding? Regards, Agalya
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users