Hello,

On 27.01.25 12:07, Sergio Charrua via sr-users wrote:
Hello,

just wondering if there is any way to define 2 constants as :

# sets quarantine period the URL is set, in secs, after number of HTTP_RETRIES retries
#!define SOME_VAR_1 60

# sets the configuration values for HTable module parameter
#!define SOME_VAR_2 "some_configration_value" + SOME_VAR_1

I couldn't find anything in docs, and made several different ways without success.

Any suggestions?

have you checked #!defexp?

  - https://www.kamailio.org/wikidocs/cookbooks/devel/core/#defexp

Cheers,
Daniel


-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio World Conference, May 12-13, 2025, Berlin -- kamailioworld.com