############################################################################
#                     3G-SIP BRIDGING DEMO CONFIGURATION FILE
############################################################################

############################################################################
#
# Stream Device: 
#		NONE - internal 3G-3G connection
#		dtiBxTy - external clear channel 3G connection
#                         (devices on different spans for external loopback)
#		IdtiBxTy - external ISDN 3G connection
#                          (devices on different spans for external loopback)
#		ipmBxCy - IPM devices used for Nup transport
#
# Map ID: Used to find the correct DS0 channel to accept an inbound 3G
#         connection.
#         With an ISDN Gateway based on Dialogic GlobalCall,
#         we use the GC device specification as an ID. 
#         In an external loopback mode, use the DS0 endpoint number.
#         In an internal loopback mode, Map ID is ignored.
#
# Audio/Video XCode: (T)TRANSCODE or (N)NATIVE.
#                    Used to designate Transcode mode between EP(tx) and 
#                    Local Peer(rx). (ie EP-->LocalPeer)
#                    Note: TRANSCODE only supported on platforms that support
#                    transcoding.  NATIVE is supported on all platforms    
#
# SIP devices: Even devices (e.g. iptB1T2, iptB1T4) are used for outbound
#              calls.  Odd devices (e.g. iptB1T1, iptB1T3) are used for
#              inbound calls.
# 
#  Endpoint  Control  Stream   Local Loopback   Map ID  Audio Video
#  Num Type  Device   Device   Peer  Peer               Xcode Xcode
############################################################################
#
# Configuration for a single inbound SIP-3G, external ISDN loop back to 
# a 3G-RTSP endpoint 
#
# Note that ISDN protocol must be set up on DNI board.  As with other ISDN
# loopback arrangements, one span must be user and the 2nd network.
# This configuration NOT valid on MMP.
#
# 3G endpoint paired with inbound SIP below
EP: 1 m3g    m3gB1T1  IdtiB1T1  3     0     3G-EP1      N     N
#
# 3G endpoint associated with an RTSP endpoint 
EP: 2 m3g    m3gB1T2  IdtiB2T1  4     0     3G-EP2      N     N
#
# Single SIP endpoint to take an inbound call
EP: 3 sip    iptB1T1  ipmB1C3   1     0        none     N     N
#
# Single RTSP endpoint
EP: 4 rtsp   none     ipmB1C4   2     0       none      N     N
#
#
###############################################################################

############################################################################
# Logging (ON/OFF):
############################################################################
LOG: ON
############################################################################

############################################################################
# SIP INFO DTMF (ON/OFF):
############################################################################
SIP_INFO_DTMF: OFF
############################################################################

############################################################################
# Board Parameters:
# Parameters M3G_E_PRM_XXXXXXXXXXXXX
############################################################################
# Activate UUI-RFC2833 DTMF translation
PRM: DIGIT_TO_MEDIA 1                   # M3G_E_PRM_RELAY_DIGIT_TO_MEDIA_DEV
PRM: DIGIT_TO_H245 1                    # M3G_E_PRM_RELAY_DIGIT_TO_H245UII
PRM: FASTUPDATE_TO_MEDIA 1              # M3G_E_PRM_RELAY_FASTUPDATE_TO_MEDIA_DEV
PRM: FASTUPDATE_TO_H245 1               # M3G_E_PRM_RELAY_FASTUPDATE_TO_H245
# PRM: SKEWINDICATION                   # M3G_E_PRM_SKEWINDICATION
# PRM: AUDIOVISUALSYNC                  # M3G_E_PRM_AUDIOVISUALSYNC
# PRM: RETRANSMIT_ON_IDLE 1             # M3G_E_PRM_RETRANSMIT_ON_IDLE
PRM: H245_TERMINAL_TYPE   127           # M3G_E_PRM_H245_TERMINAL_TYPE
# PRM: MAX_CCSRL_SEGMENT    255         # M3G_E_PRM_MAX_CCSLR_SEGMENT         
#### AMR payload formats: 1:=BW efficient   2:=octet aligned
# PRM: AMR_PAYLOAD_FORMAT    1          # M3G_E_PRM_AMR_PAYLOAD_FORMAT
PRM: PRM_VIDEO_BIT_RATE    42000        # M3G_E_PRM_VIDEO_BIT_RATE
#### Video frame rates: 0:=6fps  1:=10fps   2:=15fps
PRM: PRM_VIDEO_FRAME_RATE  2            # M3G_E_PRM_VIDEO_FRAME_RATE
# PRM: PRM_EARLY_MES         1          # M3G_E_PRM_EARLY_MES
# PRM: PRM_AUTO_VFU_PERIOD   5          # M3G_E_PRM_AUTO_VFU_PERIOD
# PRM: PRM_H223_SYNC_TIMER   10000      # M3G_E_PRM_H223_SYNC_TIMER
############################################################################


