Recent changes Random page

more wikis
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Linksys pap2:Home

From Scratchpad

Jump to: navigation, search

composed by: Drone1 Date: 10/10/05 Version: .01 Beta PAP2 Instructions / FAQs / Installation / etc… http://www.broadbandreports.com/forum/remark,14450684~start=720#end

  • Read all the instructions before you start doing anything. Now put down your PAP2, and read the instructions… Now read them again.
  • Don’t put your PAP2 on your network until you have unlocked it. If you are thinking about putting it on your network, don’t. If you put the PAP2 on your network before it has been unlocked, it will call home, update the firmware and you will be SOL. So, don’t put it on the network… and while you are at it, don’t put it on your network.
  • If you have an old router, make your life easy, drag it out of the closet, and power it up.. and don’t put it on your network.


Contents

[edit] Unlocking your PAP2

Follow these steps and your Linksys PAP2 will be unlocked. Provider settings do not get erased. Several assumptions:

  • 1. you can get to the WEB interface and set the USER password.
  • 2. Ideally, the device has never downloaded updates, or talked to the provider.
  • 3. You have a TFTP server setup on your network

For this example, Assumptions: PAP2 is at IP: 192.168.1.5 TFTP server is : 192.168.1.110

OK, lets go for it:

  • 1. Put the following two files in the TFTP root folder. [File one: PAP2SP2K.bin and SP2KPAP2.bin.]
  • 2. Disconnect from the Internet (avoids downloading cfg files)
  • 3. Boot your PAP2 in your network.
  • 4. Browse to the web page of the PAP2.
  • 5. In SYSTEM, set a User password of 1234
  • 6. Click the SAVE SETTINGS button.
  • 7. Refresh the link (you login with user and 1234)
  • 8. Modify the link to show (in your web browser!): http://192.168.1.5/upgrade?tftp://192.168.1.110/PAP2SP2K.bin
  • 9. Examine the status leds.. Power should turn RED when it is done. Give it a minute or two, dont interrupt it.
  • 10. Once red, point browser at your PAP2. (our IP in this example is 192.168.1.5)
  • 11. Click the "admin login" link near the top-right.
  • 12. Click on "Advanced View" if in "Basic View"
  • 13. Click the PROVISIONING tab and set PROVISION ENABLE=NO.
  • 14. Click SAVE SETTINGS.
  • 15. Now, modify the link to show: http://192.168.1.5/upgrade?tftp://192.168.1.110/SP2KPAP2.bin
  • 16. Done. Your Linksys PAP2 will eventually reboot (2 blue LEDs) (BE PATIENT) and you can click the "admin login" near the top-right. No PW needed.

This test uses specific firmwares.. These are not for any other use, so if you are looking for upgrade firmware for your PAP2, DO NOT assume that this will be them.. These are for unlocking your PAP2 unit. What the hell is TFTP?

[edit] after step 8, led doesn't turn to red, why?

probably, the file pap2sp2k.bin is not loaded to your pap2 correctly. maybe the tftp sever is not working. you can try this to check.

    open a dos command window
    c:>tftp -i 192.168.1.110 get PAP2SP2K.bin
    c:>dir *.bin

if you can find PAP2SP2K.bin in current directory, means tftp server is OK. otherwise, try reboot router and computer.

[edit] how to upgrade to firmware 3.1.6?

Do this *ONLY* if you have succesfully unlocked the unit to 3.1.3 (as mentioned above)

Get the original 3.1.6 firmaware form Vonage (this is as of Sep/Oct 2005)

http://httpconfig.vonage.net/+001234567890/PAP2-bin-03-01-06-LS.bin MD5 sum = 392225ad17ed53e3780ecc12bdc85c4f

Then feed it to PAP2:

http://192.168.1.5/upgrade?tftp://192.168.1.110/PAP2-bin-03-01-06-LS.bin

(there is a more direct way, but this is relaible and gives a better feedback).

