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
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150312/cfabc733/attachment.html>
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 at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Administrator TOOTAI Sent: Thursday, March 12, 2015 2:19 PM To: asterisk-users at 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
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 at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150312/e8f54610/attachment.html>
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 at lists.digium.com [mailto:asterisk-users-bounces at 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 at tootai.net<mailto:admin at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150313/e5b1e6ac/attachment.html>
thank you so much Carlos ;the issue has been solved Best Regards. 2015-03-12 18:40 GMT+00:00 Salaheddine Elharit <salah.elharit200 at 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 <admin at 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 >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150313/9c342508/attachment.html>