[sr-dev] git:master:efa9b09e: doc: documentation for xavp_params_explode()
Olle E. Johansson
oej at edvina.net
Mon Apr 20 21:25:39 CEST 2015
VERY cool, Daniel!
Thank you!
/O
On 19 Apr 2015, at 21:37, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
> +4.6. xavp_params_explode(sparams, xname)
> +
> + Convert a parameters string in xavp atributes.
> +
> + The first parameter has to be a string in the format of SIP header
> + parameters (name1=value1;...;nameN=valueN). The second parameter is the
> + name of the root xavp to hold the pairs (nameX,valueX).
> +
> + The values are stored as string type.
> +
> + Function can be used from ANY ROUTE.
> +
> + Example 1.9. xavp_params_explode usage
> +...
> +xavp_params_explode("a=b;c=d;e=d", "x");
> +# results in:
> +# $xavp(x=>a) = "b";
> +# $xavp(x=>c) = "d";
> +# $xavp(x=>e) = "f";
More information about the sr-dev
mailing list