mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 04:49:05 +00:00
freetdm: Add ftdm_channel_get_state(), ftdm_channel_get_last_state() and ftdm_span_get_trunk_type_str().
Remove custom versions from ftmod_isdn and ftmod_libpri. Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
This commit is contained in:
1 parent
4f4aee4f07
commit
e17201bbac
4 files changed
+32
-32
No files matched your search
@@ -54,24 +54,6 @@
|
||||
#define DEFAULT_NATIONAL_PREFIX "0"
|
||||
#define DEFAULT_INTERNATIONAL_PREFIX "00"
|
||||
|
||||
static const char *ftdm_span_get_trunk_type_str(const ftdm_span_t *span)
|
||||
{
|
||||
assert(span);
|
||||
return ftdm_trunk_type2str(span->trunk_type);
|
||||
}
|
||||
|
||||
static int ftdm_channel_get_state(const ftdm_channel_t *chan)
|
||||
{
|
||||
assert(chan);
|
||||
return chan->state;
|
||||
}
|
||||
|
||||
static int ftdm_channel_get_last_state(const ftdm_channel_t *chan)
|
||||
{
|
||||
assert(chan);
|
||||
return chan->last_state;
|
||||
}
|
||||
|
||||
/*****************************************************************************************
|
||||
* PCAP
|
||||
* Based on Helmut Kuper's (<helmut.kuper@ewetel.de>) implementation,
|
||||
|
||||
Reference in new issue
Block a user