Alice Gate VoIP 2 Plus Wi-Fi AGPF_4.3.5 – Change the settings


Please note that you shouldn’t modify your original Alice Router firmware provided by your ISP but, you could buy a new one on Ebay.

The router manufacturer is Pirelli and the firmware is released under GPL license.
A PDF with technical specifications is available.

Original Firmware Configuration

Technical details of the router are:

  • Nome = Alice Gate VoIP
  • Versione hardware = S1
  • Versione globale = AGPF_4.3.5
  • Versione boot loader = cfe-AGPF-10-0007
  • Versione kernel = 2.6
  • Versione drv ADSL = A2pB021.d17i
  • Versione drv Wi-Fi =

The target of the post is to install DD-WRT firmware or to be able to use the 2 x RJ11 ports with a SIP account.

Access to the original Pirelli webpage connecting to the following page:

Hardware Configuration

The detailed images of the PCB layer are available.

According to the PCB Layer of the router you could identify the following chips:

Upgrade firmware

The full specification of the HW and chips are available at OpenWRT Docs

J10 is a connector for a RS232 serial port with the following pinout:
6 = GND 5 = RX
4 = GND 3 = Vcc (3.3 Volts)
2 = GND 1 = TX

Connect pin 1 and 5 to activate the upload webpage to send new firmware to the router with the RED power supply LED:

The OpenWRT firmware is available to install on this router.

All firmware files are available at Darviniano website.

Enable admin.html page

Save the configuration file from this page:

and enable Telnet changing the following line:


  • Open CMD –> TELNET –> OPEN
  • Username: admin
  • Password: admin
  • Enable admin.html webpage with the following commands:
    Discus> conf set /wbm/admin_on 1
    Discus> conf reconf 1
    Discus> system reboot
  • Enable VOIP line
    Discus> conf set /voip/line/0/enabled 1
    Discus> conf set /voip/line/1/enabled 1
    Discus> conf reconf 1
  • Enable advanced menu
    Discus> conf set /wbm/X_TELECOMITALIA_IT_lan_option biz-rt-napt
    Discus> conf set /wbm/X_TELECOMITALIA_IT_conn_mode Bridged+Routed
    Discus> conf reconf 1
  • Disable remote management by Telecom =
    Discus> conf set /dev/ppp0/enabled 0
    Discus> conf set /cwmp/enabled 0
    Discus> conf reconf 1

Change WiFi settings

To change the Wireless SID and WPA password, follow these steps:

Change Voice over IP settings

