Agenda SDK Dialog: How to add new favorites group and rename them
Hello everyone,
I think I found a little error in the documentation.
1) The documentation is not correct on this part.
It is shown that we should send this json to the pbx
{
"api": "PbxApi",
"mt": "AddProfileContact",
"id": unsigned,
"name": string,
"contact": {
"dn": string,
"sip": string,
"num": string
}
}
But this is wrong there is the profile part missing. It should look like this:
{
"api": "PbxApi","mt": "AddProfileContact","profile": {
"id": unsigned,"name": string,"contact": {
"dn": string,"sip": string,"num": string
}
}
}
2) The documentation also states this:
"Adds a new favourite to the given profile. If the profile does not exist, it is created."
When I have tried this it won't work. I will also not get an reply from the pbx after I send this event.
How do I have to use the AddProfileContact so that it will generate a new profile?
Also is there a way to edit the names of profiles?