hello list,
i use the code below
[macro-chanspy]
exten => s,1,Authenticate(${ARG1})
exten => s,n,ChanSpy(SIP/${EXTEN:3},dqs)
exten => s,n,Hangup
app-chanspy]
exten => _0071XX,*1,*Macro(chanspy,1234)
exten => _0072XX,*1,*Macro(chanspy,5678)
exten => _0073XX,*1,*Macro(chanspy,8910)
but when i do 007100 for exemple i spy another agnet 102 or 103
any help please
thanks and regards
2015-03-12 10:30 GMT+00:00 Salaheddine Elharit <salah.elharit200 at
gmail.com>:
> thank you so much it work
> you must add 1 like below
>
> [app-chanspy]
> exten => _0071XX,*1,*Macro(chanspy,1234)
> exten => _0072XX,*1,*Macro(chanspy,5678)
> exten => _0073XX,*1,*Macro(chanspy,8910)
>
>
> best regards.
>
> 2015-03-11 19:48 GMT+00:00 Carlos Chavez <cursor at
telecomabmex.com>:
>
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20150312/0e5bc6dd/attachment.html>