Available since version Softswitch 2022 and FreightSwitch 2022.

Older versions behavior is described in this documentation:

https://support.sippysoft.com/a/solutions/articles/3000099497


All applications below support trusted mode, i_customer should be supplied in that mode.


The application has an extension - TrunkConnections():

https://support.sippysoft.com/a/solutions/articles/3000116552


createTrunk()


This application is used to create a trunk.


Required parameters:
  • i_account - Id of an account the trunk belongs to. Integer.
  • name - a name of trunk. String


Optional parameters:


Returns:

  • result - OK - String.
  • i_trunk - Id of the newly created trunk. Integer.


  • XMLRPC fault in case of any error.

updateTrunk()


This application is used to update a trunk.


Required parameters:

  • i_trunk - Id of a trunk to update. Integer.

Optional parameters:
  • Any from createTrunk() except i_account.

Returns:
  • result - OK - String.
  • i_trunk - Id of the newly created trunk. Integer.


  • XMLRPC fault in case of any error.

deleteTrunk()


This application is used to remove a trunk.


Required parameters:

  • i_trunk - Id of a trunk to delete. Integer. 


Returns:

  • result - OK - String.
  • i_trunk - Id of the newly created trunk. Integer.


  • XMLRPC fault in case of any error.


getTrunkInfo()


This application is used to get a trunk detail.


Required parameters:
  • either i_trunk or i_connection


Optional parameters:

  • i_trunk - Id of a trunk. Integer.
  • i_connection - Id of the underlying connection. Integer. (from version 2025)


Returns:

  • result - OK - String.
  • trunk - Structure with trunk attributes.
  • trunk.connection_name - Connection name when i_connection is used. String. (from version 2025)
  • trunk.i_trunk_connection - Trunk connection id when i_connection is used. Integer. (from version 2025)


  • XMLRPC fault in case of any error.



getTrunksList()


This application is used to list trunks of an account.


Required parameters:
  • i_account - Id of an account the trunks belong to. Integer.


Optional parameters:

  • name_pattern - Pattern to filter trunks by name (SQL syntax for the ILIKE operator is used). String.

Returns:
  • result - OK - String.
  • trunks - Array of structures with trunk attributes.


  • XMLRPC fault in case of any error.