search for: func_odbc

Displaying 20 results from an estimated 140 matches for "func_odbc".

2007 Nov 28
3
Multiple Return Values from func_odbc
Is there any way to return multiple values from functions defined in func_odbc.conf? It appears that you can only return one value. True? Hope not.... Doug. ____________________________________________________________________________________ Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ -------------...
2007 Dec 06
3
Setting Multiple Values via func_odbc ...?
I need to insert/update multiple MySQL columns in a single row with the func_odbc function at the SAME TIME. Someone showed me how to use ARRAY to retrieve multiple values at the same time, but I need to SET multiple values. Can this be done? If not, I will just stick with MySQL, but that's a pain in the ass because the asterisk-addons package has no default rpm spec file...
2014 Apr 03
1
func_odbc
Hi All Anyone know how to do include files with func_odbc.conf? I now have several pages of functions in my func_odbc.conf and it is getting harder to maintain it. I would like to break them up into files by category. The standard method of using the #include does not seem to work . Ideas are appreciated. Bryant -------------- next part...
2009 Aug 11
4
func_odbc insert with mssql
I'm trying to use func_odbc to write to a MS SQL db. Here's my func_odbc conf: [OPTIN] dsn=MSSQL-Optin write=INSERT into OptIn (orgID) values (${VAL1}) Dial Plan exten => +18665551212,n,Set(ODBC_OPTIN()=dave) When I do an odbc show, it shows that I am connected to the db. If I use isql, I can write to the db, howe...
2008 Dec 09
2
Func_ODBC question
Hi I have On func_odbc [EXEC] readhandle=ressqlserver writehandle=ressqlserver readsql=${ARG1} writesql=${ARG1} I'm trying an update on dialplan: exten=> 141,3,Set(dummy=${ODBC_EXEC(UPDATE Tabla set campo = ${EXTEN})}) On Cli: WARNING[3579]: func_odbc.c:353 acf_odbc_read: Error -1 in FETCH...
2009 May 07
1
func_odbc.c: Unable to execute query
Dear List, I have an asterisk 1.6.2 installation. I'm trying to configure func_odbc to read some mysql tables... but every time I tried I got this message: ERROR[24968] func_odbc.c: Unable to execute query [SELECT bloqueada FROM funciones WHERE extension='750'] I'm sure the DSN is right because I can do this: [root at grupodelavega asterisk]# su - asterisk [asterisk...
2018 Dec 06
3
how to use a database
...ration file? >> How dynamic are changes made in the database? > > If by "dynamic" you mean "quickly used" then the answer is "immediately". There's a note in some configuration file saying that dynamic extensions are deprecated and suggesting to use func_odbc instead. This func_odbc seems to be the most awkward way anyone could think of for this, though. >> For example, if I want to have an extension 'foobar' and want to ring >> different devices depending on some factors (like time of day, for example), >> can I modify the...
2007 Jan 20
1
func_odbc still working in trunk?
Is func_odbc still working in trunk? I've recently (in the last few weeks) started having a problem where my custom functions don't work. The module loads, the configuration file is parsed fine, and the functions are even created and visible in "core show functions", but when executed from t...
2015 Mar 10
1
func_odbc 123
with func_odbc, in the definitive asterisk guide, they were suggesting the possibility that part, or perhaps all of, the dialplan could be written as SQL statement!? First off, that sounds like a good idea to me, but the tone of the authors was suggesting not so much, but that it was a personal preference. &...
2010 Oct 22
1
MS-SQL / Freetds -- func_odbc
Hi folks, How would I go about running a stored procedure call from asterisk via func_odbc. I'm after an example entry in func_odbc if possible for ast 1.4 Also, if someone could post an insert statement that actually works, would be nice. Thanks, :)
2011 Jan 26
1
Return variables from func_odbc calls?
This is primarily aimed at Sir Lesher, whose name graces the source code for func_odbc that I'm currently trying to read to answer this question. Tilghman (or anyone else who has determined the answer to this query), I have googled, searched wikis, and I'm currently perusing the source code, but the long and short of it is that I cannot seem to find any reference to variabl...
2008 Dec 02
1
func_odbc and hash problem
Hello, Now I'm testing func_odbc and hash. My configurations are: func_odbc.conf [GETNUMBER] dsn=sqlserver ;mode=multirow ;rowlimit=10 readsql=SELECT number,real_number1,real_number2,status FROM ivr.dbo.numbers WHERE number=${SQL_ESC(${ARG1})} extensions.conf exten => s,1,Ringing exten => s,n,Wait(4) exten => s,n,Answer...
2008 Jul 10
1
res_odbc.conf and odbc show
I have a mixed PBX system with both Asterisk 1.4.21 and 1.2.27 (moving to 1.2.28). For now I need to keep a few boxes in 1.2 and not migrate them all to 1.4. However, I would like to have func_odbc and res_odbc on all servers. On 1.4.21, native func_odbc seems to work fine. On 1.2.27, the func_odbc backport is giving me an error (I know that this backport is not "officially supported" but the issue I'm reporting is related to res_odbc). "odbc show" does not display...
2011 Jan 23
3
FUNC_ODBC and ARRAY
...RAY per the solutions offered by many individuals. My dialplan code is as follows: exten => _.,n,Set(ARRAY(var1,var2,var3)=${ODBC_LOOKUP(${KEYVAL})}) exten => _.,n,Verbose(2,var1 = ${var1}) exten => _.,n,Verbose(2,var2 = ${var2}) exten => _.,n,Verbose(2,var3 = ${var3}) Here's the func_odbc.conf code: [LOOKUP] dsn=mysql-asterisk readsql=SELECT col1, col2, col3 from table1 WHERE keycol = '${ARG1}' and here's the full log: [Jan 22 20:12:50] VERBOSE[32348] pbx.c: -- Executing [123 at dolookup:8] Set("SIP/sip1-inbound-00000f99", "ARRAY(var1,var2,var3)=9682...
2008 Dec 01
1
func_odbc questions
Hello, I'm working with asterisk 1.6. And I have success using func_odbc with one row query results (SELECT source,destination from cc WHERE ... ): exten => s,1,Ringing exten => s,n,Wait(4) exten => s,n,Answer exten => s,n,Set(ARRAY(NUMBER,REALNUMBER1,REALNUMBER2,STATUSAS)=${ODBC_GETVARIABLES(${NUMERIS})}) exten => s,n,Verbose(1| ${NUMERIS}, ${REALNUMBER1...
2011 Dec 29
0
func_odbc not returning whole smalldatetime MS Sql field.
Hey All, Odd thing. I am just trying to return the whole date time stamp from a SMALLDATETIME field in a MS SQL server. func_odbc.conf = readsql=SELECT DateCreated FROM [REDACTED] WHERE Code = '${ARG1}' Problem is I only get the first 15 back from the field. Like so... Connected to Asterisk 1.8.6.0 currently running on [REDACTED]-dev (pid = 2240) Verbosity is at least 3 [REDACTED]-dev*CLI> odbc read ODBC_[RED...
2014 Mar 13
2
func_odbc do not read LIKE predicate
Hello everyone, I would be extremely glad if someone could help me with the following issue: cat /etc/asterisk/func_odbc.conf [call_user] prefix=GET dsn=asterisk_odbc_sip readsql=SELECT name FROM asterisk_sippeers WHERE name = '%477' Asterisk CLI show the following issue: -- Executing [205 at phones_wildcard:1] NoOp("SIP/Y_MD_vlungu_477-00000008", "00000000000000000000000000000000000000...
2009 Nov 06
2
odbc to ms-sql server
Hi all, I'm trying to set up an odbc connection to a ms-sql server from an asterisk 1.6.1 install My problem is that I cannot get asterisk to build func_odbc & res_odbc.so I installed yum -y install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel And then went on to reconfigure / recompile asterisk after a ./configure --with-odbc=/usr/lib/ I get ############################################### checking for mandatory modules: UNIXODBC......
2010 May 05
3
CDR to MS-SQL via ODBC issue
...| | sql-statement | | help [tablename] | | quit | | | +---------------------------------------+ SQL> I can connect to the database and run via isql, and also use func_odbc, etc with res_odbc configured with the same database / freetds, but I cannot write CDRs. Any ideas would be really appreciated. Thanks, Neeraj
2018 Dec 07
2
how to use a database
...hanges made in the database? >>> >>> If by "dynamic" you mean "quickly used" then the answer is "immediately". >> >> There's a note in some configuration file saying that dynamic extensions >> are deprecated and suggesting to use func_odbc instead. This func_odbc >> seems to be the most awkward way anyone could think of for this, though. > > I use func_odbc in plenty of situations, but I'm not familiar with it being > recommended for managing queues. Did I say anything about using it for queues? Queues seem to...