question

Kt109 avatar image
Kt109 asked ·

outbound call python

Any reference of code where I can make an outbound call from python code.

I want to try python sdk for that.

Any reference or any sample demo code will be helpful

Thanks in advance

callpython ring_central client
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Anirban avatar image
Anirban answered ·

Can you check this below?

from ringcentral import SDK

sdk = SDK( "client_id", "client_secret", "server_url" )
platform = sdk.platform()
platform.login( "username", "extension", "password" )

resp = platform.post('/restapi/v1.0/account/~/extension/~/ring-out',
    {
      'from' : { 'phoneNumber': "13445554444" },
      'to'   : { 'phoneNumber': "13455553434" },
      'playPrompt' : True
    })
print "Call placed. Call status: " + resp.json().status.callStatus 

reference code : https://developers.ringcentral.com/guide/voice/ringout

1 comment
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Any full code can you provide?

-1 Like -1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys