| Conditions | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | #!ruby |
||
| 36 | def ringout(client, accountId, extensionId, to, from, callerId) |
||
| 37 | body = { |
||
| 38 | to: { phoneNumber: to }, |
||
| 39 | from: { phoneNumber: from }, |
||
| 40 | callerId: { phoneNumber: callerId }, |
||
| 41 | playPrompt: false |
||
| 42 | } |
||
| 43 | client.http.post do |req| |
||
| 44 | req.url "account/#{accountId}/extension/#{extensionId}/ring-out" |
||
| 45 | req.headers['Content-Type'] = 'application/json' |
||
| 46 | req.body = body |
||
| 47 | end |
||
| 48 | end |
||
| 49 | |||
| 51 |