Turning a 26 year prison sentence into lemonade

Hosted Asterisk PBX and UCS Platform

Latest UCS Platform and EMC SAN on 5100 Series Blade Severs with 256 GB of RAM and OC48 Fiber Connection -Tylon Robinson, CCIE, CCVP, MCITP

Configuring the Cisco SPA504G/SPA508G series phones to work on Asterisk platforms can be simple.  That’s the goal here at least!  I’m going to break it down for you step by step using pictures and easy to follow instructions, including how to setup BLF’s, call pickup, speed dials and the paging feature.  Shoot, if you pay attention and do good I might even let you know when your girlfriend calls.

This will work with the firmware that the Cisco SPA504G/SPA508G phones come shipped with.  Upgrading the firmware isn’t a problem, I just won’t be covering it in this lesson.  We can’t have CD’s in prison cuz these fools up the block were breaking them into pieces and stabbing each other with them.  One dude was even making ninja stars out of them and you could get one for just a couple loosies.  So, I had no choice but to get my firmware offline and I’m sorry, but there’s no way I’m giving up my Cisco username/password and you can believe that!

First, lets get the IP address out of your phone by pressing the Settings button.  The settings button looks like a piece of paper with a bent ear in the top right corner, underneath the Voice mail button which is labled with a envelope and to the right of the 3 digit on the keypad. Press 9 and you will see the IP address displayed below the WAN connection type on the screen.  Using a computer connected to the same network as the phone, open up an Internet browser and type that IP address into the address bar (where you would type www…) and press Enter.  If you did it correctly, you will see a blue configuration screen.

Cisco SPA504G/SPA508G Configuration

In the top right hand corner of the screen, click on ‘Admin Login’ and after that click on ‘advanced.’ Click on the System tab.  There are 2 things you need to enter here and they are also shown in the picture below:

  • In the ‘System Configuration’ section, make sure the Signaling Protocol is set to SIP
  • In the ‘Optional Network Configuration’ section, Primary NTP Server = ntp.yourprovider.com

Configure SPA508G on Asterisk

Click on the Regional Tab and Delete every Vertical Service Activation Code you see.  Then at the bottom under the Miscellaneous section you can set the propper Time Zone (Mountain Standard = GMT-07:00).  We don’t observe daylight savings, so you’re on your own with that one! 🙂

Click on the Phone Tab.  This is where you are going to enter what you want displayed in the top right corner of the phone’s screen, setup the voice mail key, and define the line buttons. In the General section:

  • ‘Station Name’ = theExtensionNumberOnAsteriskPBX
  • ‘Voice Mail Number’ = *theExtensionNumberOnAsteriskPBX
  • ‘Station Display Name’ = Whatever you want to appear in the top right corner of the phone screen

Configuring Cisco SPA508G with Asterisk

Before we move on, there are some things we need to understand first.  We haven’t gotten to the Ext tabs yet, but they are where you setup your phone’s extensions by entering the configuration information associated with your Asterisk extension.  Cisco did a really great job on the design of this website configuration.  Anyways, please note that your phone’s extensions and your Asterisk extensions are different.  In this example, my Asterisk extension is 101 and registered under extension 1 of the phone.  The Cisco SPA504G/SPA508G, which is what we are using, has 8 Ext tabs.  That means this phone is capable of using 8 different SIP accounts, potentially from all different service providers.  Personally, I use Coredial and have been delighted with their service.  You don’t need to worry about remembering what each phone extension is after you leave the phone’s Configuration Utility because you just label the line buttons, shown below.  This comes into play twice in the next section.  Don’t worry.  It’s all good baby, baby!

In the Line Key section:

  • ‘Extension’ = The number of the corresponding Ext tab that this Line Key (button on your phone) is using to access dial tone.  Your Asterisk account can be setup under the Ext 1 tab and your home SIP account could be setup under the Ext 2 tab, for example.  Again, so I know you got this, in the picture below, I am telling Line Key 1 (a button on my phone) to associate itself to Extension 1 of the Cisco SPA504g/508g phone, which is my Asterisk account.
  • ‘Short Name’ = what is displayed on the phone’s screen next to the button.
  • ‘Extended Function’ = where you define BLF’s and/or speed dials (you can also define different speed dials with the ‘Personal Directory’ link at the very top of the Configuration Utility Screen, but they are separate from these speed dials).

