Re: [asterisk-users] chanspy for group extension
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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 ad...@tootai.netmailto:ad...@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 -- _ -- 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
Re: [asterisk-users] chanspy for group extension
thank you so much Carlos ;the issue has been solved Best Regards. 2015-03-12 18:40 GMT+00:00 Salaheddine Elharit salah.elharit...@gmail.com: 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 ad...@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 -- _ -- 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
Re: [asterisk-users] chanspy for group extension
On 3/12/15 12:19 PM, Administrator TOOTAI wrote: 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 Oops, my bad, that should have been ${MACRO_EXTEN} so it gets the vaule of the extension that was dialed. -- 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
Re: [asterisk-users] chanspy for group extension
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.elharit...@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 cur...@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() 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 -- _ -- 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
Re: [asterisk-users] chanspy for group extension
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
Re: [asterisk-users] chanspy for group extension
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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 : 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
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 ad...@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 -- _ -- 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
Re: [asterisk-users] chanspy for group extension
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 cur...@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() 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 -- _ -- 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
[asterisk-users] 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() 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 -- _ -- 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
Re: [asterisk-users] chanspy for group extension
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() 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