Invoke callback via invoke_callback func

This commit is contained in:
mannol 2014-03-12 00:38:20 +01:00
parent 9ba7cb7e76
commit dbc4314bda

View File

@ -729,10 +729,10 @@ void *handle_timeout ( void *arg )
{ {
/* Send hangup either way */ /* Send hangup either way */
MSISession *_session = arg; MSISession *_session = arg;
if ( callbacks[MSI_OnRequestTimeout].function ) callbacks[MSI_OnRequestTimeout].function ( callbacks[MSI_OnRequestTimeout].data ); invoke_callback(MSI_OnRequestTimeout);
if ( callbacks[MSI_OnEnding].function ) callbacks[MSI_OnEnding ].function ( callbacks[MSI_OnEnding].data ); invoke_callback(MSI_OnEnding);
if ( _session && _session->call ) { if ( _session && _session->call ) {
uint32_t *_peers = _session->call->peers; uint32_t *_peers = _session->call->peers;