############################################################################
# Event Notification: 
# ENEV:=Enable    DSEV:=Disable
############################################################################
# ENEV: H245_UII_EVT
# ENEV: FASTUPDATE_EVT
# ENEV: TEMP_SPAT_TRDFF_EVT
# ENEV: VIDEO_FREEZE_EVT
# ENEV: SYNC_GOB_EVT
# ENEV: SKEW_INDICATION_EVT
ENEV: VERBOSE_MSD_EVT
ENEV: MES_EVTS_EVT
#ENEV: MONA_PREF_MSG_EVT
#ENEV: REMOTE_VENDORID_EVT
#ENEV: CALL_STATISTICS_EVT
############################################################################


############################################################################
# H223 SESSION:
# Default H223MuxLevel: L0  - Level0
#                       L1  - Level1 
#                       L1D - Level1 Double Flags
#                       L2  - Level2
#                       L2H - Level2 Optional Header
#                       L3  - Level3
#                       L3H - Level3 Optional Header
# Endpoints   Mux  MaxALSDU  WSNRP   MultipleMsgs         MONAEnabled
#             Lvl    Size   (T/F)     Per PDU (T/F)         (T/F)
############################################################################
HSES: 1-2     L2    1024      T          T                    T
############################################################################


############################################################################
# H223 Capabilities:
# Options:
# AL: AudioAL1  0x01          Bitrate: 320 or 640 (x 100bps)
#     AudioAL2  0x02
#     AudioAL3  0x04          MobileOpXmtCap:  none:         0x00
#     VideoAL1  0x08                           mode change:  0x01
#     VideoAL2  0x10                           AnnexA:       0x02
#     VideoAL3  0x20                           AnnexADblFlag 0x04
#                                              AnnexB        0x08
#     MaxAL2Size:0-64k                         AnnexBwHeader 0x10
#     MaxAL3Size:0-64k
# Endpoints   AL   AL2   AL3   AnxA   Dbl   AnxB    AnxB    RS   MblOp  Bit
#            (Hex) Size  Size  Frame  Flag  Frame    Hdr   Code   Xmt   Rate
############################################################################
HCAP: 1-2     12   512   512    T      T      T       T     T     T     600
############################################################################


############################################################################
# Terminal Capabilities:
# Endpoints    Capabilities (amr g723 h263 mpeg4 h264)
############################################################################
MCAP: 1-2     amr   h263 
############################################################################


############################################################################
# OpenLogicalChannel H223 Parameters:
#
# ALTypes: AL1_FRM
#          AL1
#          AL2_SEQ
#          AL2
#          AL3
#
# Endpoints  Audio  Video  Segmentable  Segmentable   AL3 Control  AL3 Send
#              AL     AL      Audio        Video       Field Size  Bufr Size
############################################################################
HOLC: 1-2    AL2    AL2        F            T             1          1024
############################################################################


############################################################################
# 3G Tracing Level:
#                  0x0000 - disable
#                  0x0001 - decoded H.245 messages
#                  0x0002 - raw H.223 multiplex bitstreams
#                  0x0004 - raw audio bitstreams
#                  0x0008 - raw audio bitstreams
#                  0x0010 - internal 3G module debug tracing
#                  0x0020 - 3G session statistics
#   
# Endpoints   Level     Filename
############################################################################
#ETRC: 1-2      31	../log/ep_3g_trace.txt
############################################################################
# Board       Level     Filename
############################################################################
#BTRC:         3F       bd_3g_trace.txt
############################################################################


############################################################################
# MPEG-4 Decoder Configuration Information (Tx to 3G peer):
# Mode:   1 - in-band DCI
#         2 - out-of-band DCI via H.245 OLC
#         3 - both inband and out-of-band
#
# Endpoints Mode DCI
############################################################################
#DCI: 1-2     3   000001b008000001b509000001000000012000845d4c282c2090a28f
############################################################################


############################################################################
# Vendor Identification:
# Type:   OID  - object identifier
#         H221 - H.221 NonStandard identifier
############################################################################
###  OID   OID              Product   Version
###                         Number    Number
VI:  OID   4469616c6f676963 4d4d50    322e30
#### H221  T.35      T.35    manufacturer    Product   Version
####      country    ext.      code          Number    Number
#VI: H221   b5        00        00           4d4d50    322e30
############################################################################


############################################################################
# SIP Endpoint Parameters
#
# Defines the SIP Local and Remote IP addresses -
# Stick with full IP address of the system (not local loopback) 
# For MMP, that would be eth6
#
# Although there may be multiple SIP endpoints, they all share the same
# IP and SIP Local (origin) and Remote (destination) addresses.
# Local "Origin" is the 3g-SIP gateway address/port
# Remote "Destination" is the MMDemo or other SIP endpoint address/port.  
# Can be same or different system.
#
# Local SIP Addr = <Phone#>@<Local IP Address>:<SIP Port> or 
#                  <Local IP Address> (where default SIP port=5062)
# Remote SIP Addr = <Phone#>@<Remote IP Address>:<SIP Port>
# 
#	 Local SIP Addr	   Remote SIP Addr
############################################################################
SIPINFO: 146.152.126.156   1000@146.152.126.156:5060   
############################################################################


