shibby
July 18, 2024, 9:07am
1
Hi everyone.
I`m trying to add integration OCA/connector-telephony between Odoo CRM and FreePBX. It is require Asterisk Rest API. I have enabled ARI in freepbx and added new REST user. I am able to communicate with ARI, ex
[root@pbx ~]# curl -X GET -u user:pass http://my.domain:8088/ari/asterisk/info
{
“build”: {
“os”: “Linux”,
“kernel”: “3.10.0-1127.19.1.el7.x86_64”,
“machine”: “x86_64”,
“options”: “OPTIONAL_API”,
“date”: “2024-01-02 13:09:10 UTC”,
“user”: “mockbuild”
},
“system”: {
“version”: “18.20.2”,
“entity_id”: “00:15:5d:01:57:08”
},
“config”: {
“name”: “”,
“default_language”: “en”,
“setid”: {
“user”: “”,
“group”: “”
}
},
“status”: {
“startup_time”: “2024-07-08T15:38:35.023+0200”,
“last_reload_time”: “2024-07-18T10:20:28.868+0200”
}
}
[root@pbx ~]#
but when i try to “ask” about channels i`ve got an empty array
[root@pbx ~]# curl -X GET -u user:pass http://my.domain:8088/ari/channels
[root@pbx ~]#
i have 2 extension at the moment connected. I dont know what am i doing wrong. Can you help me?
jcolp
(Joshua Colp)
July 18, 2024, 9:10am
2
What does “2 extension at the moment connected” mean? Channels are active calls from things.
shibby
July 18, 2024, 9:20am
3
i have 2 microsip launched and connected to two different extension. I can call between them and they are “available” in asterisk
Endpoint: 474/474 Not in use 0 of inf
OutAuth: 474-auth/474
InAuth: 474-auth/474
Aor: 474 1
Contact: 474/sip:[email protected] :52957;ob 0ba2d619e1 Avail 1.047
Endpoint: 478/478 Not in use 0 of inf
OutAuth: 478-auth/478
InAuth: 478-auth/478
Aor: 478 1
Contact: 478/sip:[email protected] :62412;ob bba3448754 Avail 0.871
so i believe that /ari/channels should return an array with those two channels. Am i right?
jcolp
(Joshua Colp)
July 18, 2024, 9:21am
4
Only if active calls are going on.
shibby
July 18, 2024, 9:25am
5
ah… so i have to search an issue in other place.
Thanks.
system
(system)
Closed
July 25, 2024, 9:25am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.