I’m getting a intermittent problem where channelid’s are listed for an ARI endpoint query (for example GET /ari/endpoints/SIP/601), but they don’t show in the CLI, and they don’t seem to exist on the SIP phones (Cisco SPA504g)
Restarting the affected phones doesn’t help. killing and rerunning asterisk clears the channels.
I Also tried running an ARI DELETE on the channelid and that said the channel didn’t exist.
Example:
voipCLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry Peer
0 active SIP dialogs
voipCLI>
voipCLI> core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
50 calls processed
voipCLI>
$wtf = json_decode(CallAPI(“GET”, “http://127.0.0.1:8088/ari/endpoints/SIP/601”));
php >
php > var_dump($wtf);
object(stdClass)#2 (4) {
[“technology”]=>
string(3) “SIP”
[“state”]=>
string(6) “online”
[“resource”]=>
string(3) “601”
[“channel_ids”]=>
array(2) {
[0]=>
string(14) “1401345592.112”
[1]=>
string(14) “1401345569.107”
}
}