<br><br><div class="gmail_quote">2008/12/2 Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tuesday 02 December 2008 01:21:46 Giedrius Augys wrote:<br>
> Hello,<br>
><br>
> Now I'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<br>
> WHERE number=${SQL_ESC(${ARG1})}<br>
><br>
> extensions.conf<br>
> exten => s,1,Ringing<br>
> exten => s,n,Wait(4)<br>
> exten => s,n,Answer<br>
> exten => s,n,Set(NUMERIS=37037210602)<br>
> exten => s,n,Set(HASH(RESULTATAS)=${ODBC_GETNUMBER(${NUMERIS})})<br>
> exten => s,n,Verbose(1, Number is ${HASH(RESULTATAS, number)}.)<br>
> exten => s,n,Verbose(1, Realus 1 ${HASH(RESULTATAS, real_number1)}.)<br>
> exten => s,n,Verbose(1, Realus 2 ${HASH(RESULTATAS, real_number2)}.)<br>
> exten => s,n,Verbose(1, Statusas ${HASH(RESULTATAS, status)}.)<br>
<br>
</div>Kill the space after the comma. You're looking for fields whose names are<br>
" number" and " status", which, of course, don't exist.<br>
<br>
--<br>
Tilghman<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>But I noticed, that using isql utility I also don't see column name...<br><br clear="all"><br>-- <br>Pagarbiai / Best Regards,<br>Giedrius Augys<br>