On 3/11/15 12:48 PM, Salaheddine Elharit wrote:
hello list,

i use chanspy with the code below

[app-chanspy]
exten => _007.,1,Macro(user-callerid,)
exten => _007.,n,Answer
exten => _007.,n,Authenticate(1111)
exten => _007.,n,ChanSpy(SIP/${EXTEN:3},dqs)
exten => _007.,n,Hangup



i have a question related to chanspy

i have created extension from 100 to 300 and i will give the permission with group of extension

i want to use chanspy like below

100=====>199  with  Authenticate(1234)
200=====>299  with  Authenticate(5678)
300=====>399  with  Authenticate(8910)


Use a macro and pass the pin as a parameter:

[macro-chanspy]
exten => s,1,Authenticate(${ARG1})
exten => s,n,ChanSpy(SIP/${EXTEN:3},dqs)
exten => s,n,Hangup

[app-chanspy]
exten => _0071XX,Macro(chanspy,1234)
exten => _0072XX,Macro(chanspy,5678)
exten => _0073XX,Macro(chanspy,8910)

--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)9116-91161


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to