0 like 0 dislike
41 views
rephrase How to get values or data from asterisk command and need to show in PHP
in Education & Reference by (530 points) | 41 views

1 Answer

0 like 0 dislike

Using shell exec in php like below

$shell = exec("asterisk -rx 'sip show peers'");
by
0 0
How to get particular values like meetme lis show 4 users and I want to fetch 4 value only
0 0
$shell = exec("asterisk -rx 'meetme list' |grep 'Total number of MeetMe users'");
$fshell=explode(":",$shell);
$limit=trim($fshell[1]);

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 29, 2019 in Education & Reference by Marc (2.4k points) | 39 views
0 like 0 dislike
1 answer
asked Jul 7, 2014 in Education & Reference by Bhoomika (50 points) | 8.1k views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,197 questions
1,343 answers
315 comments
1,785 users