Hello,<br><br>&nbsp; Now I&#39;m testing func_odbc and hash. My configurations are:<br><br>func_odbc.conf<br>[GETNUMBER]<br>dsn=sqlserver<br>;mode=multirow<br>;rowlimit=10<br>readsql=SELECT number,real_number1,real_number2,status FROM ivr.dbo.numbers WHERE number=${SQL_ESC(${ARG1})}<br>
<br>extensions.conf<br>exten =&gt; s,1,Ringing<br>exten =&gt; s,n,Wait(4)<br>exten =&gt; s,n,Answer<br>exten =&gt; s,n,Set(NUMERIS=37037210602)<br>exten =&gt; s,n,Set(HASH(RESULTATAS)=${ODBC_GETNUMBER(${NUMERIS})})<br>exten =&gt; s,n,Verbose(1, Number is&nbsp; ${HASH(RESULTATAS, number)}.)<br>
exten =&gt; s,n,Verbose(1, Realus 1&nbsp; ${HASH(RESULTATAS, real_number1)}.)<br>exten =&gt; s,n,Verbose(1, Realus 2&nbsp; ${HASH(RESULTATAS, real_number2)}.)<br>exten =&gt; s,n,Verbose(1, Statusas&nbsp; ${HASH(RESULTATAS, status)}.)<br>
<br>And asterisk output is:<br><br>== Using SIP RTP CoS mark 5<br>&nbsp;&nbsp;&nbsp; -- Executing [555@from-trunk:1] Goto(&quot;SIP/sip.call.lt-01993050&quot;, &quot;odbc-test,s,1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (odbc-test,s,1)<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:1] Ringing(&quot;SIP/sip.call.lt-01993050&quot;, &quot;&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:2] Wait(&quot;SIP/sip.call.lt-01993050&quot;, &quot;4&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:3] Answer(&quot;SIP/sip.call.lt-01993050&quot;, &quot;&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:4] Set(&quot;SIP/sip.call.lt-01993050&quot;, &quot;NUMERIS=111&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:5] Set(&quot;SIP/sip.call.lt-01993050&quot;, &quot;HASH(RESULTATAS)=111,222,333,2&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:6] Verbose(&quot;SIP/sip.call.lt-01993050&quot;, &quot;1, Number is&nbsp; .&quot;) in new stack<br>
&nbsp; Number is&nbsp; .<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:7] Verbose(&quot;SIP/sip.call.lt-01993050&quot;, &quot;1, Realus 1&nbsp; .&quot;) in new stack<br>&nbsp; Realus 1&nbsp; .<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:8] Verbose(&quot;SIP/sip.call.lt-01993050&quot;, &quot;1, Realus 2&nbsp; .&quot;) in new stack<br>
&nbsp; Realus 2&nbsp; .<br>&nbsp;&nbsp;&nbsp; -- Executing [s@odbc-test:9] Verbose(&quot;SIP/sip.call.lt-01993050&quot;, &quot;1, Statusas&nbsp; .&quot;) in new stack<br>&nbsp; Statusas&nbsp; .<br>&nbsp;&nbsp;&nbsp; -- Auto fallthrough, channel &#39;SIP/sip.call.lt-01993050&#39; status is &#39;UNKNOWN&#39;<br>
<br><br>As I read documentation, function hash gives posibility to get values using column name. But my test was unsuccessful. Maybe somebody can help...<br><br>Thanks<br clear="all"><br>-- <br>Pagarbiai &nbsp;/ Best Regards,<br>
Giedrius Augys<br>