[asterisk-users] How to Barge specific extensions
Hakan C
ella4ever at gmail.com
Tue Nov 18 17:02:21 CST 2008
Use AGI,
in PHP, something like that :)
$validExtensions = array("320", "302", "314");
$agi->exec("ZapBarge", $validExtensions[1]);
Thats just an example with phpAGI, you can modify it as you wish.
I am using it.
So, limit user input, they can only Barge valid extensions in array.
Also, you can use "g" (group) option with ChanSpy
Set a variable to channel which you are going to spy, like:
Set(SPYGROUP=115577)
And then use it
exten => _123,1,NoOp(Going to spy my workmate)
exten => _123,n,ChanSpy(SIP/,g(115577))
then you can only Spy channels with SPYGROUP variable which has value
'115577'...
Take a look ZapBarge and ChanSpy with
'core show application ZapBarge' and 'core show application ChanSpy', then
you can get an idea.
On Tue, Nov 18, 2008 at 4:39 PM, troxlinux <xserverlinux at gmail.com> wrote:
> 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...
>
> exten => _*5XXX,1,ChanSpy(SIP/${EXTEN:2},bq)
>
> it configures the hint inside the dialplan to be able to see the state of
> the extensions
>
> best regards
>
> 2008/11/17 amit salunkhe <amitsalunkhe21 at gmail.com>
>
>> Hi All
>> Can anybody help me for dial plan to barge or Spy(ExtenSpy)
>> specificor selective extemsions among 20 extension in my office.
>> lets say my office extension range is 301-320 & i want to barge only 3
>> extension say 320, 302,314.
>> is this possible to barge specific extension? . Plz help me for
>> this.I am using Asterisk 1.4.9 & SIP channels.
>>
>> Regards
>> Amit
>>
>> _______________________________________________
>>
>>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> 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/20081119/9225b63b/attachment.htm
More information about the asterisk-users
mailing list