Note that there are some explanatory texts on larger screens.

plurals
  1. POBuddy online status using FreeSWITCH's mod_skypopen and PHP
    primarykey
    data
    text
    <p>I am new to FreeSWITCH/Skypopen. I need to get the the status of a buddy using the skypopen module and PHP.</p> <p>I am using the following PHP script to get the status.</p> <pre><code>&lt;?php $output = array(); $returnVar = ""; $result = exec('fs_cli -x "skypopen interface1 GET USER skypeusername ONLINESTATUS"', $returnVar, $output); var_dump($result, $returnVar, $output); ?&gt; </code></pre> <p>After executing the PHP file, I get the following response:</p> <pre><code>string(0) "" array(2) { [0]=&gt; string(68) "Using interface: globals.SKYPOPEN_INTERFACES[18].name=|||interface1|||" [1]=&gt; string(0) "" } int(0) </code></pre> <p>It only returns <code>Using interface: globals.SKYPOPEN_INTERFACES[18].name=|||interface1|||</code>, not the online status of "skypeusername".</p> <p>But if I execute the command <code>skypopen interface1 GET USER skypeusername ONLINESTATUS</code> in FreeSWITCH CLI, it returns the following:</p> <pre><code>freeswitch@internal&gt; skypopen interface1 GET USER skypeusername ONLINESTATUS Using interface: globals.SKYPOPEN_INTERFACES[18].name=|||interface1||| 2013-06-04 04:06:35.778928 [DEBUG] skypopen_protocol.c:1771 [1a3a11f|3d6ed64] [DEBUG_SKYPE 1771 ][interface1 ][IDLE,IDLE] SENDING: |||GET USER skypeusername ONLINESTATUS|||| 2013-06-04 04:06:35.778928 [DEBUG] skypopen_protocol.c:209 [1a3a11f|3d6ed64] [DEBUG_SKYPE 209 ][interface1 ][IDLE,IDLE] READING: |||USER skypeusername ONLINESTATUS ONLINE||| </code></pre> <p>After doing some search in Google, I found that the skypopen module sends the result to its log file as DEBUG log.</p> <p>Is there a way to get that response as result to the PHP script?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload