[SR-Users] append_branch with pseudo variables

Carlos Ruiz Díaz carlos.ruizdiaz at gmail.com
Thu Aug 16 17:25:45 CEST 2012


Hello guys,

Why I can only append_branch() a SIP URI as a literal constant string? Why
not from a pseudovariable? It's the same for most of the core functions.

My intention is to do something like this:

append_branch("$cnx3a(route1)");
t_relay();

where cnx3a is a variable containing the SIP URIs.

The only "fix" I have found for this is by doing it as follows:

$ru = $cnx3a(route1);
append_branch();
t_relay();

Is there any other (and more elegant) way?

Regards.

Carlos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120816/6f44f8e8/attachment.htm>


More information about the sr-users mailing list