Ramal SIP - Clientes
https://host/webservice/v1/view_voip_sippeers_cliente
🟢Listar
{
"qtype" : "view_voip_sippeers_cliente.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "20",//quantidade de registros por página
"sortname" : "view_voip_sippeers_cliente.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/view_voip_sippeers_cliente' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data '{
"qtype" : "view_voip_sippeers_cliente.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "view_voip_sippeers_cliente.id",
"sortorder" : "desc"
}'🟠Inserir
// Some code{
"cliente_fantasia": "",
"numero": "",
"ativo": "",
"cliente_id": "",
"cliente_razao": "",
"descricao": "",
"port": "",
"callerid": "",
"regseconds": "",
"name": "",
"defaultuser": "",
"accountcode": "",
"fullcontact": "",
"ipaddr": "",
"regserver": "",
"useragent": "",
"context": "",
"lastms": "",
"numero_binagem": "",
"host": "",
"id_integracao": "",
"type": "",
"permit": "",
"deny": "",
"secret": "",
"remotesecret": "",
"transport": "",
"dtmfmode": "",
"directmedia": "",
"nat": "",
"callgroup": "",
"pickupgroup": "",
"language": "",
"disallow": "",
"allow": "",
"insecure": "",
"trustrpid": "",
"progressinband": "",
"promiscredir": "",
"useclientcode": "",
"setvar": "",
"amaflags": "",
"callcounter": "",
"busylevel": "",
"allowoverlap": "",
"allowsubscribe": "",
"videosupport": "",
"maxcallbitrate": "",
"rfc2833compensate": "",
"mailbox": "",
"session-timers": "",
"session-expires": "",
"session-minse": "",
"session-refresher": "",
"regexten": "",
"fromdomain": "",
"fromuser": "",
"qualify": "",
"defaultip": "",
"rtptimeout": "",
"rtpholdtimeout": "",
"sendrpid": "",
"outboundproxy": "",
"callbackextension": "",
"timert1": "",
"timerb": "",
"qualifyfreq": "",
"constantssrc": "",
"contactpermit": "",
"contactdeny": "",
"usereqphone": "",
"textsupport": "",
"buggymwi": "",
"auth": "",
"fullname": "",
"trunkname": "",
"cid_number": "",
"callingpres": "",
"mohinterpret": "",
"mohsuggest": "",
"parkinglot": "",
"hasvoicemail": "",
"subscribemwi": "",
"vmexten": "",
"autoframing": "",
"rtpkeepalive": "",
"call-limit": "",
"ignoresdpversion": "",
"allowtransfer": "",
"dynamic": "",
"id_contrato": "",
"id_sip": "",
"tarifa": "",
"gravacao_chamada": "",
"senha_ata": "",
"path": ""
}curl --location 'https://host/webservice/v1/view_voip_sippeers_cliente' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"cliente_fantasia": "",
"numero": "",
"ativo": "",
"cliente_id": "",
"cliente_razao": "",
"descricao": "",
"port": "",
"callerid": "",
"regseconds": "",
"name": "",
"defaultuser": "",
"accountcode": "",
"fullcontact": "",
"ipaddr": "",
"regserver": "",
"useragent": "",
"context": "",
"lastms": "",
"numero_binagem": "",
"host": "",
"id_integracao": "",
"type": "",
"permit": "",
"deny": "",
"secret": "",
"remotesecret": "",
"transport": "",
"dtmfmode": "",
"directmedia": "",
"nat": "",
"callgroup": "",
"pickupgroup": "",
"language": "",
"disallow": "",
"allow": "",
"insecure": "",
"trustrpid": "",
"progressinband": "",
"promiscredir": "",
"useclientcode": "",
"setvar": "",
"amaflags": "",
"callcounter": "",
"busylevel": "",
"allowoverlap": "",
"allowsubscribe": "",
"videosupport": "",
"maxcallbitrate": "",
"rfc2833compensate": "",
"mailbox": "",
"session-timers": "",
"session-expires": "",
"session-minse": "",
"session-refresher": "",
"regexten": "",
"fromdomain": "",
"fromuser": "",
"qualify": "",
"defaultip": "",
"rtptimeout": "",
"rtpholdtimeout": "",
"sendrpid": "",
"outboundproxy": "",
"callbackextension": "",
"timert1": "",
"timerb": "",
"qualifyfreq": "",
"constantssrc": "",
"contactpermit": "",
"contactdeny": "",
"usereqphone": "",
"textsupport": "",
"buggymwi": "",
"auth": "",
"fullname": "",
"trunkname": "",
"cid_number": "",
"callingpres": "",
"mohinterpret": "",
"mohsuggest": "",
"parkinglot": "",
"hasvoicemail": "",
"subscribemwi": "",
"vmexten": "",
"autoframing": "",
"rtpkeepalive": "",
"call-limit": "",
"ignoresdpversion": "",
"allowtransfer": "",
"dynamic": "",
"id_contrato": "",
"id_sip": "",
"tarifa": "",
"gravacao_chamada": "",
"senha_ata": "",
"path": ""
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/view_voip_sippeers_cliente/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"cliente_fantasia": "",
"numero": "",
"ativo": "",
"cliente_id": "",
"cliente_razao": "",
"descricao": "",
"port": "",
"callerid": "",
"regseconds": "",
"name": "",
"defaultuser": "",
"accountcode": "",
"fullcontact": "",
"ipaddr": "",
"regserver": "",
"useragent": "",
"context": "",
"lastms": "",
"numero_binagem": "",
"host": "",
"id_integracao": "",
"type": "",
"permit": "",
"deny": "",
"secret": "",
"remotesecret": "",
"transport": "",
"dtmfmode": "",
"directmedia": "",
"nat": "",
"callgroup": "",
"pickupgroup": "",
"language": "",
"disallow": "",
"allow": "",
"insecure": "",
"trustrpid": "",
"progressinband": "",
"promiscredir": "",
"useclientcode": "",
"setvar": "",
"amaflags": "",
"callcounter": "",
"busylevel": "",
"allowoverlap": "",
"allowsubscribe": "",
"videosupport": "",
"maxcallbitrate": "",
"rfc2833compensate": "",
"mailbox": "",
"session-timers": "",
"session-expires": "",
"session-minse": "",
"session-refresher": "",
"regexten": "",
"fromdomain": "",
"fromuser": "",
"qualify": "",
"defaultip": "",
"rtptimeout": "",
"rtpholdtimeout": "",
"sendrpid": "",
"outboundproxy": "",
"callbackextension": "",
"timert1": "",
"timerb": "",
"qualifyfreq": "",
"constantssrc": "",
"contactpermit": "",
"contactdeny": "",
"usereqphone": "",
"textsupport": "",
"buggymwi": "",
"auth": "",
"fullname": "",
"trunkname": "",
"cid_number": "",
"callingpres": "",
"mohinterpret": "",
"mohsuggest": "",
"parkinglot": "",
"hasvoicemail": "",
"subscribemwi": "",
"vmexten": "",
"autoframing": "",
"rtpkeepalive": "",
"call-limit": "",
"ignoresdpversion": "",
"allowtransfer": "",
"dynamic": "",
"id_contrato": "",
"id_sip": "",
"tarifa": "",
"gravacao_chamada": "",
"senha_ata": "",
"path": ""
}curl --location --request PUT 'https://host/webservice/v1/view_voip_sippeers_cliente/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"cliente_fantasia": "",
"numero": "",
"ativo": "",
"cliente_id": "",
"cliente_razao": "",
"descricao": "",
"port": "",
"callerid": "",
"regseconds": "",
"name": "",
"defaultuser": "",
"accountcode": "",
"fullcontact": "",
"ipaddr": "",
"regserver": "",
"useragent": "",
"context": "",
"lastms": "",
"numero_binagem": "",
"host": "",
"id_integracao": "",
"type": "",
"permit": "",
"deny": "",
"secret": "",
"remotesecret": "",
"transport": "",
"dtmfmode": "",
"directmedia": "",
"nat": "",
"callgroup": "",
"pickupgroup": "",
"language": "",
"disallow": "",
"allow": "",
"insecure": "",
"trustrpid": "",
"progressinband": "",
"promiscredir": "",
"useclientcode": "",
"setvar": "",
"amaflags": "",
"callcounter": "",
"busylevel": "",
"allowoverlap": "",
"allowsubscribe": "",
"videosupport": "",
"maxcallbitrate": "",
"rfc2833compensate": "",
"mailbox": "",
"session-timers": "",
"session-expires": "",
"session-minse": "",
"session-refresher": "",
"regexten": "",
"fromdomain": "",
"fromuser": "",
"qualify": "",
"defaultip": "",
"rtptimeout": "",
"rtpholdtimeout": "",
"sendrpid": "",
"outboundproxy": "",
"callbackextension": "",
"timert1": "",
"timerb": "",
"qualifyfreq": "",
"constantssrc": "",
"contactpermit": "",
"contactdeny": "",
"usereqphone": "",
"textsupport": "",
"buggymwi": "",
"auth": "",
"fullname": "",
"trunkname": "",
"cid_number": "",
"callingpres": "",
"mohinterpret": "",
"mohsuggest": "",
"parkinglot": "",
"hasvoicemail": "",
"subscribemwi": "",
"vmexten": "",
"autoframing": "",
"rtpkeepalive": "",
"call-limit": "",
"ignoresdpversion": "",
"allowtransfer": "",
"dynamic": "",
"id_contrato": "",
"id_sip": "",
"tarifa": "",
"gravacao_chamada": "",
"senha_ata": "",
"path": ""
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/view_voip_sippeers_cliente/5
curl --location --request DELETE 'https://host/webservice/v1/view_voip_sippeers_cliente/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data ''Last updated