Chanspy For Group Extension
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)
any help please
Thanks and regards
9 thoughts on - Chanspy For Group Extension
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)
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:
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:
Hi,
Le 12/03/2015 17:28, Salaheddine Elharit a
Oops, my bad, that should have been ${MACRO_EXTEN} so it gets the vaule of the extension that was dialed.
This is one of the drawbacks to using macros. There are workarounds for macros, but the correct solution is use the Gosub / Return dialplan applications
—–Original Message—
thank you but could you please tell me how can i put it
thanks and regards
2015-03-12 18:19 GMT+00:00 Administrator TOOTAI:
VXNpbmcgR29zdWIgLyBSZXR1cm4ga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LyR7RVhURU46M30sX19kcXMpDQoNCkhlcmUgeW91IGhhdmUgYSBwcm9i bGVtOiAke0VYVEVOfSB2YWx1ZSBpcyBzDQoNClsuLi5dDQoNCkRhbmllbA0KDQoNCi0tDQpfX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX18NCi0tIEJhbmR3aWR0aCBhbmQgQ29sb2NhdGlvbiBQcm92aWRlZCBieSBodHRwOi8v d3d3LmFwaS1kaWdpdGFsLmNvbSAtLQ0KTmV3IHRvIEFzdGVyaXNrPyBKb2luIHVzIGZvciBhIGxp dmUgaW50cm9kdWN0b3J5IHdlYmluYXIgZXZlcnkgVGh1cnM6DQogICAgICAgICAgICAgIGh0dHA6
Ly93d3cuYXN0ZXJpc2sub3JnL2hlbGxvDQoNCmFzdGVyaXNrLXVzZXJzIG1haWxpbmcgbGlzdA0K
VG8gVU5TVUJTQ1JJQkUgb3IgdXBkYXRlIG9wdGlvbnMgdmlzaXQ6DQogIGh0dHA6Ly9saXN0cy5k aWdpdW0uY29tL21haWxtYW4vbGlzdGluZm8vYXN0ZXJpc2stdXNlcnMNCg0K
thank you so much Carlos ;the issue has been solved
Best Regards.
2015-03-12 18:40 GMT+00:00 Salaheddine Elharit: