|
|
|
|
@ -273,7 +273,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|
|
|
|
#include <sys/time.h>
|
|
|
|
|
#include <sys/file.h>
|
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
#ifdef HAVE_SYS_IO_H
|
|
|
|
|
#include <sys/io.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <sys/vfs.h>
|
|
|
|
|
#include <math.h>
|
|
|
|
|
#include <netinet/in.h>
|
|
|
|
|
@ -3362,6 +3364,7 @@ struct dahdi_params par;
|
|
|
|
|
{
|
|
|
|
|
res = set_ic706(myrpt);
|
|
|
|
|
}
|
|
|
|
|
#ifdef HAVE_IOPERM
|
|
|
|
|
else if(!strcmp(myrpt->remote, remote_rig_rbi))
|
|
|
|
|
{
|
|
|
|
|
if (ioperm(myrpt->p.iobase,1,1) == -1)
|
|
|
|
|
@ -3372,6 +3375,7 @@ struct dahdi_params par;
|
|
|
|
|
}
|
|
|
|
|
else res = setrbi(myrpt);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
else if(!strcmp(myrpt->remote, remote_rig_kenwood))
|
|
|
|
|
{
|
|
|
|
|
res = setkenwood(myrpt);
|
|
|
|
|
@ -10987,6 +10991,7 @@ static int rpt_exec(struct ast_channel *chan, void *data)
|
|
|
|
|
}
|
|
|
|
|
rpt_mutex_lock(&myrpt->lock);
|
|
|
|
|
}
|
|
|
|
|
#ifdef HAVE_IOPERM
|
|
|
|
|
if ((!strcmp(myrpt->remote, remote_rig_rbi)) &&
|
|
|
|
|
(ioperm(myrpt->p.iobase,1,1) == -1))
|
|
|
|
|
{
|
|
|
|
|
@ -10994,6 +10999,7 @@ static int rpt_exec(struct ast_channel *chan, void *data)
|
|
|
|
|
ast_log(LOG_WARNING, "Cant get io permission on IO port %x hex\n",myrpt->p.iobase);
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
myrpt->remoteon = 1;
|
|
|
|
|
#ifdef OLD_ASTERISK
|
|
|
|
|
LOCAL_USER_ADD(u);
|
|
|
|
|
|