Пример #1
0
static int luasofia_nua_shutdown(lua_State *L)
{
    /* get and check first argument (should be a luasofia_nua_t) */
    luasofia_nua_t *lnua = (luasofia_nua_t*)luaL_checkudata(L, 1, NUA_MTABLE);
    nua_shutdown(lnua->nua);
    return 0;
}
Пример #2
0
static void register_teardown(void)
{
  s2_teardown_started("register");
  nua_shutdown(nua);
  fail_unless_event(nua_r_shutdown, 200);
  s2_nua_teardown();
}
static apt_bool_t mrcp_sofia_task_terminate(apt_task_t *task)
{
	mrcp_sofia_agent_t *sofia_agent = apt_task_object_get(task);
	if(sofia_agent->nua) {
		apt_log(APT_LOG_MARK,APT_PRIO_DEBUG,"Send Shutdown Signal to NUA");
		nua_shutdown(sofia_agent->nua);
	}
	return TRUE;
}
Пример #4
0
static void etsi_teardown(void)
{
  s2_teardown_started("ETSI");

  mark_point();

  nua_shutdown(nua);
  fail_unless_event(nua_r_shutdown, 200);

  s2_nua_teardown();
}
Пример #5
0
void s2_dialog_teardown(void)
{
    s2_teardown_started("simple");

    s2_register_teardown();

    nua_shutdown(nua);

    fail_unless_event(nua_r_shutdown, 200);

    s2_nua_teardown();
}