Displaying 1 result from an estimated 1 matches for "odbc_getvariables".
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} ${REALNUMBER1},
${STATUSAS})
But I don't know how to retrieve data, if query returns a lot of rows. In
documentation I read that need to use in config file:
mode=multirow,
and use function ODBC_FETCH. But how to get result-id...