<div>Use AGI,</div>
<div> </div>
<div>in PHP, something like that :)</div>
<div>$validExtensions = array("320", "302", "314");</div>
<div>$agi->exec("ZapBarge", $validExtensions[1]);<br></div>
<div>Thats just an example with phpAGI, you can modify it as you wish.</div>
<div>I am using it.</div>
<div>So, limit user input, they can only Barge valid extensions in array.</div>
<div> </div>
<div>Also, you can use "g" (group) option with ChanSpy</div>
<div>Set a variable to channel which you are going to spy, like:</div>
<div> </div>
<div>Set(SPYGROUP=115577)</div>
<div> </div>
<div>And then use it</div>
<div>exten => _123,1,NoOp(Going to spy my workmate)</div>
<div>exten => _123,n,ChanSpy(SIP/,g(115577))</div>
<div> </div>
<div>then you can only Spy channels with SPYGROUP variable which has value '115577'...</div>
<div>Take a look ZapBarge and ChanSpy with</div>
<div>'core show application ZapBarge' and 'core show application ChanSpy', then you can get an idea.</div>
<div> </div>
<div class="gmail_quote">On Tue, Nov 18, 2008 at 4:39 PM, troxlinux <span dir="ltr"><<a href="mailto:xserverlinux@gmail.com">xserverlinux@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi amit not you if you can create a group of extensions to spy, but for example if your extensions are of 3 digits your you can create something like that... <br>
<br>exten => _*5XXX,1,ChanSpy(SIP/${EXTEN:2},bq) <br> <br>it configures the hint inside the dialplan to be able to see the state of the extensions <br><br>best regards<br><br>
<div class="gmail_quote">2008/11/17 amit salunkhe <span dir="ltr"><<a href="mailto:amitsalunkhe21@gmail.com" target="_blank">amitsalunkhe21@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div class="Wj3C7c">
<div>Hi All</div>
<div> Can anybody help me for dial plan to barge or Spy(ExtenSpy) specificor selective extemsions among 20 extension in my office.</div>
<div>lets say my office extension range is 301-320 & i want to barge only 3 extension say 320, 302,314.</div>
<div> is this possible to barge specific extension? . Plz help me for this.I am using Asterisk 1.4.9 & SIP channels.</div>
<div> </div>
<div>Regards</div>
<div>Amit </div><br></div></div>_______________________________________________<br><br></blockquote></div><br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</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/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>