XIQS Create SIP Device Group
From IQsimWiki
Line 1: | Line 1: | ||
+ | |||
{{XIQS Command|XIQS Create SIP Device Group|SIP Device Group Management| | {{XIQS Command|XIQS Create SIP Device Group|SIP Device Group Management| | ||
cmdname=createXIQSVoipDvcGroup| | cmdname=createXIQSVoipDvcGroup| | ||
cmdparams=''String'' name , [ ''Long'' id_device ] , ''Integer'' devicetype [, ''Long'' '''id_partition''' ]| | cmdparams=''String'' name , [ ''Long'' id_device ] , ''Integer'' devicetype [, ''Long'' '''id_partition''' ]| | ||
- | description=Create | + | description=Create device group. This command will create empty group. Devices are added into group using [[ XIQS Add Device to SIP Device Group| addXIQSVoipDvcGroup ]] function<br> |
- | + | ||
}} | }} | ||
{{XIQS Parameters| | {{XIQS Parameters| | ||
;''String'' name | ;''String'' name | ||
- | : | + | :Group name |
;[ ''Long'' id_device ] | ;[ ''Long'' id_device ] | ||
:''Optional'': an ISC/ICM id to link this group. Not mandatory when group type is "ISC cluster" (9) | :''Optional'': an ISC/ICM id to link this group. Not mandatory when group type is "ISC cluster" (9) | ||
;''Integer'' devicetype | ;''Integer'' devicetype | ||
- | : | + | :Group type. Can be one of <ul><li>Gateway - 1</li><li>Endpoint - 3</li><li>Trunk - 5</li><li>ISC cluster - 9</li></ul>''Note'': when no ''id_device'' is specified, the ''devicetype'' can only be "ISC Cluster" (9). |
;[ ''Long'' '''id_partition''' ] | ;[ ''Long'' '''id_partition''' ] | ||
- | :Partition Id | + | :Partition Id - Mandatory when current user is administrator. |
}} | }} | ||
Line 23: | Line 23: | ||
}} | }} | ||
- | { | + | {| class="wikitable collapsible" style="width: 100%;background-color:#EFEEFE;" border="1" |
- | }} | + | ! See Also |
+ | |- | ||
+ | | | ||
+ | [[ XIQS Add Device to SIP Device Group| addXIQSVoipDvcGroup ]]<br> | ||
+ | |} | ||
+ | |||
+ | {| class="wikitable collapsible" style="width: 100%;background-color:#EFEEFE;" border="1" | ||
+ | ! Example | ||
+ | |- | ||
+ | | | ||
+ | <font color="blue">Create GSM Device Group<br> | ||
+ | This command will create group of gsm devices (type=1), whose name is GsmDeviceGroupName which will use ISC with ID=21 on partition 3</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"><br> | ||
+ | <command tid="0001" name="<b> createXIQSVoipDvcGroup </b>"><br> | ||
+ | <param type="string">GsmDeviceGroupName</param><br> | ||
+ | <param type="long">21</param><br> | ||
+ | <param type="integer">1</param><br> | ||
+ | <param type="long">3</param><br> | ||
+ | </command><br><br> | ||
+ | <font color="green">[ANSWER (OK)]<br>Group created with ID=25</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"?><br> | ||
+ | <event type="return" tid="0001"><br> | ||
+ | <meta-data><br> | ||
+ | <meta-value><br> | ||
+ | <name>id</name><br> | ||
+ | <pos>1</pos><br> | ||
+ | </meta-value><br> | ||
+ | </meta-data><br> | ||
+ | <param type="long">25</param><br> | ||
+ | </event><br> | ||
+ | <br> | ||
+ | <font color="blue">Create Endpoint Group<br> | ||
+ | This command will create group of endpoints (type=3), whose name is EndpointGroupName. ISC ID is not important for this group type, so it is set to 0. Group is created on partition 3</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"><br> | ||
+ | <command tid="0002" name="<b> createXIQSVoipDvcGroup </b>"><br> | ||
+ | <param type="string"> EndpointGroupName </param><br> | ||
+ | <param type="long">0</param><br> | ||
+ | <param type="integer">3</param><br> | ||
+ | <param type="long">3</param><br> | ||
+ | </command><br><br> | ||
+ | <font color="green">[ANSWER (OK)]<br>Endpoint Group created with ID=17</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"?><br> | ||
+ | <event type="return" tid="0002"><br> | ||
+ | <meta-data><br> | ||
+ | <meta-value><br> | ||
+ | <name>id</name><br> | ||
+ | <pos>1</pos><br> | ||
+ | </meta-value><br> | ||
+ | </meta-data><br> | ||
+ | <param type="long">17</param><br> | ||
+ | </event><br> | ||
+ | <br> | ||
+ | <font color="blue">Create VoIP Trunk Group<br> | ||
+ | This command will create group of VoIP Trunks (type=5), whose name is VoIPTrunkGroupName. ISC ID is not important for this group type, so it is set to 0. Group is created on partition 3</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"><br> | ||
+ | <command tid="0003" name="<b> createXIQSVoipDvcGroup </b>"><br> | ||
+ | <param type="string"> VoIPTrunkGroupName </param><br> | ||
+ | <param type="long">0</param><br> | ||
+ | <param type="integer">5</param><br> | ||
+ | <param type="long">3</param><br> | ||
+ | </command><br><br> | ||
+ | <font color="green">[ANSWER (OK)]<br>VoIP Trunk Group created with ID=7</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"?><br> | ||
+ | <event type="return" tid="0003"><br> | ||
+ | <meta-data><br> | ||
+ | <meta-value><br> | ||
+ | <name>id</name><br> | ||
+ | <pos>1</pos><br> | ||
+ | </meta-value><br> | ||
+ | </meta-data><br> | ||
+ | <param type="long">7</param><br> | ||
+ | </event><br><br> | ||
+ | <font color="blue">Create ISC Cluster<br> | ||
+ | This command will create ISC Cluster (type=9), whose name is IscClusterName. ISC ID is not important can be set to 0 or this second parameter can be skipped. Group is created on partition 3<br> | ||
+ | Example with second parameter set to 0</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"><br> | ||
+ | <command tid="0004" name="<b> createXIQSVoipDvcGroup </b>"><br> | ||
+ | <param type="string"> IscClusterName </param><br> | ||
+ | <param type="long">0</param><br> | ||
+ | <param type="integer">9</param><br> | ||
+ | <param type="long">3</param><br> | ||
+ | </command><br> | ||
+ | <font color="blue">Example without second parameter</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"><br> | ||
+ | <command tid="0004" name="<b> createXIQSVoipDvcGroup </b>"><br> | ||
+ | <param type="string"> IscClusterName </param><br> | ||
+ | <param type="integer">9</param><br> | ||
+ | <param type="long">3</param><br> | ||
+ | </command><br><br> | ||
+ | <font color="green">[ANSWER (OK)]<br>ISC Cluster created with ID=22</font><br> | ||
+ | <?xml version="1.0" encoding="UTF-8"?><br> | ||
+ | <event type="return" tid="0004"><br> | ||
+ | <meta-data><br> | ||
+ | <meta-value><br> | ||
+ | <name>id</name><br> | ||
+ | <pos>1</pos><br> | ||
+ | </meta-value><br> | ||
+ | </meta-data><br> | ||
+ | <param type="long">22</param><br> | ||
+ | </event><br><br> | ||
+ | <br> | ||
+ | |} |
Latest revision as of 11:36, 15 January 2019
XIQS Create SIP Device Group - SIP Device Group Management
Description |
---|
|
Parameters |
---|
|
Return Values |
---|
|
See Also |
---|
Example |
---|
Create GSM Device Group |