After the upgrade wait and be patient as usual for the PAP2 to "save" the new firmware.

 Q: I have my PAP2 on the internet, I am making calls.  Do I need to remove the
    PAP2 to perform the upgrade?
 A: I did not.  I just TFTP'ed the file to the PAP2 and it worked.  Do what makes
    you feel comfortable.
 Q: Does the firmware overwrite all my settings?
 A: No, you retain all your settings
 Q: I went through the process of unlocking my PAP2, if I install this firmware, do
    I have to do any further unlocking?
 A: Nope, just install the firmware.

[edit] how to use xml file to disable provision tab ?

answer?

[edit] What is TFTP?

I don’t have a TFTP Server! I am screwed! Calm down.. it’s Blindingly easy. From the good folks at klever.net…” TFTP is not FTP, these are different protocols. TFTP, unlike FTP, is used primarily for transferring files to and from the network equipment (e.g. your router, switch, hub, whatnot firmware upgrade or backup, or configuration backup and restore) that supports using of TFTP server for, not for general purpose serving downloadable files or retrieving files from the FTP servers around the world.”


- Open a web browser navigate to http://kin.klever.net/pumpkin/ - Download pumpkin-2.6.exe - Execute pumpkin-2.6.exe to install pumpkin - Default install path is fine.. C:\Program Files\Klever\Nothings - Create a directory in the install path called vonfiles - Unzip your PAP2SP2K.bin and SP2KPAP2.bin files into the vonfiles dir - Turn off any software firewall.

(I was actually too lazy to do this step, I received the popup (ZoneAlarm) asking if the PumpKIN could access the internet, I said sure, and went on my way…. Feel free to work to your skill level)

- Launch PumpKIN - Click the Options button - Set the TFTP filesystem root to C:\Program Files\Klever\Nothings\vonfiles - After PAP2 setup steps 8 and 14, you will get a PumpKIN – Confirm Read Request popup on your computer. Click Grant Access


[edit] Setting up your PAP2

[edit] System

           DHCP: No
           Static IP:
           NetMask:
           Gateway:
           Primary DNS:
           Secondary DNS:
           DNS Server Order:               DHCP, Manual
           Primary NTP Server:             at.pool.ntp.org
           Secondary NTP Server:           time.nist.gov
       

- Give your PAP2 a Static IP

  • If you need to read these instructions.. you probably should not be doing this…
  • Open a command prompt
  • Type ipconfig /all (Win NT, 2K, XP)
  • If your IP address is 192.168.0.2, you will need to make your PAP2 IP Address something like 192.168.0.100 MAKE SURE YOU DO NOT HAVE ANOTHER DEVICE SETUP FOR THIS IP ADDRESS
  • Use the information to fill in the settings above
  • Make sure you fill in the DNS settings. I think I left these out when I switched from DHCP to Static.

[edit] SIP

           Reg Retry Intvl:                 30
           Reg Retry Long Intvl:            300
           Handle VIA received:             yes
           Handle VIA rport:                yes
           Insert VIA received:             yes
           Insert VIA rport:                yes
           Substitute VIA Addr:             yes
           Send Resp To Src Port:           yes
           STUN Enable:                     yes
           STUN Test Enable:                yes
           STUN Server:                     stun.sipgate.net:10000
           NAT Keep Alive Intvl:            15

- From what I know.. you can use any STUN Server you like, they are not service specific… I used this one.. and it worked.

[edit] Provisioning

           Provision Enable:                 no

[edit] Regional

           N/A

[edit] Line 1 - dialpad

           SAS Enable:                     No
           NAT Mapping Enable:             yes
           NAT Keep Alive Enable:          yes
           Proxy:                          sip.stanaphone.com
           Use Outbound Proxy:             no
           Register Expires:               350
           Display Name:
           User ID:
           Password:
           Use Auth ID:                    no
           Preferred Codec:                G711u
           Silence Supp Enable:            yes
           Use Pref Codec Only:            no
           Echo Canc Enable:               yes
           Echo Canc Adapt Enable:         yes
           Echo Supp Enable:               yes
           Dial Plan:                      (<:001>xxxxxxxxxx)
  • Display Name – I used my Stanaphone Phone Number xxxxxxxxxx
  • UserID - Stanaphone Phone Number xxxxxxxxxx
  • Password - Stanaphone Password from the Config SIP Hardware page
  • Note: Register Expires setting keeps you "online" according to Stanaphone, avoiding people always getting voicemail when calling you

