[asterisk-users] func_odbc insert with mssql

David Budny dbudny at visiblecustomer.com
Tue Aug 11 11:33:30 CDT 2009


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, however, when I use func_odbc, a record will not write.  I'm using asterisk 1.4.9. Any idea what might be wrong?

Thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090811/2878331d/attachment.htm 


More information about the asterisk-users mailing list