[asterisk-dev] res_odbc.c patch in 1.2
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Thu Mar 29 08:35:45 MST 2007
On Thursday 29 March 2007 05:48, Alexandru Pirvulescu wrote:
> I have a patch request for res_odbc.c in 1.2.X
>
> ORACLE needs the environment variable TWO_TASK to be set to the
> instance name. I've put in res_odbc.conf this variable, but it
> doesn't work. It gives the same error like it is not set.
> I've looked into res_odbc.c and I've found that putenv() was used for
> setting up the environment variables. For some reason this does not
> work.
> I've replaced putenv() with setenv() like this:
>
> putenv(env_var); becomes
> setenv(v->name, v->value, 1);
>
> This works flawlessly.
Okay, changed.
--
Tilghman
More information about the asterisk-dev
mailing list