In the following picture:

  • Line Key 1 accept calls from the SIP account I have configured as Extension 1 (Ext 1 tab) in my phone and displays “Asterisk 101” next to the line key on my phone screen.  This is my Asterisk account.  Whatever account is configured under the Ext 1 tab is going to be the default account your phone will use when you initiate a call.  If you wanted to make a call using another SIP account, then you would need to press the line key associated with that SIP account before dialing to draw dial tone from that provider.
  • Line Key 2 is a Busy Lamp Field (BLF), Speed Dial and Call Pickup button for the Mr. Fowler’s extension.  He’s our warden.  On the phone’s screen the letters ‘H.N.I.C.’ are displayed.  If we had another SIP account on this phone configured on Extension 2 (Ext 2 tab) then we would need to have vid=2 added like this: fnc=blf+sd+cp;sub=102@$PROXY;ext=102@$PROXYvid=2;nme=Warden.  This must be done for any BLF which monitors a phone on a shared SIP account and is set up under any Ext# tab besides Ext 1.  Line Key 2 will show solid red if the warden is on the phone.  It will also flash red if his phone is ringing and if I pressed this button while that was happening then I would answer the call ringing his phone.  In a separate incident, if I am on the phone with someone and I wanted to transfer the caller to the warden I would just push his button and hangup because the phone would automatically initiate a blind transfer to his phone.
  • In case you were wondering, the DOC has their own phone system and I can’t pick up bossman’s real calls cuz they won’t give me one of those extensions.  It’s OK, their PBX is a PIECE OF CRAP and I don’t want one anyway.  They don’t even know what disaster recovery is.  It’s sad.  Whatever, I got the warden tripped out on what’s actually transpiring when we intercom each other and speak and he can’t believe the quality.  I gave him the SPA525G2 and he’s in love!  I think he just like my voice haha, you know, because sometimes we be talking for like an hour.  Man, for real for real… he’s an alright dude.  And Mrs. Fowler is real sweet too.  Good peoples.
  • Line Key 3 is a speed dial to an external number (555)333-4444.  nme=Lawyer means my phone will display ‘To: Lawyer’ whenever I press the button.  ‘Gold Steinberg’ is displayed on the phone screen next to Line Key 3.  Another good dude, btw.  I think he has one of those Denver phone systems in his office… not sure though.
  • Line Key 4 Pages all the Cisco SPA504g/5068g phones that are on the same physical network as this phone.

Cisco SPA508G Asterisk BLF

Click on the User tab.  All the way at the bottom in the LCD section and to the right is a drop down option where you can keep the phone’s backlight from going out.  This is optional. Click on the Attendant Console tab.  At the top in the General section you must enable Unit 1 and/or Unit 2 if you are using expansion modules 1 and/or 2, respectively.  Either way, no matter what, change ‘Server Type’ to Asterisk and the ‘Attendant Console Call Pickup Code’ to *8#.  This is important if you want to use the call pickup feature on your BLF’s. Click on the Ext 1 tab.  This is where you need to enter the registration settings that your service provider or another SIP provider has given you.  With this provider, inside the SIP Config tab in all standard extensions, find the user name and password.  Inside the next tab over (Device), uncheck Generate Device Configuration Files and set the Device Type to ‘Bring Your Own Device.’  Don’t forget to click Save in the portal!

  • In the ‘Proxy and Registration’ section enter the Registration Server, listed inside the portal under the PBX info tab.
  • Register Expires I have set to 300 in order to force a re-registration every 5 minutes.  If you are using an Edgemarc (which is what I believe Coredial still recommending) then you can leave this at 3600 because the router automatically sends keep alive packets.  Unfortunately, I can’t have any routers in my room except for when I’m studying for an exam.  But then they shut down my OC48 so I don’t have access to the WAN.  It’s alright though, I got a pretty sweet setup here and I’m back on line now!!  Word up.
  • User ID and Password.  Again, found in your portal.

Cisco SIP Phones on Asterisk

All the way at the bottom of the Ext tabs is where the dial plan is defined for that particular extension.  This is important because the phone will act certain ways depending on what you dial.  For example, this is the dial plan I use:  (*xxxxx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)  I had to add extra x’s into the beginning to account for logging in as an agent.  If it read *xx and I picked up the phone to dial *01101, then the phone would actually not wait and just start trying to dial when i got the *01 out.  Now the phone knows to wait for 5 digits after the *.

If anyone needs anything or has any questions, holla at me.  I love this stuff!

That’s it, I’m done.  You got this!

Word up.

Advertisements

