To disable auto registration for any of the port set Sid 0 or Sid1 to 0 or empty. This will disable the port and not attempt a registration with CM. If you want to manually add the port in CM, put Sid0 or Sid1 as the mac-address of the appropriate port.
Archive for the ‘ATA186’ Category
To have the ATA prepend Tech prefix for outgoing calls, do the following
1. AutMethod = 0×00000004
2. PWD0 = 1#
New ATA’s support trunking and understand Voice VLAN via CDP. So you can configure the ports like IP Phone ports
MGCP IOS gateway and ATA 186 in H323 mode – Fax Passthrough configuration
Posted: May 28, 2006 by sankar in Analog, ATA186, Fax1. Configure MGCP gateway as usual (with FXS ports).
2. Give the following commands
no ccm-manager fax protocol — disables cisco fax relay
mgcp modem passthrough voip mode nse — enables modem passthrough
mgcp modem passthrough voip codec g711ulaw
MGCP default NSE payload types
Output of "Sh mgcp"
MGCP media bind
ISABLED
MGCP Upspeed payload type for G711ulaw: 0, G711alaw: 8 (You may opt to match this up with ATA NSE payload type)
MGCP Dynamic payload type for G.726-16K codec
MGCP Dynamic payload type for G.726-24K codec
3. Optionally you may want to disable T38 fax relay for MGCP (which is enabled by default)
mgcp fax t38 inhibit. (Useful if you want to just have passthrough enabled, and disable t38 fax on the gateway)
Fax pass through – Set audio mode to 0×00150015
Fax mode – (Use direct g711 only, it doesn't do any codec upspeed.) – Set audiomode to 0×00120012
12 – corresponds to 0001 0010
bit 1 – set to 1 for g711 only
bit 2 – set to 0 to disable CED
DSCP settings for H323 and MGCP gateways
Posted: May 28, 2006 by cciestudy in Analog, ATA186, Fax, QOSThe setting below applies to packets generated by teh router itself.
For H323 gateways
Default for signaling is af31 (26). Need to change this to cs3 (24).
dial-peer voice 1500 voip
ip qos dscp cs3 signaling
For MGCP gateways
mgcp ip qos dscp cs3 signaling
To enable fax passthrough in a H323 IOS gateway: (This can be given under a dial peer or globally under voice service voip mode)
Global mode:
1. modem passthrough nse [payload-type number] codec {g711ulaw|g711alaw} [redundancy] [maximum-sessions <value>]
* Payload-type default : 100 for IOS gateways (Set this to same for all other gateways)
* Codec should be g711ulaw for fax sent over a t1 trunk or g711alaw for fax sent over a e1 trunk
* redundancy – enables fax redundancy. Set this parameter to be same at both ends
* max sessions – defines how many fax calls can occur simultaneously. Default is 16. Valid values 1 – 26.
2. Disable Fax relay – Fax relay is enabled by default and takes precedence over Passthrough.
fax rate disable
3. If you gave the modem passthrough setting under voice service voip mode, then you need to give the following command in dial-peer mode.
dial-peer voice 1 voip
modem passthrough system
Dial-peer mode: (2 steps)
If you choose not to apply the modem passthrough settings in global mode, dial-peer voice 1 voip
fax rate disable
modem passthrough nse codec g711ulaw
To enable Fax passthrough in a Cisco IOS MGCP gateway
no ccm-manager fax protocol cisco
mgcp modem passthrough voip mode nse
mgcp modem passthrough voip codec g711ulaw|g711alaw.
H323 – ATA fax passthrough setting – recommendations
Posted: May 27, 2006 by sankar in Analog, ATA186, FaxAudiomode - 0×00150015
0000 0000 0001 0101 (last 4 hex digits represents phone 1)
Bit 0 – 1 enables VAD
Bit 2 – 1 enables fax CED tone detection
Connect mode : 0×90000400
1001 0000 0000 0000 0000 0100 0000 0000
Bits 12 – 8 represent NSE payload type offset. Default NSE payload type is 100 for ATA which means the offset is set to 4 (00100). IOS H323/SIP gateways use NSE payload type 100. Most MGCP gateways using 6608 uses NSE payload type 101. So set the offset to 5 (00101) if setting up fax between ATA and 6608 (older versions)
Bits 13 – default 0 – represents fax pass through codec. 0 means g711ulaw, 1 means g711alaw.
To use fax in countries other than US, set
Connect mode : 0×90002400
**** key things to remember about interoperability of various AVVID fax components******
If a VG248, Cisco IOS router, MGCP gateway and ATA 186 is involved in faxing. Then set the NSE payload type to 100 (IOS Mode) in all devices. In VG248 set to IOS mode. In router by default NSE payload type is 100 (for modem passthrough). In MGCP IOS gateway (need to check). In 6608 set the mode to IOS mode. In ATA 186, default NSE payload type is 96 + offset of 4 = 100.
LBRCodec:
If LBRCodec is set to 0, ATA chooses g723.1 as the Low bit rate codec. (You can have up to 2 calls on the ATA at g723.1)
If LBRCodec is set to 3, ATA chooses g729 as the Low bir rate codec (Only one call can be there on the ATA at g729). The allocation of g729 to either ports is dynamic. (Unlike SCCP, where the Connect mode bit 21 determines which port will use g729)
Audiomode
Audiomode has 32 bits. First 16 bits set parameters for Phone port 1, Upper 16 bits set parameters for Phone port 2.
Default : 0×00150015
0000 0000 0001 0101 0000 0000 0001 0101
Bit 0 and 16 – Disable VAD (0 – Disable, 1 – Enable)
Bit 1 and 17 – if set to 1, enable g711 only. If set to 0 Enable LBR along with g711.
Bit 2 and 18 – if set to 1 enables fax CED tone detection
TxCodec:
To specify transmit audio codec preference
0 – g723 (only if LBRCodec is 0)
1 – g711alaw
2 – g711ulaw
3 – g729a (only if LBRCodec is 3)
RxCodec
0 – g723 (only if LBRCodec is 0)
1 – g711alaw
2 – g711ulaw
3 – g729a (only if LBRCodec is 3)
When in H323 mode, to place a call from Port 1 to port 2 the ATA should be configured as below.
1. Using gatekeeper
2. Using Callmanager as the gateway
3. Using an IOS gateway with h323-to-h323 hairpinning enabled
Networking ATA, Callmanager and Voice gateway with FXS (phones)
Posted: May 26, 2006 by sankar in Analog, ATA186, Gatekeeper, Gateways, IOS GatewaysSetup :
a. Callmanager 4.1 with IP phone extension 1005 (Callmanager IP 192.168.1.200)
b. ATA 186 with H323 load , 2 phones with extension 2000, 2001 (ATA IP 192.168.1.46)
c. H323 gateway with FXS ports with phone extension 3010, 3011 (Gateway IP 192.168.1.202)
d. Gatekeeper with 3 zones created (one for CM, one for gateway and one for ATA) (GK IP 192.168.1.201)
******Key things to note about GK registration*******
a. ATA register with GK as Terminal
b. H323 gateway registers with GK as Voip-GW
c. Callmanager can be registered to the GK as Voip-GW or Terminal (Trunk configuration page)
d. GK uses proxying between Terminals and Voip-GW's. So take special note to disable proxy from each zone that involes a Terminal and Voip-GW.
Configuration of ATA
a. Use E164 numbers in UID0 and UID1.
b. No need to set Login ID's if using E.164 numbers for GK registration
c. Specify the GKID field with the zone name (with out domain name)
d. Specify the GKOrProxy field with the IP address of the gatekeeper (192.168.1.201)
e. ATA cannot specify a tech prefix (as it registers as a terminal)

Configuration of GK
GateKeeper#sh gatek end
GATEKEEPER ENDPOINT REGISTRATION
================================
CallSignalAddr Port RASSignalAddr Port Zone Name Type F
————— —– ————— —– ——— —- –
192.168.1.46 1721 192.168.1.46 1739 ATA TERM
ENDPOINT ID: 8232D55C00000001 VERSION: 2 age= 233 secs
E164-ID: 2001
192.168.1.46 1720 192.168.1.46 1719 ATA TERM
ENDPOINT ID: 82609CF000000002 VERSION: 2 age= 233 secs
E164-ID: 2000
192.168.1.200 55419 192.168.1.200 53824 CM41 VOIP-GW
ENDPOINT ID: 824FC0F400000004 VERSION: 2 age= 18 secs
H323-ID: CCM_1
192.168.1.202 1720 192.168.1.202 50439 gateway VOIP-GW
ENDPOINT ID: 8230A09400000004 VERSION: 2 age= 40 secs
H323-ID: 192.168.1.202
E164-ID: 3011
E164-ID: 3010
Total number of active registrations = 4
GateKeeper#
Gateway Configuration
interface Ethernet0/0
ip address 192.168.1.202 255.255.255.0
half-duplex
h323-gateway voip interface
h323-gateway voip id gateway ipaddr 192.168.1.201 1719
h323-gateway voip h323-id Gateway
h323-gateway voip tech-prefix 1#
dial-peer voice 1 pots
destination-pattern 3010 —– phone 1
port 1/0/0
!
dial-peer voice 2 pots
destination-pattern 3011 —– phone 2
port 1/0/1
dial-peer voice 10 voip
destination-pattern 1… —— Pattern for calls to Callmanager , No need to prepend tech prefix as 4# is default tech prefix
session target ras
dtmf-relay h245-alphanumeric
codec g711ulaw
!
dial-peer voice 10 voip
destination-pattern 2… ——- Pattern for Calls to ATA, No need for tech prefix as ATA registers to GK as terminal
session target ras
dtmf-relay h245-alphanumeric
codec g711ulaw
!
gateway
Configuration of Callmanager

a. Add a gatekeeper (with GK's ip address, 192.168.1.201)
b. Add a Trunk (Gatekeeper controlled) and specify tech prefix 4#, the gatekeeper that was previously added, Terminal type (VOIP-GW or Terminal) and zone name (CM41)
c. Set the significant digits on incoming calls to All.
d. Add a route pattern [23]XXX and route the calls through the trunk created in step 2. 2XXX is for ATA phones and 3XXX is for FXS phones
UID 0 – E.164 number of port 1, UID 1 - E.164 number of port 2. This is effective only if UseLoginID = 0.
LoginID 0 – H323 ID of port 1, LogingiD1 – H323 ID of port 2. This is effective only if UseLoginID = 1 (default 0)

If the pic is not legible, download the picture and zoom it to see more clearly.
1. Pickup phone handset and press ATA function button
2. Dial FACTRESET#. The IVR will say press * to save or to exit press # key. Press * to save and it should reset the ATA to factory default configuration.
Default value :0x000068b8
0110 1000 1011 1000 (ignoring leading 0's)
0-7 digits represents RTP payload. Maps to DSCP 46 or TOS 5 (leading 3 digits 011)
8 – 15 digits represents Voice signalling. Maps to DSCP 26 or TOS 3 (leading 3 digits are 101)
To change the voice signalling to DSCP 24 (according to CM 4.1 specs) the new value of TOS is
0x000060b8 (Change bit 11)
Default value : 0×00350035
32 bit field, first 16 bits for phone 1 and second 16 bits for phone 2 (starting from LSB)
0000 0000 0011 0101 0000 0000 0011 0101
a. To force g711 on all calls set bit 1 and 17 to 1 – Audiomode becomes 0×00370037 (Both ports are forced to use g711)
b. To use low bit rate codec or g711 (default setting) – set bits 1 and 17 to 0 – Audiomode becomes 0×003500035
Fax CED tone detection
Bits 2 and 18 should be set to 1 (default) to enable Fax CED tone detection
If set to 0, tone detection is disabled.
Fax between ATA on port 2 and Router with FXS (g729 codec)
Posted: May 25, 2006 by sankar in Analog, ATA186, FaxFax setup that works:
Fax on port 2 of ATA, LBRcodec = 3, Connect mode bit 21 = 1.
Router has dial-peer with g729r8 (br8) codec and fax machine on FXS port.
Commands in dial-peer:
dial-peer voice 10 voip
codec g729r8|br8
modem passthrough nse codec g711ulaw
fax rate disable
fax protocol pass-through g711ulaw
Fax setup that didnt work
Fax on port 2 of ATA, LBRcodec = 3, Connect mode bit 21 = 1.
Router has dial-peer with g729r8 (br8) codec and fax machine on FXS port.
Commands in dial-peer:
dial-peer voice 10 voip
codec g729r8|br8
fax rate disable
fax protocol pass-through g711ulaw
Conclusion : With out modem passthrough, Fax passthrough on routers are not working!
LBRCodec can take 2 values 0 or 3.
ATA can support following codec. g723, g729, g729a, g711(a/u).
Both ports can support g723 at same time
Both ports can support g711 at same time
Only one port can support g729 at any time.
Port 2 doesnt have support for g729a. Port 1 has.
When LBRCodec = 0,
port 1 and 2 can use g711ulaw, g711alawor g723.1
When LBRCodec =3 and Connect mode bit 21 = 0 (affects only g729)
Port 1 can use g711ulaw, g711alaw, g729a or g729
When LBRCodec=3 and Connect mode bit 21 = 1 (affects only g729)
Port 2 can use g711ulaw, g711alaw, g729
ATA 186 SID 0 is for phone port 1
ATA 186 SID 1 is for phone port 2
If set to 0, phone port is disabled and doesnt register with CCM.
If set to . (dot), ATA port uses its default mac-address (port 2 uses 01 appended at the end) to register with CCM
You will have to use OpFlag and Vlan setting fields.
Opflag:
Default value of OpFlag is 0×000000002
0000 0000 0000 0000 0000 0000 0000 0010 — bits 4,5,6 are set to zero by default which acquires VLAN ID via CDP. To disable this setting and set this to static, use 101 in bits 4,5,6
0000 0000 0000 0000 0000 0000 0101 0010 — 0×00000052
VLAN Setting:
Default setting is 0x0000002b
Translates to 0000 0000 0000 0000 0000 0000 0010 1011
Set bits 18 through 29 with VLAN ID. IF you have to set VLAN ID to 115, 115 translate to
64 + 32 + 16 + 0 + 0 + 2 + 1 = 01110011
0000 0001 1100 1100 0000 0000 0010 1011
which translate to 0x01cc002b
Cos bits for Signalling and RTP ( first 6 bits of Vlan setting)
0000 0001 1100 1100 0000 0000 0010 1011
First three bits (0-2) are for voice signalling. By default this is set to 3.
0000 0001 1100 1100 0000 0000 0010 1011
Second three bits (3-5) are for voice bearer (rtp). By default this is set to 5.
1. To add ATA 186 port 1 enter the mac-address of ata 186
2. To add ATA 186 port 2 drop leading 2 digits of mac-address and add a 01 to the end.
3. To enable DHCP via phone, hit the red menu button on ATA and choose option 20# and choose 0 for disable dhcp, 1 for enable dhcp
4. To configure IP address via phone chooose option 1#. Separate dots with *
5. To configure default router choose option 2#. Separate dots with *
6. To configure subnet mask choose option 10# Separate dots with *.