mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
dont be fool and use default layer 1 in ozmod_libpri
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@842 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
bddc498b7b
commit
fc0487aced
@ -1276,6 +1276,14 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_libpri_configure_span)
|
|||||||
assert(isdn_data != NULL);
|
assert(isdn_data != NULL);
|
||||||
memset(isdn_data, 0, sizeof(*isdn_data));
|
memset(isdn_data, 0, sizeof(*isdn_data));
|
||||||
|
|
||||||
|
if (span->trunk_type == ZAP_TRUNK_E1) {
|
||||||
|
zap_log(ZAP_LOG_NOTICE, "Setting default Layer 1 to ALAW since this is an E1 trunk\n");
|
||||||
|
isdn_data->l1 = PRI_LAYER_1_ALAW;
|
||||||
|
} else if (span->trunk_type == ZAP_TRUNK_T1) {
|
||||||
|
zap_log(ZAP_LOG_NOTICE, "Setting default Layer 1 to ULAW since this is a T1 trunk\n");
|
||||||
|
isdn_data->l1 = PRI_LAYER_1_ULAW;
|
||||||
|
}
|
||||||
|
|
||||||
while((var = va_arg(ap, char *))) {
|
while((var = va_arg(ap, char *))) {
|
||||||
if (!strcasecmp(var, "node")) {
|
if (!strcasecmp(var, "node")) {
|
||||||
int node;
|
int node;
|
||||||
@ -1319,7 +1327,6 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_libpri_configure_span)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
span->start = zap_libpri_start;
|
span->start = zap_libpri_start;
|
||||||
span->stop = zap_libpri_stop;
|
span->stop = zap_libpri_stop;
|
||||||
isdn_data->sig_cb = sig_cb;
|
isdn_data->sig_cb = sig_cb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user