bar top left
bar top right
left curve
right curve
Welcome, Guest

Disable / Enable Extension remotely
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 12
TOPIC: Disable / Enable Extension remotely
#65733
Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 0
Hi Dear Masters

I wanna to disable/enable our extensions remotely. Is there any script or soft or...?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
13bedar
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#66086
Re: Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 0
Anybody..... Any response... plz....
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
13bedar
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#66088
Re: Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 130
Hi and wellcome to our Elastix Forum.

What do you mean about enable/disable extensions remotely?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 5422
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franckd@agmp.org
Reply Quote
 
#66111
Re:Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 0
Thanks a lot for your reply.

we wanna to manage our extensions centrally and ability to turn off or disable or unregistered extensions remotely by administrator. Is there any open source software or a script or .... that enable us to register/unregistered extensions by admin and without deleting the extension?

thanks
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
13bedar
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#66114
Re:Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 156
Perhaps take advantage of iptables, make an executable script:-

#!/bin/bash
EXTIP=`rasterisk -x 'sip show peers'|grep -e ^$1|awk '{print $2}'`
iptables -$2 INPUT -s $EXTIP -j DROP
service iptables save


(no error or boundary checking here, you should add them)


call with

scriptname <ext> A

to Add a rule and disable the extension

scriptname <ext> D

to Delete the rule and re-enable it.

If the extension is remote and behind a firewall it will disable all extension in that network, if you need to do that with more granularity look into doing the same with ports but have each co-located ext register on a separate port .
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4100
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/12/04 14:40 By dicko.
There are other solutions!!
Reply Quote
 
#66120
Re:Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 0
Thanks a lot

So sorry. I am an armature and "remotely" means it is from same network but from another station ( a windows-based software that enable us to do register/unregistered from that station). how could we do that?
Thanks
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
13bedar
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#66121
Re:Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 156
Unfortunately I can't help you there as I don't consider windoze as a properly functional OS, so I won't support or use it, I suggest you install putty et al and you can then pretend you have a real machine . For scripting cygwin will give you a real posix compliant shell and all the hooks necessary to properly converse with your VOIP server of choice.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4100
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/12/04 15:43 By dicko.
There are other solutions!!
Reply Quote
 
#66128
Re: Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 3
I got this feature working, it was a learning experience.
What I did was to install a local phone locking app that basically sets a lock bit in the AstDB for each extension.
All the info to do this can be found here:
www.freepbx.org/forum/freepbx/users/lock...nd-unlocking-a-phone

Having got that working, I then used Ward Mundy's Phone Genie app which allows the AstDB to be accessed remotely. bestof.nerdvittles.com/applications/phonegenie/

Then I lashed up a rough web page with a lock/unlock command for each extension:
For example:
192.168.x.x/nv-genie.php?action=dbput&am...e=1&pw=*********

192.168.x.x/nv-genie.php?action=dbdel&am...ked&pw=*********

So extensions can be locked/unlocked via the keypad or via the lan, It could be done over the wan as well via a vpn. I toyed with the idea of turning the web page into a FOP-like display, but that's beyond my skill.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
fraggle4
Junior Boarder
Posts: 98
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/12/04 18:10 By fraggle4.Reason: fingers
Reply Quote
 
#66129
Re:Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 0
Thanks a lot Dear Masters

Our goal is to prep a tiny software could be scheduled to register/unregistered our extensions (win-based).
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
13bedar
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#66130
Re:Disable / Enable Extension remotely 1 Year, 5 Months ago Karma: 156
There is no native way to do that in FreePBX, either fraggle4's suggestion, or bear in mind that part of . . .putty (et al). . . is plink

so calling from your windoze box:


plink <yourelastixserver> <myscriptfilename> <theextensiontocontrol> <A|D>

is pretty tiny wouldn't you agree?

(you will need to set up ssh keys to make it automatic, ref:

the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html

)


make a shortcut to call it, add the parameterization to choose the extension to control

either as a an armature (sic.) or stator, you will have to provide the EMF to make either method work.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4100
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
There are other solutions!!
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 12
Moderators: Bob, jgutierrez
Protected by Spam Fighter