diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-01-31 15:45:09 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-01-31 15:45:09 +0000 |
commit | bc6748e33836019dff67723d67226a6ffdc83019 (patch) | |
tree | 5a98c443eeb9e4652bfd66c37b4ea5b9c0cbcdcc /kamailio-model.lua | |
parent | 4086a663fbe9a0830ccf619d1f07c0a6cf15b4c8 (diff) | |
download | acf-kamailio-bc6748e33836019dff67723d67226a6ffdc83019.tar.bz2 acf-kamailio-bc6748e33836019dff67723d67226a6ffdc83019.tar.xz |
Use specified host and port when opening DB connection
Diffstat (limited to 'kamailio-model.lua')
-rw-r--r-- | kamailio-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamailio-model.lua b/kamailio-model.lua index 5ee381c..9c24346 100644 --- a/kamailio-model.lua +++ b/kamailio-model.lua @@ -62,7 +62,7 @@ local databaseconnect = function() end -- connect to data source - con = assert(env:connect(config.DBNAME or "", config.DBRWUSER or "", config.DBRWPW or "")) + con = assert(env:connect(config.DBNAME or "", config.DBRWUSER or "", config.DBRWPW or "", config.DBHOST, config.DBPORT)) return true end return false |