create_sip_account
Set up a SIP account with configurable features like caller ID, number rewriting, DID info, IP restrictions, call duration limits, concurrent call limits, and maximum call costs for secure and efficient communication.
Instructions
Creates a new SIP account
Args: password: Password to be used for this SIP account callerid: CallerID associated with this SIP account label: label fot this SIP account rewrite_enabled: do SIP account have calling number rewriting rule rewrite_cond: prefix to be rewrited (ex: 00) rewrite_prefix: prefix to what should be rewritten (ex: 44) didinfo_enabled: do DIDLogic will attempt send DID number as TO when receiving calls to this account ip_restrict: do we need to allowlist IP addresses for this account call_restrict: flag indicates what SIP account should have maximum call time call_limit: maximum call duration in seconds channels_restrict: flag indicates what SIP account should have maximum channels limit max_channels: maximum sip channels cost_limit: flag indicates what SIP account should have maximum call cost max_call_cost: maximum call cost for this SIP account
Returns a JSON object with SIP account details where: id: ID of SIP account name: SIP account name (login) callerid: CallerID associated with this SIP account label: label fot this SIP account charge: charge for calls on this month talk_time: total talk time for this month rewrite_enabled: do SIP account have calling number rewriting rule rewrite_cond: prefix to be rewrited (ex: 00) rewrite_prefix: prefix to what should be rewritten (ex: 44) didinfo_enabled: do DIDLogic will attempt send DID number as TO when receiving calls to this account ip_restrict: do we need to allowlist IP addresses for this account allowed_ips: IP addresses allowed for this SIP account call_restrict: flag indicates what SIP account should have maximum call time call_limit: maximum call duration in seconds channels_restrict: flag indicates what SIP account should have maximum channels limit max_channels: maximum sip channels cost_limit: flag indicates what SIP account should have maximum call cost max_call_cost: maximum call cost for this SIP account created_at: date of creation this SIP account
Example:
Input Schema
Name | Required | Description | Default |
---|---|---|---|
call_limit | No | Maximum call duration for SIP account in seconds | |
call_restrict | No | Enable call duration limit for SIP account | |
callerid | No | Callerid for use with this SIP account | |
channels_restrict | No | Enable concurrent calls limit | |
cost_limit | No | Enable maximum call cost for SIP account | |
didinfo_enabled | No | Enable DID number in inbound calls | |
ip_restrict | No | Enable IP restriction for SIP account | |
label | No | Label for SIP account | |
max_call_cost | No | Maximum call cost for SIP account | |
max_channels | No | Count of concurrent calls limit | |
password | Yes | Password for new SIP account | |
rewrite_cond | No | Prefix to remove from number | |
rewrite_enabled | No | Enable number rewriting for calls | |
rewrite_prefix | No | Prefix to add to number |