Commit 3aa9e112 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Made "static" default.

darcs-hash:20050912082439-65a35-23d8ea50749a289042474ba7f845d336ab7af845.gz
parent b065795d
......@@ -97,6 +97,7 @@ static int soa_set_sdp(soa_session_t *ss,
(a)->soa_activate_session != NULL && \
(a)->soa_terminate_session != NULL)
#if 0
/*
* The default soa objct stores the offer from parameters,
* sends it when requested.
......@@ -127,6 +128,7 @@ struct soa_session_actions const soa_default_actions =
soa_base_activate,
soa_base_terminate
};
#endif
/* ======================================================================== */
......
......@@ -103,6 +103,29 @@ struct soa_session_actions const soa_static_actions =
soa_static_terminate
};
struct soa_session_actions const soa_default_actions =
{
(sizeof soa_static_actions),
sizeof (struct soa_static_session),
soa_static_init,
soa_static_deinit,
soa_static_set_params,
soa_static_get_params,
soa_static_get_paramlist,
soa_base_media_features,
soa_base_sip_required,
soa_base_sip_support,
soa_base_remote_sip_features,
soa_base_set_capability_sdp,
soa_base_set_remote_sdp,
soa_base_set_local_sdp,
soa_static_generate_offer,
soa_static_generate_answer,
soa_static_process_answer,
soa_static_activate,
soa_static_terminate
};
/* Initialize session */
static int soa_static_init(char const *name,
soa_session_t *ss,
......
......@@ -63,7 +63,6 @@ typedef struct cli_oper_s cli_oper_t;
#include <sl_utils.h>
#include <soa.h>
#include <soa_add.h>
#include <su_debug.h>
......@@ -324,8 +323,6 @@ int main(int ac, char *av[])
su_init();
soa_add("static", &soa_static_actions);
su_home_init(cli->cli_home);
if ((cli->cli_root = su_root_create(cli))) {
......@@ -1980,7 +1977,7 @@ int cli_init(cli_t *cli, char *av[])
su_timer_set(cli->cli_input, handle_input, NULL);
#endif
cli->cli_soa = soa_create("static", cli->cli_root, cli);
cli->cli_soa = soa_create("", cli->cli_root, cli);
if (cli->cli_soa)
soa_set_capability_sdp(cli->cli_soa, "m=audio 5004 RTP/AVP 8 0", -1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment