mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
ftmod_libpri: temporary segfault fix if libpri does not have BRI support
This commit is contained in:
parent
3d5ccf055d
commit
30fb69bbab
@ -1100,10 +1100,16 @@ static void *ftdm_libpri_run(ftdm_thread_t *me, void *obj)
|
||||
case FTDM_TRUNK_BRI:
|
||||
res = lpwrap_init_bri(&isdn_data->spri, span, isdn_data->dchan,
|
||||
isdn_data->pswitch, isdn_data->node, 0, isdn_data->debug);
|
||||
#ifndef HAVE_LIBPRI_BRI
|
||||
goto out;
|
||||
#endif
|
||||
break;
|
||||
case FTDM_TRUNK_BRI_PTMP:
|
||||
res = lpwrap_init_bri(&isdn_data->spri, span, isdn_data->dchan,
|
||||
isdn_data->pswitch, isdn_data->node, 1, isdn_data->debug);
|
||||
#ifndef HAVE_LIBPRI_BRI
|
||||
goto out;
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
snprintf(span->last_error, sizeof(span->last_error), "Invalid trunk type");
|
||||
|
Loading…
x
Reference in New Issue
Block a user