Discussions

Ask a Question

Cross Origin Issue with CTI

I have integrated Dialpad CTI in my hosted react webapp. I am able to make calls alright. Now i wrote a script to initiate calls using the contentWindow.postmessage() following the api docs. but i get Uncaught DOMException: Failed to read a named property 'globals' from 'Window': Blocked a frame with origin "<https://dialpad.com"> from accessing a cross-origin frame. How do I resolve this?

SMS messages not routing correctly

Hi there, I have dialpad sms and calls set up in my application. It works MOST of the time however recently I had two instances where the sms were not sent correctly. How I have it set up is that we have contact centres with individual dialpad numbers inside related to clients. When a call comes in it goes to the dialpad number (client), and then is answered at the contact center level by a user. I can text directly from the app and have it set up to send texts from the contact centre level and uses the current call information to record which dialpad number to send the sms from, to which people reply and users can reply from in dialpad. However over the weekend a text was sent out from the account phone number, so when it got a responds it went directly to the account holders phone or mainline office, not the dialpad contact center. Also usually when we send a text from our app there is record of it in dialpad, for this instance however there is no record, but can tell it was sent because we received a response. We can't have messages being sent from this number, however I do not have it connected to function like this at all, and wanted to get some insight on why this is being sent from this number and how to prevent this. <br /> Thanks

SMS Event Subscription (API) process

I'm using Zapier successfully with calls and contacts for integration and I want to work with SMS as well which requires me to create a webhook and then use that to create an SMS event subscription. My understanding is that the steps are these: 1. Create / get a webhook URL from Zapier (done) 2. Create a webhook for DialPad (creates webhook_id) by passing in the webhook url above, using this -> <https://developers.dialpad.com/reference/webhookscreate> (done) 3. Confirm that the webhook was created using -> <https://developers.dialpad.com/reference/webhookslist> 4. Create the SMS Event Subscription by passing in the new webhook_id (in the endpoint_id parameter) <https://developers.dialpad.com/reference/webhook_sms_event_subscriptioncreate> However I get this error at step 4: { "error": { "code": 409, "errors": [ { "domain": "global", "message": "You have created an event subscription **_XXXX_my_webhook_id_here_XXXX_** with same target and overlapping filters. Please do not create duplicated event subscriptions.", "reason": "conflict" } ], "message": "You have created an event subscription **_XXXX_my_webhook_id_here_XXXX_** with same target and overlapping filters. Please do not create duplicated event subscriptions." } } <br /> What am I doing wrong?

Dialpad CTI - Outgoing call event

Currently from the dialpad CTI docs, I could see that there is an event that dialpad sends for incoming call - <https://developers.dialpad.com/docs/dialpad-mini-dialer#call_ringing> Similarly, is there an event that is sent while call is initiated from the dialer? Our use case is to have some front end workflows (without webhook) based on the incoming and outgoing call events.

Delete contact gives response as "Contact shared_contact_pool_Company:{{companyId}}_uid_{{uid}} not found cannot be accessed due to insufficient permissions."

I am trying to delete the shared contact by passing id - shared_contact_pool_Company:{{companyId}}\_uid_{{uid}}. But I am getting response like "Contact shared_contact_pool_Company:{{companyId}}\_uid_{{uid}} not found cannot be accessed due to insufficient permissions." When I try to hit Get Contact endpoint also I am getting same response. May I know why I am getting the response like this? I checked all the questions related to contacts endpoint nowhere i found any question related to this.

Websocket refresh

I notice that when you refresh a websocket the URL changes. In dotnet the standard websocket client does not have this as a feature, so this means having to create a new web socket which in turn means adding complicated logic in order to make sure that you retire the previous socket correctly, don't process a message twice, and don't miss a message. Is there any other way to refresh the web socket without the URL changing?

Using keyboard to answer calls?

Hi, is there a way to use my keyboard or even a different app w/ different interface? It appears I do have a bit of bad aim when it comes time to bring my mouse over to the hang up/answer icon.

New colums added to users report

We noticed that new columns were added to User API response <https://dialpad.com/api/v2/users> New columns are: duty_status_started, on_duty_started, on_duty_status, duty_status_reason Can we know if this is a permanent change ?

Screenpop API error

I am making the following request to a sandbox account: ``` POST <https://dialpadbeta.com/api/v2/users/id/screenpop?id=631#############> Authorization: Bearer acp######### {"screen_pop_uri":"<https://www.google.com/search?q=test"}> ``` (The ### in the URL are all numbers) The response I get is: ``` { "error": { "code": 400, "errors": [ { "domain": "global", "message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type (<type 'int'>, <type 'long'>) for field id, found id (type <class 'str'>))", "reason": "badRequest" } ], "message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type (\<type 'int'>, \<type 'long'>) for field id, found id (type \<class 'str'>))" } } ``` I'm not understanding what I'm missing about making this request. The error seems to indicate the id parameter is non-numeric, but it definitely is. What am I missing?

Zapier / Dialpad - Cannot update (PATCH) to add second number

I'm using Zapier (this is a DialPad supported integration) with the DialpPad API and PATCH and can update fields, however I can't add a second phone number. It simply writes over the existing number. I can retrieve the existing number, however I cannot for the life of me figure out how to pass two phone numbers from Zapier. PUT doesn't seem to update at all, despite the Dialpad API documentation suggesting that it does. I also can't pass in two phone numbers with a POST This is a DialPad supported integration. How do I pass a second phone number in Zapier to Dialpad? Thanks Andrew