[OpenSIPS-Users] dialplan out_var
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Aug 29 13:43:34 UTC 2022
Hi,
No quotes are added by the dialplan module at all. I think out value
inherited the quotes from the input value, the From Display Name, which
may be a quoted value.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
https://www.opensips.org/events/Summit-2022Athens/
On 8/29/22 3:35 PM, Антон Ершов wrote:
> Hello friends!
>
> In version: opensips 3.2.8 (x86_64/linux)
> I observe strange behavior of the dialplan module. the value returned
> to the $var(out) variable is wrapped in quotes. In version 3.2.5 no
> such behavior was observed. this forces you to do additional work with
> the result obtained in order to use it further.
>
> my config
> if (dp_translate(0, $fn, $var(dp_out), $var(dp_attrs))) {
> xlog("L_INFO", "$ci translated to var $var(dp_out) with
> attributes: '$var(dp_attrs)'\n");
> ...
> }
>
> show in console
>
> /usr/sbin/opensips[30318]: 287b5bea-26c4-11ed-abcd-016f252b0962
> translated to var "000012345" with attributes: 'test'
>
> as you can see the value is wrapped in quotes
> if you try to use the value of the variable in some other place, for
> example in uac_replace. quotation marks are also present
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220829/9958c01e/attachment.html>
More information about the Users
mailing list