Claim your Biolink Click Here
0 like 0 dislike
473 views
rephrase How to get values or data from asterisk command and need to show in PHP
in Education & Reference by (820 points) | 473 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 30, 2019 in Education & Reference by Marc (4.7k points) | 278 views
0 like 0 dislike
1 answer
asked Jul 7, 2014 in Education & Reference by Bhoomika (-30 points) | 27.4k 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,310 questions
1,471 answers
569 comments
4,809 users