中继落地
<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> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;admin_id&quot;: 3,
&quot;caller_id_in_from&quot;: false,
&quot;codec&quot;: &quot;G729,PCMA,PCMU&quot;,
&quot;cycle&quot;: 60,
&quot;dtmf_type&quot;: &quot;none&quot;,
&quot;id&quot;: 5,
&quot;passwd&quot;: &quot;xh6118112084&quot;,
&quot;rate&quot;: 0.1100,
&quot;realm&quot;: &quot;11.12.11.11:62000&quot;,
&quot;register&quot;: &quot;false&quot;,
&quot;username&quot;: &quot;xh6118112084&quot;,
&quot;adminName&quot;: &quot;xinjiaodu&quot;
}],
&quot;count&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> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&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> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&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> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&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> {
&quot;code&quot;:0,
&quot;msg&quot;:&quot;&quot;,
&quot;data&quot;:false://重复,不可用,true:可用
}</code></pre>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的状态码描述</li>
</ul>