Asterisk ARI Ghost Channels

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
voip
CLI>

voipCLI> core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
50 calls processed
voip
CLI>

$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”
}
}

Howdy,

You’ll get better responses to on the mailing list here:
lists.digium.com/cgi-bin/mailman … sk-app-dev

ARI’s still pretty new, and I haven’t seen many on the forums dabbling in it yet.

Cheers

Thanks, I ended up rewriting my phone status checking function with the asterisk manager interface instead - it’s a bit nasty as it polls rather than using push notification/events.