AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-110859

Mattisdada's questions

Martin Hope
Mattisdada
Asked: 2020-04-03 14:57:10 +0800 CST

星号:在 h 扩展中使用 Queue()

  • 0

我试图让用户能够录制消息、挂断电话、继续通话、拨打队列并播放录音。

我已经完成了大部分工作,但是现在当我拨打Queue()h 分机时,它会立即挂断(队列成员确实接到了大约 1 毫秒的电话)。虽然我正在使用选项c

我的拨号方案(为简洁起见)

[standard-gn-helpdesk-corona-afterhours]
; Hangup Extension
exten => h,1, NoOp(hangup standard-gn-helpdesk-corona-afterhours)
same => n, Gosub(sub-queue-gn-afterhours,s,1)
same => n, Return()

exten => s,1, NoOp(standard-gn-helpdesk-corona-afterhours)
same => n, Record(gn_ah_recording%d:ulaw)
same => n, Hangup()
; Callee has hungup by this point. `h` should be executed

[playback-recorded-message]
exten => s,1, NoOp(playback-recorded-message)
same => n, Playback(${RECORDED_FILE})

[sub-queue-gn-afterhours]
exten => s,1,NoOp(sub-queue-gn-afterhours)
; Has the `c` option which allows the queue to continue when callee hangs
same => n,Queue(GNAfterHours1,tkc,,,540,,,playback-recorded-message)
same => n,Return()

任何的意见都将会有帮助。我会被迫使用Dial()该F选项吗?

asterisk voip sip queue
  • 1 个回答
  • 1018 Views
Martin Hope
Mattisdada
Asked: 2014-06-18 20:09:00 +0800 CST

后缀,安排要发送的电子邮件批次

  • 1

是否可以让后缀限制它一次发送的电子邮件数量,并且当电子邮件大于 x 时,分批发送它们(等待 5 分钟,再发送 50 封,类似这样)?

我遇到了一个问题,我将我的 SMTP 中继设置为 Google Apps,这限制了每小时的登录数量,因为 Postfix 试图一次发送所有电子邮件(一个队列一次可以增加 1000 个)它超时并给出此错误:

(delivery temporarily suspended: SASL authentication failed; server smtp.gmail.com[74.125.25.108] said: 454 4.7.0 Too many login attempts, please try again later. y2sm3513004pas.45 - gsmtp)

然后,我必须在一天内手动刷新队列约 15 次以发送所有电子邮件。

linux
  • 1 个回答
  • 2021 Views
Martin Hope
Mattisdada
Asked: 2014-04-22 19:05:45 +0800 CST

lsof 由 root 运行,但不是由用户运行并使用高 CPU 使用率

  • 0

我的服务器正在使用 lsof 的高 CPU 使用率,它似乎是由 root 用户随机运行的。我通过 Newrelic 信息找到了这一点

是否有可能找到正在运行并停止它的内容?

额外信息:我正在使用并已安装的一些主要应用程序:

  • 新遗物
  • PHP
  • Apache2.2
  • 韵律
  • 后缀
  • MySQL

当我执行 ps -feww | grep lsof 它总是只返回 grep 命令本身,当我查看它时它似乎从未运行过。

linux
  • 1 个回答
  • 1834 Views
Martin Hope
Mattisdada
Asked: 2012-10-16 21:58:42 +0800 CST

如何在网络使用中“忽略”用户名和密码提示

  • 1

我现在有一个 logon.cmd 脚本,我用它来将网络驱动器映射到用户配置文件。它看起来像这样:

::Onboarding
net use m: /delete
net use m: \\BOB\onboarding 
::Bookings
net use n: /delete
net use n: \\BOB\bookings 

::Accounts
net use j: /delete
net use j: \\BOB\accounts 

它工作正常,直到到达当前用户无法访问的文件夹,然后它要求输入用户名和密码,而不是出错并继续。

注意:这个脚本曾经在另一个 Samba PDC 网络上工作,但我已经将它移到另一个服务器(仍然是 Samba PDC),现在它坏了。

