mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-05 03:41:53 +00:00
1. add collectInput method. 2. modify the dtmf callback handlers to better deal with event inputs, as opposed to dtmf inputs. currently returns a dictionary where one key contains the body, and another contains the headers as a subdictionary.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5624 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -40,8 +40,19 @@ class PySession : public CoreSession {
|
||||
bool begin_allow_threads();
|
||||
bool end_allow_threads();
|
||||
|
||||
/**
|
||||
* Run DTMF callback
|
||||
*
|
||||
* A static method in CoreSession is the first thing called
|
||||
* upon receving a dtmf/event callback from fs engine, and then
|
||||
* it gets the PySession instance and calls this method with
|
||||
* dtmf/event object.
|
||||
*
|
||||
* @param input - a dtmf char buffer, or an event 'object' (not sure..)
|
||||
* @param itype - a SWITCH_INPUT_TYPE_DTMF or a SWITCH_INPUT_TYPE_EVENT
|
||||
*/
|
||||
switch_status_t run_dtmf_callback(void *input,
|
||||
switch_input_type_t itype);
|
||||
switch_input_type_t itype);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user