Hi everyone. I’m having trouble getting SIP to recognise the Realtime users we have in our MySQL database. ODBC works fine within Asterisk 13.1-cert7, so I’m not going to go over that configuration:
template25*CLI> odbc read ODBC_SQL "select context from cc_sip_buddies limit 5" exec
context suspended
---------- ----------
context edmonton
---------- ----------
context suspended
---------- ----------
context suspended
---------- ----------
context vancouver
Returned 5 rows. Query executed on handle 0 [asterisk]
Did you check that you can connect to odbc from command line?
First test the driver
odbcinst -s -q
Are you sure realtime is not working? It’s different than config files because It doesn’t load the peer in memory if it is not live in a call. So you will not see the peers with sip show peers unless they are actually doing something.
I did test with isql first, but don’t you think that testing from within Asterisk the way I did shows definitive proof that the Asterisk ODBC driver is working, and so is the command line ODBC connection?