Comments on: "Cisco SPA504G/508G Asterisk SIP Phone Website Configuration, BLF/Paging" (24)

  1. This is pretty awesome you can even use VOIP technology from prison

  2. Hi T-Dog. Thank you so much for the free info. We are wondering about NAT Network Address Translation. and RTP Port Mapping Media. Do you know much about this?
    Thank you again. Jenny

  3. We have SIP registration and MoH working on two phones (ext. 100, and ext 101, on the same private NAT subnet, 192.168.0.xxx), and the Asterisk server is on a public IP. We can call from x100 to x101 and answer and get a connection, but Asterisk chan_sip debug gives cryptic error message about “no leg” for re-invite, “… giving up”, and there is no sound between the two phones. There are many combinations for NAT handling in sip.conf; right now we have “nat=yes” and “directmedia=nonat”, but so far all combinations of these give same result.
    We actually have two NAT routers – one is an AT&T Uverse router, and a Time Warner cable modem router.

    • Jenny, sorry for the delay. The mayor has been by a lot this past week and we got into it yesterday and it got pretty heated. I see you got my reply from above by the looks of this post, but don’t know why I can’t be see it. I hope this one show up. You might wanna try switching up your domain and proxy settings in the phone. You know what though, first thing first is you need to put that Time Warner modem into bridge mode. You don’t want a router behind a router, except in specialty situations.

      NATNAT, RaddaTAT!

      Keep me posted Jenny! 🙂

  4. PMoney :) said:

    Hi Jenny, T Dog.

    I agree with Tylon, double NATting is not a good idea especially with SIP.

    Can you provide a little more information regarding the Asterisk IP config. You say it has a public IP. Is that via 1-1 NAT mapping or does the box actually have a NIC with a public IP connected on the outside of the firewall?

    Also, are you using Asterisk or FreePBX / Trixbox?

    Paresh

  5. i got this problem: Got SIP response 486 “Busy Here” back from 192.168.1.104
    This IP belong at SPA508G
    I deactivated “CW” and “DND” and I´m still getting SIP response 486

    • Hey Mike!

      Is this error coming from an asterisk box? What are you doing up to the moment you get this error?

      • This message from the spa508 when i dialed from other extension and I got active call with other extension
        example:
        exten 100(spa508) active call with exten 101— ok
        exten 102 try to call exten 100 , Busy here

  6. Tylon, do you have any pen pals? Want one?

    • aw man!! hit me up on facebook, we need to discuss this futher! 🙂

      • Problem solved, was a configuration in asterisk, i had to activate CW and the spa508 works fine. Well i think i was obfuscated with the problem and i don’t see the problem. Thanks and i will add you on Facebook

    • JOEY INOCENTES said:

      hey…. me too !!

  7. Im havin hell of a time setting up 504g and 525g on Coredial, any tips?
    Thanks
    Sasha K.

  8. Gábor Fauszt said:

    Hi,

    I really like your guide it has been a huge help so far. I’m setting up a Cisco SPA 504G based system and I have some issued with teh BLF call pickup feature. I’ve set the attendant console settings as you wrote, blind transfer and the light status are working as they should but I’m unable to take over calls from other extensions. I get the message saying invalid number. Any ideas?

    • You should also check the * codes in the phones settings. Make sure there isn’t a code there that is over-riding the call pickup code in the console settings.

  9. Hi Tylon – I have problem that during a call if I press the * (Star) button the line disconnects. Could this be a setting on the phone – or on the switch? thanks

  10. Firehazard said:

    Thank you for posting this. It really helped me to reconfigure the Line keys as speed dial keys. It’s just what I was looking for.

  11. great guide! I do the same thing you did just that I did not understand the difference in values ​​insert line under the PHONE key and key line under ATTENDANT CONSOLE Unit 1 Key 1:
    I HAVE FOLLOWED THIS GUIDE
    http://kb.kerio.com/product/kerio-operator/configuring-phones-devices/how-to-configure-busy-lamp-field-blf-on-cisco-spa500s-832.html

    BUT IT DOES NOT WORK

    THANK YOU FOR YOUR HELP

  12. Hey Tylon,

    Have you got any idea what the correct syntax for logging in to a queue and monitoring it with BLF for cisco SPA504G is? I am using a Asterisknow server and i am kind of stuck on this, i cant seem to get the subscription to my asterisk hints to work.

  13. Hey Tylon,

    Are you allowed to work (e.g. provide support services on contract) while you are incarcerated?

    If you are, let me know.

    • Anees whatup whatup! They had me in the hole pass 32 months man! Feel good to be back and yea im tyina work man lets do this word up!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: