Picture of tushar.yadav23
Registered 3 years 342 days
tushar.yadav23 Tuesday, 4 May 2021, 07:36 AM
Set/Reset DND
Hi team,

I am using this SDK http://sdk.innovaphone.com/web1/com.innovaphone.client/lib1_api_client.htm to integrate in my app so that i can set the phone on DND.

Can you help me with exact API to be used to perform this action?

Picture of Carmen Álvarez Méndez (innovaphone)
Moderator Registered 7 years 85 days
Carmen Álvarez Méndez (innovaphone) Monday, 10 May 2021, 07:50 AM
Re: Set/Reset DND
Hi Tushar,

You need to use the PbxApi:
https://sdk.innovaphone.com/doc/appwebsocket/PbxApi.htm

You can set the presence activity like this:
app.send({ mt: "SetPresence", api: "PbxApi", sip: sip, activity: activity, note: note });


Where activity in your case is dnd. Note is optional if you want to set also a presence note. Do not forget to set the PbxApi checkmark on your App Object.
← You can define your color theme preference here