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