[SR-Users] pseudo variables in strings

Alex Balashov abalashov at evaristesys.com
Fri Apr 1 14:18:30 CEST 2016


‎Juha,

Yes, either by separating the PV elements, e.g.

$var(x) = $fU + "abc";

... or with the newer $_s() PV created for this purpose:

$var(x) = $_s($fUabc);

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

Sent from my BlackBerry.
  Original Message  
From: Juha Heinanen
Sent: Friday, April 1, 2016 08:14
To: sr-users at lists.sip-router.org
Reply To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] pseudo variables in strings

If I have a string that contains pseudo variables, e.g,,

$var(uri_pattern) = "sip:$fU at tutpro.com";

is it somehow possible to replace them with their values, something like:

$var(uri) = eval("$var(uri_pattern)");

-- Juha


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list