Asterisk PHP Script to determine status of DAHDI Channels
$10-30 USD
Завершено
Опублікований over 7 years ago
$10-30 USD
Оплачується при отриманні
I need a simple script that uses PHPAGI that can be called by asterisk dialplan to run the command system command “lsdahdi | grep INACTIVE” or “lsdahdi | grep ACTIVE” or and will return a list of channels number that are INACTIVE, ACTIVE and INACTIVE IN ALARM:
Running from Linux command line lsdahdi | grep INACTIVE returns for example:
[#]$ lsdahdi | grep INACTIVE
15 FXO FXSKS (In use) (EC: MG2 - INACTIVE)
16 FXO FXSKS (In use) (EC: MG2 - INACTIVE)
21 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
22 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
23 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
24 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
As you can see it returns 6 channels that are INACTIVE. Four are in RED Alarm.
I would like to be able to call the AGI Script to list channel status
(1) INACTIVE
(2) INACTIVE with Alarm
(3) ACTIVE
I need your script to return to asterisk dial plan a string something like this:
exten => _X.,1,Set(ALARM=RED)
exten => _X.,n,Set(STATE=INACTIVE)
exten => _X.,n,AGI([login to view URL],${STATE},${ALARM})
exten => _X.,n,Verbose(${RESULTS})
(${RESULTS} = 21,22,23,24
exten => _X.,1,Set(ALARM=)
exten => _X.,n,Set(STATE=INACTIVE)
exten => _X.,n,AGI([login to view URL],${STATE},${ALARM})
exten => _X.,n,Verbose(${RESULTS})
(${RESULTS} = 15,16
exten => _X.,1,Set(ALARM=)
exten => _X.,n,Set(STATE=ACTIVE)
exten => _X.,n,AGI([login to view URL],${STATE},${ALARM})
exten => _X.,n,Verbose(${RESULTS})
(${RESULTS} = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,18,19,20
Please include in your bid "I AM NOT A ROBOT"
Thanks, Bart
Hello,
My name is Ionut Ripeanu and i'm telecom engineer. i have 7 years experience with Asterisk and i worked on soem projects wheren PHO scripts were used from Asterisk.
For more details, you can contact me also on Skype: ripeanu_ionut
Thank you!
Hello,
I'm Telecommunication Engineer with +5 years experience with Design and implementation of IP Telephony Solutions based on Free Software: SBC, IP PBX Systems, WebRTC, Voice Recording Systems, IVR Applications, Call Centers and Integration of IP Telephony Platforms with Web based Application. I earned the dCap certification (Digium Certified Asterisk Professional) and Kamailio Administrator certificated.
I have the skills and the experience for this job
Let me know if you are interested.
Regards,
Dear Client,
Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned .I have checked your requirements.i have right skills to work on this assignmentWe find our expertise, skills and capabilities are perfectly blends with your project requirements because we have already worked on many projects.
You'll love the whole layout, interface design , cross-browser compatibility and mobile-device-friendly interfaces that we design
Our team has created over dozen of windows, and web based appliations iPhone/iPad games and apps, and over 10 Windows and Linux server APIs and security tools
Don't waste any more time in your development We take care of all these things for you . Advanced custom coding for our clients. Anytime.
[Removed for encouraging offsite communication which is against our Terms and Conditions.]. plz add me to discus
I am ready to discuss with you Looking forward to hear from you.
with best Regards
This is a simple action to get information about channels state in your asterisk voip system.
We can develop this item for you in one day
I AM NOT A ROBOT
I AM NOT A ROBOT
Regards,
I have experience in setup and maintenance of Asterisk servers. I have implemented call center with multiple locations and high availability.
Since 2005 work with Asterisk and in 2008 I got my certification dCAP.
I fully understand how Asterisk and VoIP applications works.
I have strong knowledge of Linux and C programming. I have made several patches related asterisk manager and DAHDI module, I have worked on this operating system since 2000. I can program in Perl or PHP any AGI they need. I have also advanced knowledge of SQL.
I would like to have an interview to chat about the needs of your project. I am available to work with you, because I think this is an interesting project.
Thank you for taking the time to read my application.