[custom_911]
exten=>_911,1,Noop( ${CALLERID(num)} calling to 911)
same=>n,set(__num=${CALLERID(num)})
same=>n,Dial(Local/911@emergency_911&Local/100@from-internal-custom)
[emergency_911]
exten=>_911,1,Wait(2)
exten=>_911,n,Dial(SIP/callcentric/911)
[from-internal-custom]
exten=>_100,1,originate(SIP/100,exten,spy1,s,1")
;exten=>_100,1,System(/usr/sbin/asterisk -x "channel originate SIP/100 extension s@spy1)
[spy1]
exten => s,1,Answer
exten =>s,n,ChanSpy(${num},B)
same=>n,hangup()
when you diall 911 it will also call extension 100 and it will allow to spy the conversation
No hay comentarios:
Publicar un comentario