[edit] Line 2 - Voipbuster

           SAS Enable:                         No
           NAT Mapping Enable:                 yes
           NAT Keep Alive Enable:              yes
           Proxy:                              sip.voipbuster.com
           Use Outbound Proxy:                 yes
           Outbound Proxy:                     sip.voipbuster.com
           Display Name:
           User ID:
           Password:
           Use Auth ID:                        no
           Preferred Codec:                    G711u
           Silence Supp Enable:                yes
           Use Pref Codec Only:                no
           Echo Canc Enable:                   yes
           Echo Canc Adapt Enable:             yes
           Echo Supp Enable:                   yes
           Dial Plan:                          (<:001>xxxxxxxxxx)


  • Display Name – I used my Voipbuster UserID
  • UserID - Voipbuster UserID
  • Password - Voipbuster Password

[edit] User 1

           Default CWT:               8

[edit] User 2

           N/A

[edit] Fun with your Linksys WRT Router

- Log onto your WRT54G / GS router (if you don’t have this router, go to the store and purchase one now) (If you bought your PAP2 at Staples FAR.. Then go there and get a wrt, NOW, cheapass)

- Install Alchemy firmware if not already installed (Why bother with this firmware ?)

- Go to Applications & Gaming Tab and the Port Range Forward subTab

- Enable port forwarding on the following ports to the IP Address of your PAP2: (I used Both UDP and TCP protocols)

  • 5060 - 5061
  • 35000 – 44999
  • 16384 - 16482


- Go to the Applications & Gaming Tab and the QOS subTab The QoS screen allows control of the bandwidth allocation to different Services, Netmasks, MAC addresses, and the four LAN ports. QoS is divided into four bandwidth classes called Premium, Express, Standard, and Bulk. Unclassified services will use the Standard bandwidth class WTFaqs:

[edit] What is the IP Address of my PAP2?

  • Low Tech: Plug in a phone to your PAP2 and Dial **** Enter: 110#
  • Tech: Look at the DHCP Clients Table on your router… this is fine is you have a limited number of computer on your network

- I signed up for Stanaphone, Voipbuster, and FWD all on the same day and tried to get everything to work. I thought I tried everything, but I walked away frustrated with nothing working. Tried the second day.. using these settings, Voipbuster worked right away.. I am not sure if I did something different, or it took a day to register. Moral of the story, I am not sure it’s free and it’s going to piss you off. - When I setup Voipbuster, I tried using the G729a codec and it didn’t work, so I switched to G711u, and it worked fine - Can’t get into the Web Interface? I didn’t run into this problem, but I found the instructions below, they may or may not help? - I put the my PAP2 on the internet before I unlocked it?

I wasted a bunch of hours trying to figure out how to set this up… but didn’t pull this stunt. During the course of reading through countless web pages, I did find somebody who had a suggestion for unlocking.. it involved hitting the * key 50 or so times… but I didn’t cut out the instructions… if I run across it again, I will put it in my FAQs, and you won’t be reading this. If you are reading this… good luck, I think I saw it out there somewhere!


[edit] Do I need to use two separate phones?

I have not been able to get this to work.. yet I am using www.dyndns.com instead of no-ip.com Why? Because you can use www.dyndns.com in your WRT for DDNS. No WRT? Go buy one.

DracoFelis writes... Call one line of the SPA from the other line: This is not especially useful (more of a "parlor trick"), but it was a good "learning experience" in trying to get "forwarding" to work. Believe it or not, the SPA-2000 can directly call one line from the other (by using the internal "loop back" IP address)! Here's how:

First make sure that each "Line" on the SPA is setup with a unique SIP port, and a unique userid (i.e. make the settings for these two values different for each line). You will also need to set "Make call without reg: Yes" on the calling line, and "Ans Call Without Reg: Yes" on the line receiving. And you will also have to make sure that the lines have at least one CODEC in common (it might as well be "G711u", since the "call" is "internal" to the SPA). Finally, you will have to setup a "dial plan" to call the other line, at "userid@127.0.0.1:sip_port".

