Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] chanspy for group extension


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
salah.elharit200 at gm...
Guest





PostPosted: Wed Mar 11, 2015 1:48 pm    Post subject: [asterisk-users] chanspy for group extension Reply with quote

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
Back to top
cursor at telecomabmex...
Guest





PostPosted: Wed Mar 11, 2015 2:48 pm    Post subject: [asterisk-users] chanspy for group extension Reply with quote

On 3/11/15 12:48 PM, Salaheddine Elharit wrote:
Quote:
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
Back to top
salah.elharit200 at gm...
Guest





PostPosted: Thu Mar 12, 2015 5:30 am    Post subject: [asterisk-users] chanspy for group extension Reply with quote

thank you so much it workyou 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@telecomabmex.com (cursor@telecomabmex.com)>:
Quote:
On 3/11/15 12:48 PM, Salaheddine Elharit wrote:
Quote:
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
Back to top
salah.elharit200 at gm...
Guest





PostPosted: Thu Mar 12, 2015 11:29 am    Post subject: [asterisk-users] chanspy for group extension Reply with quote

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@gmail.com (salah.elharit200@gmail.com)>:
Quote:
thank you so much it workyou 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@telecomabmex.com (cursor@telecomabmex.com)>:
Quote:
On 3/11/15 12:48 PM, Salaheddine Elharit wrote:
Quote:
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





Back to top
admin at tootai.net
Guest





PostPosted: Thu Mar 12, 2015 1:19 pm    Post subject: [asterisk-users] chanspy for group extension Reply with quote

Hi,

Le 12/03/2015 17:28, Salaheddine Elharit a écrit :
Quote:
hello list,

i use the code below

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

Here you have a problem: ${EXTEN} value is s

[...]

Daniel

--
_____________________________________________________________________
-- 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
Back to top
cursor at telecomabmex...
Guest





PostPosted: Thu Mar 12, 2015 1:23 pm    Post subject: [asterisk-users] chanspy for group extension Reply with quote

On 3/12/15 12:19 PM, Administrator TOOTAI wrote:
Quote:
Hi,

Le 12/03/2015 17:28, Salaheddine Elharit a écrit :
Quote:
hello list,

i use the code below

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

Here you have a problem: ${EXTEN} value is s

[...]

Daniel

Oops, my bad, that should have been ${MACRO_EXTEN} so it gets the vaule of the extension that was dialed.
Quote:
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)9116-91161
Back to top
EWieling at nyigc.com
Guest





PostPosted: Thu Mar 12, 2015 1:23 pm    Post subject: [asterisk-users] chanspy for group extension Reply with quote

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-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Administrator TOOTAI
Sent: Thursday, March 12, 2015 2:19 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] chanspy for group extension

Hi,

Le 12/03/2015 17:28, Salaheddine Elharit a écrit :
Quote:
hello list,

i use the code below

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

Here you have a problem: ${EXTEN} value is s

[...]

Daniel

--
_____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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
Back to top
salah.elharit200 at gm...
Guest





PostPosted: Thu Mar 12, 2015 1:40 pm    Post subject: [asterisk-users] chanspy for group extension Reply with quote

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 <admin@tootai.net (admin@tootai.net)>:
Quote:
Hi,

Le 12/03/2015 17:28, Salaheddine Elharit a écrit :
Quote:
hello list,

i use the code below

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

Here you have a problem: ${EXTEN} value is s

[...]

Daniel

--
_____________________________________________________________________
-- 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


Back to top
EWieling at nyigc.com
Guest





PostPosted: Fri Mar 13, 2015 9:24 am    Post subject: [asterisk-users] chanspy for group extension Reply with quote

Using Gosub / Return is well documented on voip-info.org, Asterisk The Definitive Guide, and many other places.  Rehashing it on the mailing list would not be helpful.

From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Salaheddine Elharit
Sent: Thursday, March 12, 2015 2:40 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] chanspy for group extension


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 <admin@tootai.net (admin@tootai.net)>:
Hi,

Le 12/03/2015 17:28, Salaheddine Elharit a écrit :
hello list,

i use the code below

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

Here you have a problem: ${EXTEN} value is s

[...]

Daniel


--
_____________________________________________________________________
-- 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
Back to top
salah.elharit200 at gm...
Guest





PostPosted: Fri Mar 13, 2015 9:28 am    Post subject: [asterisk-users] chanspy for group extension Reply with quote

thank you so much Carlos ;the issue has been solved 

Best Regards.


2015-03-12 18:40 GMT+00:00 Salaheddine Elharit <salah.elharit200@gmail.com (salah.elharit200@gmail.com)>:
Quote:
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 <admin@tootai.net (admin@tootai.net)>:
Quote:
Hi,

Le 12/03/2015 17:28, Salaheddine Elharit a écrit :
Quote:
hello list,

i use the code below

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

Here you have a problem: ${EXTEN} value is s

[...]

Daniel

--
_____________________________________________________________________
-- 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







Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services