Menu

#96 And #define in cfg file (like in C)

ver devel
closed-wont-fix
nobody
core (32)
5
2008-01-16
2008-01-05
No

It could be nice if openser.cfg allows #define like in C language.

For now I use variables to keep some constant info as:

$var(my_ip) = "123.123.123.10";
$var(voicemail_ip) = "123.123.123.11";
$var(gw_ip) = "123.123.123.12";

Of course those variables are processed for each OpenSer process (each time a message arrives).

With #define those contants would be processed just during compilation time:

#define MY_IP "123.123.123.10"
#define VOICEMAIL_IP "123.123.123.11"
#define GW_IP "123.123.123.12"

Discussion

  • Henning Westerholt

    Logged In: YES
    user_id=337916
    Originator: NO

    Hello Iñaki,

    i don't think its necessary to extend the server this way to get this functionality. This can be easily
    achieved with some external text processing scripts or tools like M4. For example take a look at: http://www.openser.org/docs/scripting

    Cheers,

    Henning

     
  • Iñaki Baz Castillo

    • status: open --> closed-wont-fix
     
  • Iñaki Baz Castillo

    Logged In: YES
    user_id=1844020
    Originator: YES

    Great, I didn't know "m4" !!
    Yes, with this my feature request is totally innecesary.
    Thanks a lot.

     

Log in to post a comment.