<div dir="ltr">thank you so much it work<div>you must add 1 like below </div><div><br></div><div><p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">[app-chanspy]</span><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif"><br>
<span style="background-image:initial;background-repeat:initial">exten
=> _0071XX,<b>1,</b>Macro(chanspy,1234)</span><br>
<span style="background-image:initial;background-repeat:initial">exten
=> _0072XX,<b>1,</b>Macro(chanspy,5678)</span><br>
<span style="background-image:initial;background-repeat:initial">exten
=> _0073XX,<b>1,</b>Macro(chanspy,8910)</span></span><span lang="EN-US" style="font-size:12pt;line-height:115%"></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif"><span style="background-image:initial;background-repeat:initial"><br></span></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif"><span style="background-image:initial;background-repeat:initial">best regards.</span></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-11 19:48 GMT+00:00 Carlos Chavez <span dir="ltr"><<a href="mailto:cursor@telecomabmex.com" target="_blank">cursor@telecomabmex.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 3/11/15 12:48 PM, Salaheddine Elharit wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello list,<br>
<br>
i use chanspy with the code below<br>
<br>
[app-chanspy]<br>
exten => _007.,1,Macro(user-callerid,)<br>
exten => _007.,n,Answer<br>
exten => _007.,n,Authenticate(1111)<br>
exten => _007.,n,ChanSpy(SIP/${EXTEN:3}<u></u>,dqs)<br>
exten => _007.,n,Hangup<br>
<br>
<br>
<br>
i have a question related to chanspy<br>
<br>
i have created extension from 100 to 300 and i will give the permission with group of extension<br>
<br>
i want to use chanspy like below<br>
<br>
100=====>199  with  Authenticate(1234)<br>
200=====>299  with  Authenticate(5678)<br>
300=====>399  with  Authenticate(8910)<br>
<br>
<br>
</blockquote></div></div>
Use a macro and pass the pin as a parameter:<br>
<br>
[macro-chanspy]<br>
exten => s,1,Authenticate(${ARG1})<br>
exten => s,n,ChanSpy(SIP/${EXTEN:3},<u></u>dqs)<br>
exten => s,n,Hangup<br>
<br>
[app-chanspy]<br>
exten => _0071XX,Macro(chanspy,1234)<br>
exten => _0072XX,Macro(chanspy,5678)<br>
exten => _0073XX,Macro(chanspy,8910)<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Telecomunicaciones Abiertas de México S.A. de C.V.<br>
Carlos Chávez<br>
+52 (55)9116-91161<br>
<br>
<br>
-- <br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</font></span></blockquote></div><br></div>