[asterisk-users] ChanSpy problem
Jim Dickenson
dickenson at cfmc.com
Wed Feb 11 12:01:47 CST 2009
I have an extension defined like this:
exten => do_monitor,1,Answer()
exten => do_monitor,n,NoOp(Just got '${CfMC_ActionID}')
exten => do_monitor,n,ChanSpy(${CfMC_WhoHear},qX)
exten => do_monitor,n,Hangup()
I use an AMI packet like this:
Action: Originate
Channel: Agent/1001
Exten: do_monitor
Context: cfmc_cdi_private
Priority: 1
Variable: CfMC_ActionID=callE1334
Variable: CfMC_WhoHear=SIP/dickenson
ActionID: callE1324
Async: true
It seems as if the X option to the ChanSpy application causes asterisk to
get into a loop executing priorities 1-3 of the extension until I press a 1
to go to extension 1 in the same context as the do_monitor extension is in.
While asterisk is in this loop I hear no audio from the spied upon channel.
I am running Asterisk SVN-branch-1.6.0-r174845 due to problems in 1.6.0.5
that have been fixed in the current source code.
I thought the X option, added in 1.6, would resolve I problem I submitted a
patch for a few days ago to 1.4.23.1.
It might resolve the problem but I can tell as this loop problem occurred
during my testing.
--
Jim Dickenson
mailto:dickenson at cfmc.com
CfMC
http://www.cfmc.com/
More information about the asterisk-users
mailing list