MAPI Manual

NAME

UPDATE_ROUTER

FUNCTION

Update a router

SYNOPSIS

mcp_channeltype_id, router_name, router_workmode, router_type, gateway_assign_type, destlock_seconds, mcp_channeltype_funclass_id, isactive, priority

DESCRIPTION

This function allows admins to update a router.

Required Parameters

* action: UPDATE_ROUTER.

* mcp_channeltype_id: channel type. Available channel types are:

  • voice,
  • email,
  • sms,
  • CHANNELTYPE_LINKACTION,
  • CHANNELTYPE_TEXT2SPEECH.
* router_name: name of the router that need to be updated.

* router_workmode: work mode. Values are:

  • WORKMODE_NORMAL,
  • WORKMODE_SERVICE.

* router_type: type of the router. Values are:

  • MCPTYPE_UNIQUEID,
  • MCPTYPE_DESTEXPIRED,
  • MCPTYPE_UNIQUEIDBRIDGE.

* gateway_assign_type: type of how the router is associated with a gateway. Values are:

  • MCPTYPE_ASSIGN_BYSYS,
  • MCPTYPE_ASSIGN_BYSIM.
* destlock_seconds: specifies how long the router will be locked by seconds.
* mcp_channeltype_funclass_id:

* isactive: specifies whether the router is active or not.

  • 1: active;
  • 0: inactive.
* priority: a number specifying the priority of the router.

RETURN DATA

The response contains the following attribute:
* msg: Success or error message.

ROLE PERMITTED

Admin

EXAMPLES

The following example shows a successful HTTP GET request and response.

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=UPDATE_ROUTER&mcp_channeltype_id=voice&router_name=new%20voice%20router&router_workmode=WORKMODE_NORMAL&router_type=MCPTYPE_UNIQUEID&gateway_assign_type=MCPTYPE_ASSIGN_BYSYS&destlock_seconds=3600&mcp_channeltype_funclass_id=0&isactive=1&priority=1&login_name=admin@example.com&login_passwd=2222

Response:

<result tftype='1' infotype='0'>
    <field name='msg'>SUCCESS</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

ADD_ROUTER

Mweb v2.0 YVNTECH 2014