mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-15 20:27:02 +00:00
Merged revisions 78370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r78370 | russell | 2007-08-07 12:44:04 -0500 (Tue, 07 Aug 2007) | 4 lines Revert patch committed for issue #9660. It broke E&M trunks. (closes issue #10360) (closes issue #10364) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-9
@@ -1607,20 +1607,14 @@ static int restore_gains(struct zt_pvt *p)
|
||||
|
||||
static inline int zt_set_hook(int fd, int hs)
|
||||
{
|
||||
int x, res, count = 0;
|
||||
int x, res;
|
||||
|
||||
x = hs;
|
||||
res = ioctl(fd, ZT_HOOK, &x);
|
||||
|
||||
while (res < 0 && count < 20) {
|
||||
usleep(100000); /* 1/10 sec. */
|
||||
x = hs;
|
||||
res = ioctl(fd, ZT_HOOK, &x);
|
||||
count++;
|
||||
}
|
||||
|
||||
if (res < 0) {
|
||||
if (errno == EINPROGRESS) return 0;
|
||||
if (errno == EINPROGRESS)
|
||||
return 0;
|
||||
ast_log(LOG_WARNING, "zt hook failed: %s\n", strerror(errno));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user