search for: ast_variable_retriev

Displaying 11 results from an estimated 11 matches for "ast_variable_retriev".

Did you mean: ast_variable_retrieve
2003 Jul 11
4
module : cdr_sybase.so
...*dbuser, *password, *dbserver, *application; cfg = ast_load(config); if (!cfg) { ast_log(LOG_WARNING, "Unable to load config for sybase CDR's: %s\n", config); return 0; } var = ast_variable_browse(cfg, "global"); if (!var) { return 0; } dbuser = ast_variable_retrieve(cfg,"global","dbuser"); password = ast_variable_retrieve(cfg,"global","password"); dbserver = ast_variable_retrieve(cfg,"global","dbserver"); application = ast_variable_retrieve(cfg,"global","application"); as...
2004 Jan 06
2
Problems compiling cdr_pgsql
...cdr_pgsql.o: In function `my_load_module': cdr_pgsql.o(.text+0x9b7): undefined reference to `ast_load' cdr_pgsql.o(.text+0x9ed): undefined reference to `ast_log' cdr_pgsql.o(.text+0xa0e): undefined reference to `ast_variable_browse' cdr_pgsql.o(.text+0xa3f): undefined reference to `ast_variable_retrieve' cdr_pgsql.o(.text+0xab6): undefined reference to `ast_log' cdr_pgsql.o(.text+0xae9): undefined reference to `ast_log' cdr_pgsql.o(.text+0xb11): undefined reference to `ast_variable_retrieve' cdr_pgsql.o(.text+0xb88): undefined reference to `ast_log' cdr_pgsql.o(.text+0xbbb): u...
2006 Dec 06
1
0002475: [patch] Allow app_directory to work with REALTIME
Hi All, I'm running 1.2.9.1 stable. I'm wondering has this patch been applied to stable release or is it still only in CVS. Will this file patch apply correctly to 1.2.9.1 stable? Which file do I patch? I'm guessing app_directory_realtime_1.6.1.patch <http://bugs.digium.com/file_download.php?file_id=4915&type=bug> and config.h.patch
2009 Aug 26
1
app_swift issue
...// Set defaults cfg_buffer_size = 65535; cfg_goto_exten = 0; strncpy(cfg_voice, "David-8kHz", sizeof(cfg_voice)); res = ast_register_application(app, engine, synopsis, descrip); cfg = ast_config_load(SWIFT_CONFIG_FILE, config_flags); if (cfg) { if ((t = ast_variable_retrieve(cfg, "general", "buffer_size"))) { cfg_buffer_size = atoi(t); ast_log(LOG_DEBUG, "Config buffer_size is %d\n", cfg_buffer_size); } if ((t = ast_variable_retrieve(cfg, "general", "goto_exten"))) {...
2005 Aug 25
2
Custom Application For Asterisk
...s \n", chan->name); res = 0; } ast_stopstream(chan); return res; } int load_module(void) { struct ast_config *cfg; char *s; int res = 0; cfg = ast_load(config); if (!cfg) { ast_log(LOG_NOTICE, "Unable to load config for abcd %s\n", config); return 0; } if (!(s=ast_variable_retrieve(cfg, "global", "hostname"))) { ast_log(LOG_ERROR,"abcd Database Server Hostname not specified.\n"); } else { strncpy(abcdhostname, s, sizeof(abcdhostname) - 1); } if (!(s=ast_variable_retrieve(cfg, "global", "dbname"))) { ast_log(LOG_ERR...
2004 Jun 22
1
Problems compiling cdr_odbc.so
...cdr_odbc.o(.text+0x993): In function `odbc_load_module': : undefined reference to `ast_log' cdr_odbc.o(.text+0x9ad): In function `odbc_load_module': : undefined reference to `ast_variable_browse' cdr_odbc.o(.text+0x9d7): In function `odbc_load_module': : undefined reference to `ast_variable_retrieve' cdr_odbc.o(.text+0xa4e): In function `odbc_load_module': : undefined reference to `ast_log' cdr_odbc.o(.text+0xa81): In function `odbc_load_module': : undefined reference to `ast_log' cdr_odbc.o(.text+0xaa9): In function `odbc_load_module': : undefined reference to `ast_va...
2007 May 23
0
Problems compiling res_config_mysql (asterisk addons)
...se' res_config_mysql.o(.text+0x19a3): In function `parse_config': /usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:536: undefined reference to `ast_config_load' res_config_mysql.o(.text+0x19cc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:539: undefined reference to `ast_variable_retrieve' res_config_mysql.o(.text+0x19fc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:540: undefined reference to `ast_log' res_config_mysql.o(.text+0x1a4c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:546: undefined reference to `ast_variable_retrieve' res_config_mysq...
2009 Aug 26
4
Fw: app_swift issue
...gs config_flags = { 0 }; // Set defaults cfg_buffer_size = 65535; cfg_goto_exten = 0; strncpy(cfg_voice, "David-8kHz", sizeof(cfg_voice)); res = ast_register_application(app, engine, synopsis, descrip); cfg = ast_config_load(SWIFT_CONFIG_FILE, config_flags); if (cfg) { if ((t = ast_variable_retrieve(cfg, "general", "buffer_size"))) { cfg_buffer_size = atoi(t); ast_log(LOG_DEBUG, "Config buffer_size is %d\n", cfg_buffer_size); } if ((t = ast_variable_retrieve(cfg, "general", "goto_exten"))) { if (!strcmp(t, "yes")) cfg_goto_ext...
2020 May 20
2
rotatestrategy = none not working
Hi Steve, Thanks for the answer. Since that's what we already have configured, any idea why it wouldn't work? As I said, when "asterisk -rx 'logger reload'" is run it still rotates the log file. On Wed, 20 May 2020 at 18:37, Steve Edwards <asterisk.org at sedwards.com> wrote: > On Wed, 20 May 2020, David Cunningham wrote: > > > We have an Asterisk
2003 Mar 03
0
Voicemail Volume Control Patch
...gt; char sys[256] = ""; /* Added for system call to increase / descrease message volume */ > char *volgain; /* Added for volume gain to increase / descrease message volume > to be read from voicemail.conf */ 1920a1924,1940 > case '3': > if (volgain = ast_variable_retrieve(cfg, "general", "volgain")) > { > ast_log(LOG_NOTICE,"New Increase Volume Messages # %04d\n",curmsg); > snprintf(sys, sizeof(sys), "sox %s/msg%04d.WAV %s/new.WAV vol %s; mv %s/new.WAV %s/msg%04d.WAV\n", curdir, curmsg, curdir, volgain, c...
2006 Jun 14
0
Directory - First Name/Last Name - How to, use both? a@h?
...options++; if (strchr(options, 'f')) last = 0; + if (strchr(options, 'b')) + last = 2; } } else dialcontext = context; @@ -448,8 +466,10 @@ if (ast_strlen_zero(dirintro)) dirintro = ast_variable_retrieve(cfg, "general", "directoryintro"); if (ast_strlen_zero(dirintro)) { - if (last) + if (last==1) dirintro = "dir-intro"; + else if (last==2) + dirintro = "dir-intro-fnln"; else dirintro...