toolfolks
(Stephen Warburton)
March 31, 2023, 3:28pm
1
Hi Guys,
we are developing a mobile sip application and need access to the call logs. Anyone know if this is possible. eg call logs - etc 200- between date1&date2
The plan is to have a web service calling the GraphQL and reigning the json to the device. ( this way no token is needed on the device )
Any pointers appreciated.
Call logs as in the CDR database running on FreePBX and the ability to have your own setup as well?
https://wiki.sangoma.com/display/FPG/Remote+CDR+Database+Installation+Guide
toolfolks
(Stephen Warburton)
March 31, 2023, 4:08pm
3
Thanks for the info. I need to do this without touching the box.
I have this from CharGPT
query {
cdr(filter: {
userfield: {contains: "100"}
}, sort: {
field: "calldate",
direction: DESC
}) {
accountcode
src
dst
dcontext
channel
dstchannel
lastapp
lastdata
start
answer
end
duration
billsec
disposition
amaflags
uniqueid
userfield
}
}
but I am getting error
{
"errors": [
{
"message": "Cannot query field \"cdr\" on type \"Query\".",
"status": false
}
]
}
Hmm, that’s way out of my depth. Not sure how you expect to access CDR data on a system that you can’t touch.
system
(system)
Closed
May 1, 2023, 7:03pm
6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.