For example, if the other line is on SIP port 5063, and is userid "testing", than you can call that line (from the other one) by pressing #1 if you have the following as part of your "dial plan":

<#1:> S0 <:testing@127.0.0.1:5063>

And now (drum roll), how to forward all inbound calls to the OTHER line: This is VERY USEFUL, because it either lets you have a TWO VoIP accounts that both "ring" the same phone, OR lets you use one account for all incoming, and a 2nd account for all outgoing (by putting the "phone" on the line with the outgoing VoIP service, and then forwarding all incoming calls on that other VoIP line to that one)!

NOTE: This theory was tested earlier this evening, by forwarding my SPA-2000's "Line 1" (setup for FWD) to "Line 2" (setup for DialPad.com), and then calling my FWD number from Packet8. After I finally got all the pieces in place, my "Line 2" was happy to "ring", and when I picked up that phone 2-way talking worked fine! So this appears to work (at least for me). But naturally YMMV.

Here are the needed pieces:

1) As in the previous "trick", you need unique SIP ports and unique userids for the two lines. NOTE: It's quite OK to use whatever "userid" the provider on that line supplied (for logging into their SIP proxy). You don't need the UserId set to any specific value, just something unique!

2) Again, the line you are forwarding from will need "Make call without reg: Yes", and the line you want to forward to will need "Ans Call Without Reg: Yes".

3) If you are behind a router (I am), you will need to forward the SIP port of the line you want to ring (the line you are forwarding to) to the SPA. This is probably much easier if you program the SPA for a "static LAN IP" (instead of using DHCP).

4) Your external address will need to either be "static", _OR_ you will need to use a dynamic DNS service (btw: I'm happy with the free dynamic DNS service from Â»www.no-ip.com ). This is necessary, as you will need to always know the internet address of your SPA-2000 (not the LAN address, the "external address") for forwarding to work.

5) Turn on "Cfwd All Serv: yes" on the line you are forwarding "from" (i.e. if you want calls to the VoIP on "Line 1" to ring "Line 2", than you set this on "Line 1").

6) Go over to the "user" tab for the line you are forwarding from, and setup the "Cfwd All Dest:" field as "userid@external_address:sip_port". For example, if your dynamic DNS entry is "dummy.no-ip.com", your target line's userid is "testing", and the target line's SIP port is 5063, than you would want to "Cfwd All Dest:" to "testing@dummy.no-ip.com:5063".

NOTE: I was NOT successful in getting the loopback address (127.0.0.1) working for call forwarding (even though it worked for calling one line from the other, above). I had to use the "external address" for the SPA, to get forwarding to work (even between one line and the other on the same Sipura adapter)!

7) Test the setup. The easiest way is to get a friend to call the VoIP number you are forwarding from, and see if the forwarded to line "rings". In my case, I verified the setup by using my Packet8 account (and the Packet8 to FWD gateway) to call my FWD line (line 1 of my SPA-2000), and have the DialPad.com line (Line 2) ring! I then picked up the phones, and verified that two-way talking was working. Success!!!

[edit] Web Interface is locked?

  • Pick up your phone and dial:****
  • Then dial 73738#
  • Password is: (usually) 7756112# could be: 8995523#
  • enter 1 to confirm press # Hang up
  • pick up the phone and dial ****
  • then 7932#
  • Password is: 78196365
  • Press 1 to Confirm and then hang up.
  • This just enabled the Web Interface if needed.
  • Now if you need the IP address of your PAP2 Dial ****
  • Enter: 110# and put that number in your Web Browser
  • You should gain access to the web server at this point.
  • Here is the fun stuff. Click Admin Login in the top right hand side.
  • I assume this is where many people have been stuck!
  • User name: admin
  • Password: kImkGPHA

[edit] Final Thoughts

If I am doing something wrong or stewpid, please email me.. I am just writing what works / doesn’t for me.


Thank you to all the people who spent countless hours actually making this hack happen! - rcilink - forfun who posted this document to this wiki

Rate this article:

Share this article:

.