};
static struct ast_udptl_protocol ooh323_udptl = {
- type: "H323",
- get_udptl_info: ooh323_get_udptl_peer,
- set_udptl_peer: ooh323_set_udptl_peer,
+ .type = "H323",
+ .get_udptl_info = ooh323_get_udptl_peer,
+ .set_udptl_peer = ooh323_set_udptl_peer,
};
static struct ast_generator gen =
{
- alloc: gen_alloc,
- release: gen_release,
- generate: gen_generate,
+ .alloc = gen_alloc,
+ .release = gen_release,
+ .generate = gen_generate,
};
static void ast_eivr_getvariable(struct ast_channel *chan, char *data, char *outbuf, int outbuflen)
}
static struct ast_generator milliwattgen = {
- alloc: milliwatt_alloc,
- release: milliwatt_release,
- generate: milliwatt_generate,
+ .alloc = milliwatt_alloc,
+ .release = milliwatt_release,
+ .generate = milliwatt_generate,
};
static int old_milliwatt_exec(struct ast_channel *chan)
static struct ast_switch iax2_switch =
{
- name: "IAX2",
- description: "IAX Remote Dialplan Switch",
- exists: iax2_exists,
- canmatch: iax2_canmatch,
- exec: iax2_exec,
- matchmore: iax2_matchmore,
+ .name = "IAX2",
+ .description = "IAX Remote Dialplan Switch",
+ .exists = iax2_exists,
+ .canmatch = iax2_canmatch,
+ .exec = iax2_exec,
+ .matchmore = iax2_matchmore,
};
/*
/*! \brief Interface structure with callbacks used to connect to UDPTL module*/
static struct ast_udptl_protocol sip_udptl = {
- type: "SIP",
- get_udptl_info: sip_get_udptl_peer,
- set_udptl_peer: sip_set_udptl_peer,
+ .type = "SIP",
+ .get_udptl_info = sip_get_udptl_peer,
+ .set_udptl_peer = sip_set_udptl_peer,
};
static void append_history_full(struct sip_pvt *p, const char *fmt, ...)
static struct ast_generator linearstream =
{
- alloc: linear_alloc,
- release: linear_release,
- generate: linear_generator,
+ .alloc = linear_alloc,
+ .release = linear_release,
+ .generate = linear_generator,
};
int ast_linear_stream(struct ast_channel *chan, const char *filename, int fd, int allowoverride)
}
static struct ast_generator tonepair = {
- alloc: tonepair_alloc,
- release: tonepair_release,
- generate: tonepair_generator,
+ .alloc = tonepair_alloc,
+ .release = tonepair_release,
+ .generate = tonepair_generator,
};
int ast_tonepair_start(struct ast_channel *chan, int freq1, int freq2, int duration, int vol)
static struct ast_switch loopback_switch =
{
- name: "Loopback",
- description: "Loopback Dialplan Switch",
- exists: loopback_exists,
- canmatch: loopback_canmatch,
- exec: loopback_exec,
- matchmore: loopback_matchmore,
+ .name = "Loopback",
+ .description = "Loopback Dialplan Switch",
+ .exists = loopback_exists,
+ .canmatch = loopback_canmatch,
+ .exec = loopback_exec,
+ .matchmore = loopback_matchmore,
};
static int unload_module(void)
static struct ast_switch realtime_switch =
{
- name: "Realtime",
- description: "Realtime Dialplan Switch",
- exists: realtime_exists,
- canmatch: realtime_canmatch,
- exec: realtime_exec,
- matchmore: realtime_matchmore,
+ .name = "Realtime",
+ .description = "Realtime Dialplan Switch",
+ .exists = realtime_exists,
+ .canmatch = realtime_canmatch,
+ .exec = realtime_exec,
+ .matchmore = realtime_matchmore,
};
static int unload_module(void)
int i;
struct ast_channel *peer;
static struct ast_generator t30_gen = {
- alloc: spandsp_fax_gw_gen_alloc,
- release: spandsp_fax_gw_gen_release,
- generate: spandsp_fax_gw_t30_gen,
+ .alloc = spandsp_fax_gw_gen_alloc,
+ .release = spandsp_fax_gw_gen_release,
+ .generate = spandsp_fax_gw_t30_gen,
};
#if SPANDSP_RELEASE_DATE >= 20081012