############################################################################
# SIP Coders
# 
# SIPVID: h263 mpeg4 h264
# SIPAUD: amr g711u g711a g723 g729
#
# This features is only supported on releases that include video transcoding
# (ie, MMP2.0, MMK...)
# Note: Used for sip outbound calls, sip incbound calls defined by SIP sdp
#       To enable transcoding: Audio Xcode and Video Xcode are set in EP line 
############################################################################
SIPVID: h263
SIPAUD: amr
############################################################################


############################################################################
# IP Address and Port Info for Connect/Disconnect Commands
#
# This set of parameters is used when an external ISDN (or maybe SS7) gateway
# is used to front-end calls into the 3G-SIP gateway.  Connect and disconnect
# commands are sent via a UDP socket to the address specified using the local
# ports given here.
#
# If no gateway is used, but rather just an external loopback connection
# between two spans on the SIP-3G gateway system, specify the IP address of
# the gateway system.
#
# If internal loop mode is used, this parameter will be ignored.
#
#		Remote System IP Addr	Local Rcv Port	Local Send Port
############################################################################
CMDINFO:	192.168.1.117		40121		40121
############################################################################

######################################################################################################
# Multimedia Endpoints 
#
# Op - Operation (PLAY/RECORD) - what it does
# Digit - DTMF <0-9> which controls the Play/Record operation
#       - digit 0 must exist for default operation
# Typ - MM File Type (dmf, 3gp)
#       dmf = Dialogic MultiMedia Format(ie, hmp .vid/.aud 'proprietary') 
#       3gp = *.3gp file format (!system restrictions apply!)
# Aud - Audio codec in file (amr, pcm, g723...)
# Vid - Video codec in file (h263, mpeg4, h264)
# VRes - Video Resolution in file (qcif, cif, sqcif)
# VFR - Video Frame Rate in fps (6, 7(=7.5fps), 10, 15, 25, 30)
# VBR - Video Bit Rate in kbps (ex. 40=40kbps, 256=256kbps)
# File Names - separate audio/video with unique names for play and record
#
#   Digit Op      Typ Aud  Vid   VRes VFR VBR  Aud_Play_File      Vid_Play_File     Aud_Rec_File Vid_Rec_File
###########################################################################################################
MMINFO: 0 PLAY    dmf amr  h263  qcif 10  40  main_menu_amr.aud  main_menu_amr.vid rec.aud      rec.vid
#MMINFO: 1 PLAY    3gp amr  mpeg4  qcif 10  40  main_menu_m4v_amr.3gp  main_menu_m4v_amr.3gp  rec.aud      rec.vid
#MMINFO: 0 PLAY    dmf amr  h264  qcif 10  40  main_menu_h264_amr.aud  main_menu_h264_amr.vid  rec.aud      rec.vid
###########################################################################################################

############################################################################
#
# Only Needed if NBUP is used
#
# Make sure endpoints are defined before this entry, as it refers back to them
#
#               3G Endpoint  Nbup Dir   Remote Nbup IP Addr   Remote Nbup
#                                                              Port
############################################################################
#
# Here, Nbup connection is on the same system, on ports 40960 and 40962
#
#NBUPINFO:        1           S          192.168.1.117          40962
#NBUPINFO:        2           R          192.168.1.117          40960
############################################################################


############################################################################
# RTSP Endpoints
#
# Digit - Specifies the DTMF <0-9> used to command rtsp PLAY
# RTSP URL File - RTSP URL in the form rtsp://<RTSP Server Address>/<3gp filename>  
# 
# Note: When using 'Native' Xcode, coder in .3gp file must match m3g MCAP coder
#
#     Digit  RTSP File URL    
############################################################################
RTSPINFO: 0  rtsp://146.152.130.190/media0.3gp
#RTSPINFO: 1  rtsp://146.152.130.190/media1.3gp
#RTSPINFO: 2  rtsp://146.152.130.190/media2.3gp
#RTSPINFO: 3  rtsp://146.152.130.190/media3.3gp
#RTSPINFO: 4  rtsp://146.152.130.190/media4.3gp
#RTSPINFO: 5  rtsp://146.152.130.190/media5.3gp
#RTSPINFO: 6  rtsp://146.152.130.190/media6.3gp
#RTSPINFO: 7  rtsp://146.152.130.190/media7.3gp
#RTSPINFO: 8  rtsp://146.152.130.190/media8.3gp
#RTSPINFO: 9  rtsp://146.152.130.190/media9.3gp
###############################################################################################

