[SR-Users] append_branch with pseudo variables
Daniel-Constantin Mierla
miconda at gmail.com
Thu Aug 16 18:13:01 CEST 2012
Hello,
On 8/16/12 5:25 PM, Carlos Ruiz Díaz wrote:
> 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?
you can use km_append_branch:
http://kamailio.org/docs/modules/stable/modules_k/kex.html#id2551404
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw
More information about the sr-users
mailing list