Hello,

first store the integer result in a $var(x) and then you can do:

$dlg_var(mf) = "" + $var(x);

Cheers,
Daniel


On 18.05.26 16:56, Benoit Panizzon via sr-users wrote:
> Hi
>
> Is there an obvious integer to string transformation which I am missing?
>
> I would like to perform a bitwise operation on a dlg_var which holds a
> string representation of an integer:
>
>       $dlg_var(mf) = $(dlg_var(mf){s.int}) | 1;
>
> Is not allowed as this results in assigning an integer to a dialog var
> which is string only.
>
> Or would there be some more elegant way to carry a handful of
> true/false information through a complete dialogue?
>
> Mit freundlichen Grüssen
>
> -Benoît Panizzon-
> -- 
> I m p r o W a r e   A G    -    Leiter Commerce Kunden
> ______________________________________________________
>
> Zurlindenstrasse 29             Tel  +41 61 826 93 00
> CH-4133 Pratteln                Fax  +41 61 826 93 01
> Schweiz                         Web  http://www.imp.ch
> ______________________________________________________
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions -- 
> [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio World Conference, May 7-8, 2026 - Berlin, Germany -- kamailioworld.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- 
[email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to