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‘.
[general] realm=pbx.my_asterisk_box.com disallow=all allow=ulaw allow=alaw srvlookup=yes pedantic=yes maxexpiry=360 minexpiry=120 defaultexpirey=120 videosupport=yes [leifmadsen_cell] type=friend secret=super_secret_password context=devices nat=yes canreinvite=no qualify=no mailbox=100@default callerid=Leif Madsen <571> insecure=invite,port subscribecontext=subscriptions disallow=all allow=g729 allow=ulaw
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: sip:firstname.lastname@example.org_asterisk_box.com (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 address: pbx.my_asterisk_box.com
Allow loose routing: Yes
Transport type: UDP
Port: 5060 (unless you’ve changed this yourself on your Asterisk box)
(fill this information out exactly like the Proxy server section)
INVITE sip:email@example.com_asterisk_server.com;user=phone SIP/2.0 Route: Via: SIP/2.0/UDP 10.10.10.84:5060;branch=z9hG4bKlq60dckmalhc6vap06nosen;rport From: ;tag=mh5gdciapphc6m6506no To: Contact: Supported: 100rel,sec-agree CSeq: 1252 INVITE Call-ID: rdw6Iy8zoIfKxg6LzJ7FSPdgBvIb8y Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK Expires: 120 Privacy: none User-Agent: E71-2 RM-346 400.21.013 P-Preferred-Identity: sip:firstname.lastname@example.org_asterisk_server.com Max-Forwards: 70 Content-Type: application/sdp Accept: application/sdp Content-Length: 447 v=0 o=Nokia-SIPUA 63437257072703500 63437257072703500 IN IP4 10.10.10.84 s=- c=IN IP4 10.10.10.84 t=0 0 m=audio 49152 RTP/AVP 96 0 8 97 18 98 13 a=sendrecv a=ptime:20 a=maxptime:200 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!