search for: select_db

Displaying 2 results from an estimated 2 matches for "select_db".

2015 Apr 01
1
Remote protocol abstracted
...er. RemoteProtocol with virtual abstract methods for: * get_message - Receives a new message (waiting when needed). * send_message - Sends a message to the client. * get_db - Reserves a database when the class needs to use it. * release_db - Releases the database when the class is not using it. * select_db - It's called when the protocol needs to select a new database to work on. * shutdown - It's called when the protocol requires to shutdown. Each command in the RemoteProtocol now do a two additional things: 1. Use get_db() to reserve and get a read-only or writable database. 2. Relese the...
2010 Jul 26
0
URGENT - who picked up the call??
...ne_id']}" if local_channels.empty? local_channels end As you see the call can be picked either by the Zap channels in locals of SIP/operator user. Now i Need to know here: $my.select_db('tvr2') $my.query("UPDATE call_log SET endtime = NOW(), local=#SOMETHINGHERE# WHERE id = #{call_log_id}") raise 'Cant write from log: call_log_id = #{call_log_id}' if $my.affe...