0 like 0 dislike
74 views
rephrase How to get values or data from asterisk command and need to show in PHP
in Education & Reference by (520 points) | 74 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) | 67 views
0 like 0 dislike
1 answer
asked Jul 7, 2014 in Education & Reference by Bhoomika (50 points) | 9.6k 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,202 questions
1,348 answers
553 comments
1,994 users