【发布时间】:2014-11-26 09:03:20
【问题描述】:
我已经编写了一个在三部手机之间进行会议的代码,现在我正在尝试调用一个名为 confList 的方法,它将显示会议中所有手机的列表,但缓冲区值应该是 last 的输出命令即将出现,它没有被执行。
我的 confList 方法是
if {[execCmd -cmd "xCommand Experimental Conference ParticipantList Search CallId: $x" -expectingValue OK -waitTime 15 -buffersize 10000]} {
OutputInfo error 1 1 0 "[subst $_procInfo] Error in finding the conference Participant List ."
puts "Now my updated budffer is <<<<<< $buffer >>>>>>>>>"
}
以同样的方式,当我试图在最后一条语句上方执行另一个命令时 像这样
if {[execCmd -cmd "xstatus call status" -expectingValue OK -waitTime 5]} {
puts "the Buffer value after executing the command is something like this>>>>>>>>>>>>>>>>>>$buffer<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"
}
然后它给出了预期的行为,但是当我尝试从 CLI 执行它时,它给出了正确的输出并且行为是正确的。
X 的值正确到达那里。
请帮帮我。
【问题讨论】:
-
你到底想在这里运行什么?
xCommand Experimental Conference ParticipantList Search CallId: $x中的任何内容都应该组合成一个词吗?