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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to