FILE : SA_R2_O.CDP COUNTRY : Saudi Arabia PROTOCOL : Saudi Arabia R2 protocol - Outbound USES : R2_OUT.LOD built from PDK-R2-v12 @0 : "R2_OUT.LOD" ***************************************** $100 set: 1 %01 q_nfrm : 2 %02 q_snr0 : 1 %03 q_snr1 : 1 %04 q_b0 : 1 %05 q_b1 : 1 %10 q_minfrm : 2 ****************************** * TID # 141 800Hz * ****************************** ;$141 TN_800 : 800 35 ;%01 cadence : 0 ****************************** * TID # 101 DIAL * ****************************** ;$101 DIAL : 450 35 ;%01 cadence : 60 ****************************** * TID # 103 BUSY * ****************************** ;$103 BUSY : 450 35 ;%01 cadence : 50 10 50 10 ;%02 cycle : 2 ****************************** * TID # 104 SBUSY * ****************************** ;$104 SBUSY : 450 35 ;%01 cadence : 25 5 25 5 ;%02 cycle : 3 ****************************** * TND # 105 RINGBACK * ****************************** ;$105 RINGBACK : 450 35 ;%01 cadence : 80 ****************************** * TNG # 103 BUSY * ****************************** @103 BUSY : 450 -12 %01 cadence : 50 50 ****************************** * TNG # 141 800Hz * ****************************** @141 800Hz : 800 -12 %01 cadence : 0 ;******************** ;***** OUTBOUND ***** ;******************** $20 WAITDIAL wait acknowledge (outbound calls) (10ms) : 400 time to wait for seizure acknowledgement after seizure is sent. If timer expires then protocol error, GCEV_DISCONNECT sent to application. $20.16 BLOCKTIM intercall time (outbound) (10 ms) : 60 Wait minimum time to be idle between two calls. $21 MAXRING number of ring before no answer (outbound) : 5 If parameter $105 is set to detect ringback, then this is used as the number of rings before GCEV_CALLSTATUS is returned. If $105 not defined then this parameter does not apply. $21.16 INTRRING maximum inter ring to detect answer (outbound)(10ms, 0 to disable) : 0 For using call progress. If the time between two rings is too long then protocol module will return connect. $22 DIGTIM timeout for outbound compelled cycle. (s) : 5 (Outbound) Timeout value for compelled cycle. $22.16 INTRDIGTIM timeout between digit for outgoing calls (s) : 10 (Outbound) Maximum time to wait for the leading edge of a backward tone before protocol error. $23 OUTGUARD maximum time for call progress (outbound) (s) : 80 $25 F_OUT outbound calls supported : 1 $25.1 F_I15 send I15 if more digit are requested : 1 (Outbound) send I15 if past lenght of DDI. $25.2 F_I12 send I12 in case of bad tone : 1 (Outbound) In all states respond to unexpected tone with I12. $25.3 F_OUTIDLE return to idle after caller disconnection : 0 (Outbound) If set, the protocol doesn't support re-answer and disconnects immediately upon receiving a disconnection from the network : DTI_DISCONNECT is set and CCEV_DISCONNECTED is sent. DropCall need still to be called by Application. See parameter $35. ; These are tests that were used for test procedures. $25.6 F_BLOCKING Send Blocking if NT is blocking : 0 (Inbound and outbound) If protocol is in blocking state If set to 0: and application requests transition to idle state, send idle immediately even if the CO is in the blocking state. If set to 1: wait to receive idle from the CO before transitioning to the idle state. Should only be used with outbound. (CCITT : move to AfBf = 11 when receive AbBb = 11) $25.8 NOCOANSWER No COanswer state protocol : 0 (Outbound) Do not expect answer line signal from the CO. Something for Australia. $25.9 NO_SEIZUREACK : 0 (Outbound) Set to 1 if protocol does not wait for a seizure ack In this case WAITDIAL is the time befor dialing $25.15 PRIORITY_2_OUT : 0 (Outbound) When DBLSeizure, do not accept inbound call. If dblseizure is received and not seizure ack, start 100 ms timer. If seizure ack received during this timer, resume outbound call. Otherwise, protocol error (normal situation) $25.16 DBLSEIZE When DBLSEIZE, accept the inbound call : 0 (outbound). If set to 1, when glare (receiving a SEIZURE and not a SEIZURE ACK after sending a SEIZURE), stop outbound protocol and continues protocol with inbound call. If set to 0, protocol error. Applies only for protocol which are inbound AND outbound ( Otherwise, we should never receive a glare). Set to 0 in other conditions ( either only inbound or only outbound). Inbound protocol will only continue if other side continues its outbound protocol ... $25.17 DTAWINK Forced release detection : 0 (Outbound) If NT_DISCONNECT is detected in connected state, send CCEV_DISCONNECTED event (do not set DTI_DISCONNECT before receiving DropCall) Only used if OUTIDLE is 0 $25.18 FORCEDREL1 Consider bit changes !NT_ACK as forcedrelaa : 0 (Outbound) when waiting an answer in makingcall $25.19 MET1 Metering pulse is NT_DISCO - NT_IDLE : 0 (Outbound) $25.20 MET2 Metering pulse is NT_DISCO - NT_ANSWER : 1 (Outbound) $25.21 FORCEDREL2 access forcedrel if NT_FORCEDREL is received : 0 (Outbound) for instance Tchequia $25.22 ONHOLD unhold is NT_DISCONNECT - NT_ANSWER : 0 (Outbound) for instance FI, AU, Indonesia $25.23 FORCEDREL3 consider bit changes !NT_ANSWER (UNHOLD) as a : 0 (Outbound) forcedrel if it comes after a onhold ; OUTBOUND Group A tones ( <- ) (See also 25) ;------------------------------ $26 F_GTDNP1 Send n+1 (CO asks to send n+1) : 1 Receiving an An means to send next DDI $26.4 F_GTDNM1 Send n-1 : 2 $26.8 F_GTDNM2 Send n-2 : 7 $26.12 F_GTDNM3 Send n-3 : 8 ; all x26 parameters have been implemented in such a way ; they work also with ANI (even it is not the case in " normal R2 protocols) $26.16 F_GTDFIRST Send First : 0 Restart sending DDI string from the first digit (non CCITT R2) $26.20 Switch to Group II : 3 Receive this tone (A3 in CCITT R2) and send calling party category, change to group B interpretation and don't switch back. If set to 0, never detect the "switch to Group II" and we expect to detect $820. $26.24 F_GTDSPEECH Speech : 6 Receive this tone (A6 in CCITT R2) and don't send any other tone, just wait for answer line signaling. ; $26.20 and $26.24 can not be set both to 0; ; otherwise, not possible to specify the ; "go to seech mode" ( = A6 or A3 - B6 in CCITT R2) $26.28 F_GTDREJECT Congestion : 4 Receive this tone ( A4 in CCITT R2) to represent congestion. ; OUTBOUND Group A B or C tones ( <- ) ;------------------------------ $27.0 F_GTDNN Resend current digit (OUT) : 0 Group A (non CCITT R2) $27.4 F_TONEANI_OUT Tone for ANI request (OUT) : 5 Tone to request ANI and ANI n + 1 (A5 in CCITT R2) $27.8 F_TONECAT_OUT Tone for category (OUT) : 5 Tone to request for category before requesting ANI (A5 in CCITT R2) $27.12 F_GTDNOCH (outbound) no charge supported : 7 Group B. Receive this tone (CCITT R2 : B7) if calls are not charged. $27.20 Outbound tone to swict back to group A + sending digit N + 1 : 1 $27.24 Outbound tone to swict back to group A + sending digit N : 0 ; OUTBOUND GROUP B TONES ( <- ) ;------------------------------ $28 OUTBOUND Group B Busy F_GTDBUSY : 4 Backward tone Bn for busy. Set mask for backward tones to receive for busy condition. It is possible to specify more than 1 tone (ored together in the mask) like : B1 0x0001 B2 0x0002 B3 0x0004 B1 and B3 0x0005 .... ( CCITT R2 : set it to 4, meaning B3) $28.16 OUTBOUND Group B Congest F_GTDCONGESTION : 8 Mask. Bn backward tone represents congestion. ( CCITT R2 : set it to 8, meaning B4) $29 OUTBOUND Group B Unalloc F_GTDUNAL : 16 Mask. Bn tone represents unallocated number. ( CCITT R2 : set it to 16, meaning B5) $29.16 Group B tones considered as Good tones F_GTDBGOOD : 32 (Outbound) ; Receiving this Group B tone is OK to go to connection ; - B6 - : 0x0020 -> 32 ; (1 bit per tone) ; This parameter will be overwritten by parameters 28 to 29). ; Parameters not defined in 22, 23, 24 and 26 are considered as ; BadTones ;OUTBOUND Group II signals ;------------------------- Type of line tone to send SIGII_N $30 F_GTGNORM Normal : 1 ( CCITT R2 - II 1) $30.4 F_GTGPRIO Priority : 2 ( CCITT R2 - II 2) $30.8 F_GTGMAIN Maintenance : 3 ( CCITT R2 - II 3) $30.12 F_GTGOPER Operator : 5 ( CCITT R2 - II 5) $31 DISCSUPERV timeout after B disconnection before release (outbound) (s): 60 (Outbound) ; ONHOLD event is generated after DISCONNECT pattern has been received. ; if the other party reanswers the call, receives an UNHOLD event + ; stop the timer. DISCONNECT event sent after this timeout ; Timers for protocols using Dialtone ;------------------------------------ $32 WAITDTONE wait for dial tone ( 0 to disable) : 0 ; (outbound) .For Belgium + Mercury,... Protocol : max time in sec to receive ; a dialtone . Before protocol error $32.16 WAITPROCEED Delay before proceed (sec) : 0 (outbound) . Only used in Mercury deviation. Max wink receive length (otherwise protocol error) ;******************************************* ;***** INBOUND and OUTBOUND PARAMETERS ***** ;******************************************* $40 F_DIAL_OUT outbound 0=MFC, 1=DTMF, 2=PULSE, 3=R1 : 0 ; toneset for dialing $40.16 DEVIATION Specific deviation : 0 ; BELGIUM : 1 ; CHINA : 12 ; T1 : 4 ; MERCURY : 5 ; SOUTH-AFRICA : 20 ; other : 0 $41 WAITIDLE wait for idle (s) : 10 (Inbound and Outbound) After disconnecting the time to wait to receive idle from the network. If timer expires a protocol error is returned. ; TEST PROCEDURES ;---------------- $42.0 F_CCITT CCITT test procedure supported : 0 (Inbound and Outbound) $42.1 F_ISRAEL Israelian test method supported : 0 (Inbound and Outbound) $42.2 CONTINOUS_800 : 0 (Inbound) Used in Israelian test method $42.4 F_GTDCCITT Tone for CCITT test : 13 (Inbound) ; 12.5 to 12.7 are reserved ; RAI Mask ---------- $43 RAIMSK : 0 use decimal value representing the sum of one or more of the following: (use this parameter for D/300SC-E1 only) 43.0 :Receive loss of sync 43.1 :Receive unframed all ones 43.3 :Frame sync error 43.5 :Receive remote alarm 43.6 :Error count saturation 43.7 :Bipolar violation count saturation 43.8 :Receive loss of signal 43.9 :Driver performance monitor 43.10 :Multi-frame sync error 43.12 :Received signaling all 1's 43.13 :Received distant multi-frame alarm 43.14 :CRC4 error count saturation ; Metering pulses definition ;---------------------------- $45.0 WINKLEN wink length (Finnish and T1 deviation) (10ms) : 15 Wink length for transmitting wink. Only for protocols using winks. ; Different debounce time ------------------------- $46 Debounce ON :2 $46.8 Debounce OFF : 2 $46.16 WINKMIN minimum wink duration for wink detection (10ms) : 0 $46.24 WINKMAX maximum wink duration for wink detection (10ms) : 0 ; Country dependent masks ------------------------- ;$47 CHINAMASK Chinese protocol bit mask (inbound) : 39 ; Only used if Deviation = China is used. Otherwise use next $47 param. 47.0: A3 must always be sent in pulse form (200ms) 47.1: detect service calls ("1XY" instead of "(R)PQABCD") 47.2: accept KC as first local phone number digit "(KC)(R)PQABCD" 47.3: accept KE as first local phone number digit "(KE)(R)PQABCD" 47.4: first local phone number digit is repeated "[KC|P]PQABCD" or "[KC|R]RPQABCD" (not compatible with Bit 2 & 3 47.5: skip initial 0 before area code if any "(0)X1X2..." 47.8 AREASIZE area code size excluding leading '0' (China)(0=no area code)(inbound) : 2 47.9 to 47.15 reserved ; Only used if Deviation = China is used. Otherwise use previous $46 param. ;$47 ZASELECTION protocol option mask : 0 47.0 : if set, A4 can be used to reject the call if not set, call rejection is done with A6 + busy tone generation 47.1 : if set, use Pulse Answer mode (USE ZA_DTI_P.PRM!!!) if not set, use Answer/Clear-back mode or Pulsed Clear-back Mode Note: this bit should always be 0 when connected to the network. The answer mode choice is provided only in for testing the outbound side of the protocol. When a pulsed mode is choosen, parameter $47 should be different from 0. $48 TESTNUMBER test number for Belgian Test method : "1600" ; not needed $49 CALLINGNB Calling party number: "700" $50 bits set and cleared for NT BLOCKING : "-1--" $51 bits set and cleared for NT IDLE : "10--" $52 bits set and cleared for NT SEIZURE : "00--" $53 bits set and cleared for NT DISCONNECT : "11--" $54 bits set and cleared for NT ACKNOWLEDGE: "11--" $55 bits set and cleared for NT ANSWER : "01--" $56 bits set and cleared for NT BAD CODE : "-0--" $57 bits set and cleared for NT FORCED RELEASE:"00--" $58 bits set and cleared for NT OTHER BITS : "--01" @50 bits set and cleared for DTI BLOCKING : "1101" @51 bits set and cleared for DTI IDLE : "10--" @52 bits set and cleared for DTI SEIZURE : "0---" @53 bits set and cleared for DTI DISCONNECT : "1---" @54 bits set and cleared for DTI ACKNOWLEDGE: "11--" @55 bits set and cleared for DTI ANSWER : "0---" @56 bits set and cleared for DTI START : "1101" @57 bits set and cleared for DTI FORCEDREL : "00--"