t1_e1_interfaces.save
Versioning Notes
This object and method were part of t1_e1_settings.save until version 1.1. For versions lower than this, combine the request parameters for these two requests into one and use the t1_e1_settings.save method.
Description
Save T1/E1 port configuration for one or more ports.
Arguments
name | required | value type | default |
---|---|---|---|
name | yes | string | port1, port2, et. Al |
line_type | no | t1, e1 | t1 |
description | no | string | Â |
framing | no | D4, ESF, CCS | ESF |
coding | no | B8ZS, AMI, HDB3 | B8ZS |
lbo | no | 0-7 | 0 |
crc4 | no | 0/1 | 0 |
echocancel | no | 0/1 | 1 |
rxgain | no | number with up to 1 decimal | 0 |
txgain | no | number with up to 1 decimal | 0 |
signaling | no | PRI, EM, EM_W, FEATD, FEATDMF, FEATB, FXS_LS, FXS_KS, FXS_GS, FXO_LS, FXO_KS, FXO_GS, MIXED | PRI |
signaling_role | no | net, cpe | cpe |
pri_switchtype | no | NATIONAL, NI1, DMS100, 4ESS, 5ESS, QSIG | national |
qsigchannelmapping | no | LOGICAL, PHYSICAL | PHYSICAL |
pri_dialplan | no | UNKNOWN, INTERNATIONAL, LOCAL, NATIONAL, DYNAMIC, PRIVATE | NATIONAL |
pri_nsf | no | NONE, SDN, MEGACOM, TOLLFREEMEGACOM, ACCUNET | NONE |
idle_bearer_reset | no | 0/1 | 1 |
pri_resetinterval | no | number | 3600 |
pri_overlapdial | no | NO, INCOMING, OUTGOING, BOTH | NO |
pri_inbanddisconnect | no | 0/1 | 0 |
pri_indication | no | 0/1 | 1 |
pri_facilityenable | no | 0/1 | 0 |
pri_exclusive | no | 0/1 | 0 |
pri_huntstrategy | no | ascending, descending | descending |
pri_discardremoteholdretrieval | no | 0/1 | 1 |
hidecalleridname | no | 0/1 | 0 |
layer_2_out_unack_iframes | no | number | 7 |
layer_2_num_frame_retransmit | no | number | 3 |
layer_2_frame_retransmit_time | no | number | 1000 |
layer_2_time_wo_frame_exch | no | number | 10000 |
disconnect_ack | no | number | 30000 |
release_ack | no | number | 4000 |
enable_maintain_calls_on_disconnect | no | 0/1 | 0 |
maintain_calls_on_disconnect | no | number | Â |
connect_ack | no | number | 3000 |
busydetect | no | 0/1 | 1 |
busycount | no | number | 3 |
busypattern | no | two numbers, comma delimited | 500,500 |
answeronpolarityswitch | no | 0/1 | 1 |
hanguponpolarityswitch | no | 0/1 | 1 |
polarityonanswerdelay | no | number | 600 |
prewink | no | number | 50 |
wink | no | number | 50 |
start | no | number | 1500 |
rxwink | no | number | 300 |
debounce | no | number | 600 |
toneduration | no | number | 100 |
ringtimeout | no | number | 8000 |
usecallerid | no | 0/1 | 1 |
cidsignaling | no | bell, v23, v23_jp, dtmf | bell |
cidstart | no | ring, polarity | ring |
waitfordialtone | no | 0/1 | 0 |
Example Requests & Responses
Example One
Request
Save T1/E1 port configuration for one or more ports.
{
    'method' => 't1_e1_interfaces.save',
    'parameters' => {
          'port2' => {
                       'pri_discardremoteholdretrieval' => 1,
                       'pri_overlapdial' => 'NO',
                       'pri_switchtype' => 'NATIONAL',
                       'coding' => 'B8ZS',
                       'maintain_calls_on_disconnect' => '-1',
                       'cidstart' => 'ring',
                       'preflash' => '50',
                       'wink' => '50',
                       'pri_resetinterval' => '3600',
                       'signaling' => 'PRI',
                       'pri_qsigchannelmapping' => 'PHYSICAL',
                       'usecallerid' => 0,
                       'flash' => '750',
                       'hidecalleridname' => 0,
                       'prewink' => '50',
                       'pri_exclusive' => 0,
                       'lbo' => '0',
                       'layer_2_out_unack_iframes' => '7',
                       'description' => 'port2',
                       'enable_maintain_calls_on_disconnect' => 0,
                       'layer_2_time_wo_frame_exch' => '10000',
                       'layer_2_num_frame_retransmit' => '3',
                       'answeronpolarityswitch' => 0,
                       'txgain' => '0',
                       'disconnect_ack' => '30000',
                       'pri_indication' => 1,
                       'pri_inbanddisconnect' => 0,
                       'pri_facilityenable' => 0,
                       'rxflash' => '1250',
                       'start' => '1500',
                       'polarityonanswerdelay' => '600',
                       'line_type' => 't1',
                       'framing' => 'ESF',
                       'idle_bearer_reset' => 1,
                       'echocancel' => 1,
                       'port_num' => '2',
                       'release_ack' => '4000',
                       'layer_2_frame_retransmit_time' => '1000',
                       'rxgain' => '0',
                       'debounce' => '600',
                       'cidsignaling' => 'bell',
                       'pri_localdialplan' => 'NATIONAL',
                       'crc4' => 0,
                       'rxwink' => '300',
                       'hanguponpolarityswitch' => 0,
                       'connect_ack' => '3000',
                       'pri_nsf' => 'NONE',
                       'pri_dialplan' => 'UNKNOWN',
                       'pri_huntstrategy' => 'descending',
                       'signaling_role' => 'NET'
                     },
            }
} |
Response
{
          'result' => 'success'
 } |
Or
{
          'result' => 'error',
          'error' => 'An Error String',
          'error_key' => 'AN_ERROR_LANGUAGE_KEY',
 } |