无论如何,它是否可以忽略用户名/密码提示并继续?

linux
  • 4 个回答
  • 9862 Views
Martin Hope
Mattisdada
Asked: 2012-06-22 21:25:17 +0800 CST

rdiff-backup 不工作,但 rsync 是,两个操作系统的 Mandriva

  • 2

我有两台服务器,都是 Mandriva 2010.2,具有完全相同的 rdiff-backup(1.3.3) 版本和完全相同的 rsync。我曾经在 debian 中使用过 rdiff-backup,但从那时起我已经转移到不同的操作系统。当我现在尝试使用 rdiff-backup 时,我只会遇到很多错误。但是通过 rsync 连接工作得很好。

如下所示:

[root@localhost var]# rsync --rsh='ssh -p24752' -avz -e [email protected]:/var/test /var/backup 发送增量文件列表 drwxr-xr-x 4096 2012/06 /22 13:27:38 备份

发送 39 字节 接收 13 字节 104.00 字节/秒 总大小为 0 加速为 0.00

但这是当我尝试通过 rdiff-backup 运行它时发生的情况

[root@localhost var]# rdiff-backup --remote-schema 'ssh -C %s -p 24752' -v9 --print-statistics [email protected]::/var/test /var/backup
Fri Jun 22 13:45:20 2012  Using rdiff-backup version 1.3.3
Fri Jun 22 13:45:20 2012  Executing ssh -C [email protected] -p 24752
/usr/lib64/python2.6/site-packages/rdiff_backup/SetConnections.py:148: DeprecationWarning: os.popen2 is deprecated.  Use the subprocess module.
  stdin, stdout = os.popen2(remote_cmd)
Fri Jun 22 13:45:20 2012  Client sending (0): ConnectionRequest: Globals.get with 1 arguments
Fri Jun 22 13:45:20 2012  Client sending (0): 'version'
Pseudo-terminal will not be allocated because stdin is not a terminal.
stdin: is not a tty
-bash: line 1: syntax error near unexpected token `crdiff_backup.connection'
-bash: line 1: `oh(crdiff_backup.connection'
Fri Jun 22 13:45:20 2012  Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

    ssh -C [email protected] -p 24752

Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system.  See the man page for more
information on this.  This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (1.3.3).

当我使用以下命令字符串复制并粘贴连接失败时,它可以立即正常工作(已设置密钥对)

[root@localhost var]# ssh -C [email protected] -p24752

上次登录:2012 年 6 月 22 日星期五 13:39:37 来自 203-217-31-220.perm.iinet.net.au

两台服务器都是根服务器,两组文件都存在。我尝试使用带有“-t -t”的 ssh 命令来解决标准输入错误,但这会导致 python 内存异常:/。

关于如何进行的任何想法?

编辑:这也是当我不使用自定义模式时它所做的(或多或少相同,但端口 22 拒绝连接,因为我们不使用它:P

[root@localhost rdiffinstall]# rdiff-backup  -v9 --print-statistics [email protected]::/var/test /var/backup
Fri Jun 22 14:24:06 2012  Using rdiff-backup version 1.2.8
Fri Jun 22 14:24:06 2012  Executing ssh -C [email protected] rdiff-backup --server
/usr/lib64/python2.6/site-packages/rdiff_backup/SetConnections.py:148: DeprecationWarning: os.popen2 is deprecated.  Use the subprocess module.
  stdin, stdout = os.popen2(remote_cmd)
Fri Jun 22 14:24:06 2012  Client sending (0): ConnectionRequest: Globals.get with 1 arguments
Fri Jun 22 14:24:06 2012  Client sending (0): 'version'
ssh: connect to host example.com.au port 22: Connection refused
Fri Jun 22 14:24:06 2012  Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

    ssh -C [email protected] rdiff-backup --server

Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system.  See the man page for more
information on this.  This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (1.2.8).
linux rsync rdiff-backup
  • 1 个回答
  • 604 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve