How is it possible to do a chanspy or a zapbarge with the manager ?
I tried something, but didn’t work very well.
In my dial plan, I have something resuming to :
exten => _*666.,1,ChanSpy(IAX2/${EXTEN:4}
exten => _888Z,1,ZapBarge(${EXTEN:3})
With my phone (exten 300), I can do :
- *666100 : to chanspy IAX2/100
- 8881 : to zapbarge Zap/1
This works very well if I call directly.
with manager, I do :
Action: originate
Channel: Local/300
WaitTime: 30
CallerId: "Web Call" <*666100>
Exten: *666100
Context: from-internal
Priority: 1
That’s almost work, but on the extension 100, I have on “music on hold” during about 20 seconds.
Logs :
-- Called 300
-- Call accepted by 192.168.0.1 (format gsm)
-- Format for call is gsm
-- IAX2/300-8 is ringing
-- Started music on hold, class 'default', on channel 'IAX2/100-5'
-- Playing 'pbx-transfer' (language 'fr')
For zapbarge, I do :
Action: originate
Channel: Local/300
WaitTime: 30
CallerId: "Web Call" <8881>
Exten: 8881
Context: from-internal
Priority: 1
But, doesn’t work at all, it tries to make a transfer…
It seems I can’t do that with “originate”, but is there another solution please ?
Thanks.
As you can see, I use AMP.