Asterisk, and other worldly endeavours.

A blog by Leif Madsen

Using a Nokia E71 with Asterisk (3G or WiFi)

There was some talk in one of the IRC chat rooms today about someone trying to get their E61i working with Asterisk. I haven’t had an issue getting that phone or my E71 phone working, but regardless he was having issues. I figured I might as well spend a little bit of time today going through my configuration, both for my own reference, and so that other people can get their Nokia’s setup with Asterisk as well.

I’ll be using the native SIP client, although I’ve had just as good of luck using the Fring application. The advantage to the Fring application is that you can use it with Skype, along with multiple IM clients, and also video! I especially like that the application makes use of the video camera on the front of the phone so that you can use it as a videophone. Using the video on a phone like the iPhone or Nexus One seems useless to me (but I digress!).

First, lets get our Asterisk configuration setup in sip.conf. We’ll need to make sure we’ve setup a realm in sip.conf as our phone will require it. If you don’t, then the default realm is ‘asterisk‘.



callerid=Leif Madsen <571>
Feel free to change or add whatever options you need for your sip.conf. This is generally what I have working right now. I’ve left out all my domain handling and SIP URI stuff this time around. Maybe I’ll talk about it in another blog post in the future.
OK, back to the task at hand. Now that we have our sip.conf file configured, just run ‘sip reload’ from the Asterisk console, and your settings should be available. You can check to make sure your peer loads up with ‘sip show peers‘ or ‘sip show peer leifmadsen_cell‘ (or whatever you called your configuration.
The next step up is to configure our Nokia device. These settings should likely be the same on both the E61i and the E71, but I’m working from a 400 series firmware on the E71, so your mileage may vary.
Menu > Tools > Settings > Connection > SIP Settings > Options > New SIP Profile > Use default profile

With the new profile created, we need to modify it for connection to our Asterisk system. Starting at the top we have the following fields: Profile name, Service profile, Default access point, Public user name, Use compression, Registration, Use security, Proxy Server, and Registrar Server. We’ll going through each of these and configure the two submenus: Proxy Server and Registrar Server.
Profile name: Anything you want. I called mine “Business Line”
Service profile: IETF
Default access point: Select either a wifi connection or 3G connection. In my case I’m selecting “Rogers Internet”
Public user name: (notice how leifmadsen_cell is the same as what we configured in sip.conf)
Use compression: No
Registration: Always on (you can set this to ‘When needed’ if you only want to place outbound calls via VoIP sometimes)
Use security: No
Proxy Server >
Proxy server address:
Username: leifmadsen_cell
Password: super_secret_password
Allow loose routing: Yes
Transport type: UDP
Port: 5060 (unless you’ve changed this yourself on your Asterisk box)
Back > Registrar server >
(fill this information out exactly like the Proxy server section)
At this point, hit the Back button a couple of times to make sure you phone will register. If you’re still having issues, double check all your configuration options, and potentially restart the phone. With older firmware versions I’ve had issues where if I don’t get it perfect the first time and make a change, I have to restart the phone.
Once we see that we’ve registered the device, we need to enable it from another screen so that we can place and receive calls from Asterisk.
Go back out of the SIP Settings screen to your Connection screen in the Tools menu, then select Internet tel.
By default you will see a screen that says (no Internet telephone settings).
Select the Options button and create a new profile. There will be two fields: Name and SIP profiles. By default the SIP profile field should be selected with Business Line (or whatever you called your SIP connection) automatically. The Name field is currently set to Default, but I just renamed it to VoIP. Feel free to name it anything you want.
Back out of all your menus until you get back to the main screen. You should see an icon in the upper-right hand corner that looks like a telephone hand set on top of a globe. At this point, try dialing one of the extensions on your Asterisk server to see if things are working! I like to try calling my voicemail as it lets me test DTMF as well.
Below is a (modified) INVITE from the E71 showing what you’ll see when the request comes from the phone. The most interesting part is the SDP portion which shows us which codecs the device supports and offers. In the case of the phone and firmware combination I’m using, I can use G.711 ulaw and alaw, G729, and iLBC.
INVITE;user=phone SIP/2.0
Via: SIP/2.0/UDP;branch=z9hG4bKlq60dckmalhc6vap06nosen;rport
From: ;tag=mh5gdciapphc6m6506no
Supported: 100rel,sec-agree
CSeq: 1252 INVITE
Call-ID: rdw6Iy8zoIfKxg6LzJ7FSPdgBvIb8y
Expires: 120
Privacy: none
User-Agent: E71-2 RM-346 400.21.013
Max-Forwards: 70
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 447

o=Nokia-SIPUA 63437257072703500 63437257072703500 IN IP4
c=IN IP4
t=0 0
m=audio 49152 RTP/AVP 96 0 8 97 18 98 13
a=fmtp:96 mode-change-neighbor=1
a=fmtp:18 annexb=no
a=fmtp:98 0-15
a=rtpmap:96 AMR/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:97 iLBC/8000/1
a=rtpmap:18 G729/8000/1
a=rtpmap:98 telephone-event/8000/1
a=rtpmap:13 CN/8000/1

So beyond that, there shouldn’t be anything else you need to do. Using the same configuration in sip.conf for Asterisk should also work with Fring. Perhaps I’ll create another blog post in the future about using Fring with E71 if there is interest in that. Anyone who wants to try testing out some video calls through my Asterisk box using their Fring video enabled phone, just let me know offline and we’ll set something up!

Written by Leif Madsen

2010/03/19 at 11:28 am

16 Responses

Subscribe to comments with RSS.

  1. leifmadsen,
    thank you for encoraging me
    i am trying to get it up and working!

    Meftah Tayeb

    2010/03/19 at 11:55 am

  2. thank you for your post. i have to look this up and add to the voip news aggregator.


    2010/03/24 at 11:19 pm

  3. hey man,
    great post. one think i have noticed. as far as i know ( i may be wrong) nokia provides g729 codec for free(if you get the updates). that for sure would help to have it for 3g as it would considerably save the bandwidth. your setup shows only alaw and ulaw. let me know your thoughts.


    2010/04/29 at 4:04 pm

  4. ooops my bad…i need glasses:(
    you did include the g729 there


    2010/04/29 at 4:40 pm

  5. Thanks for your manual.

    Please tell me how to connect Nokia phone/s to a laptop running Asterisk (for Windows / MS Vista)
    to act as GSM gateway.

    Should I use usb or alike connection cable,
    bluetooth ?

    Which Nokia models are supported ?

    I need to test IVR dialplan for Asterisk and use GSM Nokia phone as a gateway to run live tests.


    2010/05/04 at 12:31 pm

    • Well first of all, Asterisk doesn’t run on Windows — it only runs on Unix based systems like Linux, FreeBSD, etc…

      You can use chan_mobile to accept and place calls through your cellphone via bluetooth.

      I’m not sure which Nokia models are supported — I’ve tried with my Nokia E71 and it seems to work, but I don’t think I could accept calls for some reason — perhaps a configuration issue, but I did open an issue on the site.

      If you need to accept calls from the Nokia to Asterisk for testing, then it sounds like you want to use chan_mobile.

      Leif Madsen

      2010/05/04 at 12:39 pm

  6. good post..i would have that for my nokia collections


    2010/05/27 at 5:55 pm

  7. i have a nokia E71 that i use for tmobile…to get it to work with 3g do i have to do anything specifically, like download any 3rd party apps. or do i just need to create a new sip from what was done at the top of the page?


    2010/08/02 at 2:21 pm

    • Shouldn’t be anything special you have to do that I’m aware of. I don’t use T-Mobile 🙂

      Leif Madsen

      2010/08/03 at 8:57 am

  8. Hi,

    Great article, got me up and running in no time! (Mostly)

    I got outbound calls working ok but nothing happens when my extension number is dialled. Any idea what could cause that?


    Graham Brown

    2010/08/24 at 9:24 am

    • Hmmm not too sure. Might have to enable SIP debugging on Asterisk and then paste the INVITE attempt. It seems like something might be going on with a rejection, or perhaps your dialplan or something else is setup wrong in Asterisk? Hard to tell without more information.

      Leif Madsen

      2010/08/24 at 9:30 am

  9. […] Using a Nokia E71 with Asterisk (3G or WiFi) March 2010 11 comments 5 […]

  10. pls,i have nokia e71-2,but the umts is not functioning.thanks

    onuoha Anthony

    2011/07/13 at 7:05 pm

  11. I have Nokia E7-00, its can connect via WiFi, but can’t connect when I used 3G and I have Nokia N900 its can used via 3G very well. Do you have and idea to solve the problem.
    (I think the problem causes from mobile not network.)

    Yothin Inbanleng

    2011/12/19 at 4:55 am

    • Sorry, I have no idea as I use an Android based device now.

      Leif Madsen

      2011/12/19 at 10:05 am

  12. Hi Leif,

    I have a Nokia E71 that I set up following your instructions and some on other websites. I also setup an Iphone with similar settings. The Iphone works perfectly but the Nokia E71 can only make calls it cannot receive any calls. When I dial from another extension I can hear the phone ringing through the extension but nothing happens on the Nokia E71. Earlier you stated that you posted something on did you receive any feedback? I’m stumped


    2012/02/07 at 4:04 pm

Comments are closed.

%d bloggers like this: