[OpenSER-Devel] [ openser-Feature Requests-1864315 ] And #define in cfg file (like in C)
SourceForge.net
noreply at sourceforge.net
Wed Jan 16 10:45:55 UTC 2008
Feature Requests item #1864315, was opened at 2008-01-05 03:28
Message generated for change (Comment added) made by henningw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1864315&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: And #define in cfg file (like in C)
Initial Comment:
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"
----------------------------------------------------------------------
>Comment By: Henning Westerholt (henningw)
Date: 2008-01-16 10:45
Message:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1864315&group_id=139143
More information about the Devel
mailing list