To change the Wireless SID and WPA password, follow these steps:

  • [Signaling Protocol]
    Local SIP Port: 5060
    Use Strict SIP Message Checking = enable
    Enable transparent SIP Mode = enable
    Enable Server look-up = disable
    Enable Sip on Interface:
  • [RTP]
    Local RTP Port Range – Contiguous Series of 494 Ports Starting From: 49648
  • [Quality of Service]
    Type Of Service (Hex): 0xa0
  • [Codecs]
    G.729, 8kbps = enable 20
    G.711, 64kbps, A-Law = enable 20
    G.711, 64kbps, u-Law = enable 20
    G.723, 5.3/6.3kbps = disable 20
    G.726-32, 32kbps = disable 30
  • [Silence Suppression]
    Enable Silence Suppression = disable
    Enable Comfort Noise = disable
  • [Echo Cancellation]
    Enable Echo Cancellation = enable
  • [DSP Country]
    DSP Country: Italy
    • In the “Line Settings” tab, check these values for each line:
    • Line Number: 1
      User ID: {YourVoipUsername}
      Block Caller ID = disable
      Display Name: Line 1
    • [Services]
      Enable Call Waiting = enable
      Enable 3-Way Calling = enable
      Enable Message Waiting Indication = disable
      Enable Do Not Disturb = disable
      Enable Call Forwarding Always = disable
      Enable Call Forwarding on Busy = disable
      Enable Call Forwarding on No Answer = disable
    • [SIP Account]
      Authentication User Name: {YourVoipUsername}
      Authentication Password: {YourVoipPassword}
    • [SIP Proxy]
      Use SIP Proxy = enable
      Host Name or Address: {}
      Port: 5060
      Register with Proxy = enable
      Register Expires: 3600 seconds
      Use Proxy Address as User Agent Domain = enable
    • [Outbound Proxy]
      Use Outbound Proxy = enable
      Host Name or Address: {}
      Port: 5060
    • [Fax Transmission]
      Fax Transmission Method: None
    • [Numbering Plan]
      Minimum Number of Digits: 1
      Maximum Number of Digits: 40
      Inter-Digit Timer: 3000 milliseconds
    • [Prefixes]
      -empty list-
    • [Advanced SIP Settings]
      DTMF Transmission Method: Out-of-Band by Negotiation (RFC2833)
      Compatibility Mode: Off
    • In case of “Proxy unreachable” check the System Log at this page:

      If you find any releated Asterisk errors, reboot the router.

    Structure of Discus.conf file

    There are a lot of sections in the structure of the Discus.conf file.

    Download it from this webpage:
    The sections are:

    • dev
    • admin
    • system
    • wbm
    • syslog
    • dns
    • disk
    • fs
    • print_server
    • service
    • fw
    • rip
    • mcast
    • rmt_udp
    • voip
    • enotify
    • email
    • radius
    • cwmp
    • manufacturer
    • cert
    • ssh
    • upnp
    • pppoe_relay
    • qos
    • network
    • internal
    • ddns

    Guide to unlock the router =

    DD-WRT on La Fonera

    To install DD-WRT firmware on La fonera, you need to keep in mind the following steps:
    • You need to enable telnet in redboot to install a new firmware
    • You need to enable SSH access to enable telnet for redboot

    To install a new firmware, when telnet in redboot is enabled, you could follow My Nuts guide (firmware 0.7.1 R5).

    The official DD-WRT guide is OK only for firmware version 0.7.1 R1

    DHCP server is not enabled on the cable network, so the default IP used by la Fonera is and you need to set your PC to a static IP to /
    If you have firmware 0.7.1 R2, connect to La Fonera via Wifi and select “Static IP” in menu “Advanced” –> “Internet Connection”:
    • “IP address” = (or according to your router)
    • “Network Mask” =
    • “Gateway” = same a your “IP Address”
    • “DNS” = (according to DD-WRT guide)

    Then procede as follow:

    1. Disconnect power supply to La Fonera
    2. Connect Ethernet cable from La Fonera to your Internet router
    3. Connect power supply to La Fonera
    4. Wait a few minutes that all 3 green leds will be on
    5. Reset La Fonera by pressing the small button on the bottom
    6. Let all 3 leds light up again
    7. Try to connect via SSH using Putty.

    Set the following value into Putty:

    • Host Name =
    • Connection Type = SSH
    • Port = 22

    If all works fine, it will be prompted for credential:

    • Username = root
    • Password = admin

    Continue according to DD-WRT guide (Step 3) to install an hacked version of the Kernel:

    cd /tmp
    mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma

    Let La Fonera boot up correctly (all 3 leds ON) and reconnect to it via WiFi.
    Open Putty with the same settings above and continue according to DD-WRT guide (Step 4) to hack the RedBoot bootloader:

    cd /tmp
    mtd -e “RedBoot config” write out.hex “RedBoot config”

    Now the Redboot is unlocked and you could use AP51 to upload DD-WRT firmware as indicated in this guide.

    You need to download DD-WRT v24 RC6.2 firmware components from DD-WRT Download section:

    Install WinPcap_4_0_1.exe and then run AP51 with the following settings:

    • Rootfs section = Use external file –> Select “root.fs”
    • Kernel section = Use external file –> Select “vmlinux.bin.l7”
    • Create Nvram Partition (for DD-WRT) = Enable!
    • Interface section = Select your Ethernet Network Card driver

    Now all is ready to flash DD-WRT firmware, here is the correct steps:

    1. Disconnect power supply on La Fonera
    2. Connect Ethernet cable on PC and La Fonera
    3. Click the “GO” button on AP51 and wait “No Packet” message
    4. Connect power supply on La Fonera
    5. Wait about 15 minutes until all firmware will be uploaded to La Fonera
    6. When finished AP51 will exit with no messages
    7. La Fonera will be automatically rebooted

    Connect to to check the new firmware because DD-WRT has a built-in DHCP.

    Download latest v24 firmware from DD-WRT Download section:

    Upgrade to latest firmware as describe in DD-WRT Flashing guide.