呼叫系统API


中继落地

<h3><strong>简要描述:</strong></h3> <ul> <li> <h1>查询</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/gateway/grid</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>admin_id</td> <td>否</td> <td>string</td> <td></td> <td>用户id</td> </tr> <tr> <td>username</td> <td>否</td> <td>string</td> <td></td> <td>SIP账号</td> </tr> <tr> <td>page</td> <td>是</td> <td>int</td> <td>1</td> <td>起始页</td> </tr> <tr> <td>limit</td> <td>是</td> <td>int</td> <td>10</td> <td>每页的条数</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;admin_id&amp;quot;: 3, &amp;quot;caller_id_in_from&amp;quot;: false, &amp;quot;codec&amp;quot;: &amp;quot;G729,PCMA,PCMU&amp;quot;, &amp;quot;cycle&amp;quot;: 60, &amp;quot;dtmf_type&amp;quot;: &amp;quot;none&amp;quot;, &amp;quot;id&amp;quot;: 5, &amp;quot;passwd&amp;quot;: &amp;quot;xh6118112084&amp;quot;, &amp;quot;rate&amp;quot;: 0.1100, &amp;quot;realm&amp;quot;: &amp;quot;11.12.11.11:62000&amp;quot;, &amp;quot;register&amp;quot;: &amp;quot;false&amp;quot;, &amp;quot;username&amp;quot;: &amp;quot;xh6118112084&amp;quot;, &amp;quot;adminName&amp;quot;: &amp;quot;xinjiaodu&amp;quot; }], &amp;quot;count&amp;quot;: 20 }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>admin_id</td> <td>int</td> <td>管理员编号</td> </tr> <tr> <td>caller_id_in_from</td> <td>int</td> <td>主叫改写,1启用,0禁用</td> </tr> <tr> <td>codec</td> <td>string</td> <td>语音编码</td> </tr> <tr> <td>cycle</td> <td>int</td> <td>计费时长</td> </tr> <tr> <td>id</td> <td>string</td> <td>编号</td> </tr> <tr> <td>dtmf_type</td> <td>string</td> <td>DTMF类型</td> </tr> <tr> <td>passwd</td> <td>string</td> <td>密码</td> </tr> <tr> <td>rate</td> <td>string</td> <td>计费费率</td> </tr> <tr> <td>realm</td> <td>string</td> <td>SIP地址</td> </tr> <tr> <td>register</td> <td>string</td> <td>register,ture:注册,false:对接,reverse:反向注册</td> </tr> <tr> <td>username</td> <td>string</td> <td>SIP账号</td> </tr> <tr> <td>adminName</td> <td>string</td> <td>管理员名称</td> </tr> </tbody> </table> <h3><strong>简要描述:</strong></h3> <ul> <li> <h1>增加中继</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/gateway/add</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>是</td> <td>string</td> <td>SIP账号</td> </tr> <tr> <td>passwd</td> <td>是</td> <td>string</td> <td>密码</td> </tr> <tr> <td>realm</td> <td>是</td> <td>string</td> <td>SIP地址</td> </tr> <tr> <td>register</td> <td>是</td> <td>string</td> <td>对接模式,false:不注册,true:注册 ,reverse:反向注册</td> </tr> <tr> <td>cycle</td> <td>是</td> <td>int</td> <td>计费时长</td> </tr> <tr> <td>rate</td> <td>是</td> <td>int</td> <td>计费费率</td> </tr> <tr> <td>codec</td> <td>是</td> <td>string</td> <td>语音编码:G729,PCMA,PCMU,可多选,逗号分隔</td> </tr> <tr> <td>dtmf_type</td> <td>是</td> <td>string</td> <td>DTMF接收:none,rfc2833,info,inband,单选</td> </tr> <tr> <td>caller_id_in_from</td> <td>是</td> <td>int</td> <td>坐席作为主叫:0 禁用,1 启用</td> </tr> <tr> <td>admin_id</td> <td>是</td> <td>int</td> <td>网关所属用户编号</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <h3><strong>简要描述:</strong></h3> <ul> <li> <h1>修改中继</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/gateway/edit</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>是</td> <td>string</td> <td></td> <td>编号</td> </tr> <tr> <td>username</td> <td>是</td> <td>string</td> <td></td> <td>SIP账号</td> </tr> <tr> <td>passwd</td> <td>是</td> <td>string</td> <td></td> <td>密码</td> </tr> <tr> <td>realm</td> <td>是</td> <td>string</td> <td></td> <td>SIP地址</td> </tr> <tr> <td>register</td> <td>是</td> <td>string</td> <td></td> <td>对接模式,false:不注册,true:注册 ,reverse:反向注册</td> </tr> <tr> <td>cycle</td> <td>是</td> <td>int</td> <td></td> <td>计费时长</td> </tr> <tr> <td>rate</td> <td>是</td> <td>int</td> <td></td> <td>计费费率</td> </tr> <tr> <td>codec</td> <td>是</td> <td>string</td> <td></td> <td>语音编码:G729,PCMA,PCMU,可多选,逗号分隔</td> </tr> <tr> <td>dtmf_type</td> <td>是</td> <td>string</td> <td></td> <td>DTMF接收:none,rfc2833,info,inband,单选</td> </tr> <tr> <td>caller_id_in_from</td> <td>是</td> <td>int</td> <td></td> <td>坐席作为主叫:0 禁用,1 启用</td> </tr> <tr> <td>admin_id</td> <td>是</td> <td>int</td> <td></td> <td>网关所属用户编号</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <h3><strong>简要描述:</strong></h3> <ul> <li> <h1>删除</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/gateway/remove</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>ids</td> <td>是</td> <td>string</td> <td>例:1,2,3</td> <td>网关编号 ,多个逗号分割</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <h3><strong>简要描述:</strong></h3> <ul> <li> <h1>验证网关账号接口</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/gateway/exist</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>是</td> <td>string</td> <td></td> <td>网关账号</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;:0, &amp;quot;msg&amp;quot;:&amp;quot;&amp;quot;, &amp;quot;data&amp;quot;:false://重复,不可用,true:可用 }</code></pre> <p><strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的状态码描述</li> </ul>

页面列表

ITEM_HTML