Cannot register my NOKIA N95 !?

I have a problem to register at the Asterisk-Server.

3 Phones configured :

123 a Softphone, Dynamic. IP
456 a Siems Gigaset, Fixed Ip 192.168.0.5
these phones can do a registration, but my NOKIA N95 cannot !?
NOKIA N95, Fixed IP 192.168.0.10

NOKIA N95 Asterisk Trace ---->>>>>

[Feb 10 16:33:03] NOTICE[4677]: chan_sip.c:14530 handle_request_register: Registration from ‘sip:789@192.168.0.10’ failedfor ‘192.168.0.10’ - No matching peer found
Scheduling destruction of SIP dialog ‘HJQ1Xh_ioIfk-MirTv0CWBwgNmIsde’ in 32000 ms (Method: REGISTER)
Reliably Transmitting (no NAT) to 192.168.0.10:5060:
OPTIONS sip:192.168.0.10 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK53812a58;rport
From: “asterisk” sip:asterisk@192.168.0.2;tag=as3539738f
To: sip:192.168.0.10
Contact: sip:asterisk@192.168.0.2
Call-ID: 258471dc5ede3bfc1a1843275342bbf8@192.168.0.2
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Sun, 10 Feb 2008 15:33:04 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

My sip.conf -->>>>>>

;
[general]
context=default ; Default context for incoming calls
srvlookup=no
; Tip ???
disallow=all
allow=alaw; Allow codecs i order of preference
;
[123]
type=friend
;secret=welcome
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=from-sip
;
qualify=30000
;
[456]
type=friend
;secret=welcome
qualify=yes
nat=no
;host=dynamic
host=192.168.0.5
canreinvite=no
context=from-sip
;
qualify=30000
;
[789]
type=friend
;secret=welcome
qualify=yes
nat=no
;host=dynamic
host=192.168.0.10
canreinvite=no
context=from-sip
;
qualify=30000
;
;
;allowguest=no ; Allow or reject guest calls (default is yes)
allowoverlap=no ; Disable overlap dialing support. (Default is yes)
;allowtransfer=no ; Disable all transfers (unless enabled in peers or users)
; Default is enabled
;realm=mydomain.tld ; Realm for digest authentication
; defaults to “asterisk”. If you set a system name in
; asterisk.conf, it defaults to that system name
; Realms MUST be globally unique according to RFC 3261
; Set this to your host name or domain name
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
; bindport is the local UDP port that Asterisk will listen on
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls

my n95 works perfectly with asterisk, if you comment out password, in sip.conf you need to add insecure=very, but use a pass, it is better :wink:

I don’t quite understand (I am a newbie), is there a parameter in sip.conf called =very ? I only find “port, invite” ? No “very” ?

If I change to password :
in sip.conf -> secret=pw
in N95 I change to 789:pw@192.168.0.10 (my number/password/IP-address) OK ?

here we go

in Sip params of N95

Service mode IETF
Default AP = your ap
public user name = sip:yourlogin@yourdomain (like sip:N95@asterisk)
use compression =no;yes
register= as you like
use security = no
proxy sip server= nothing here if you dont use one
registrar
>>>sip:ipadress_or_domain (like sip:myprivateserver.com or sip:192.168.0.54)
domain : asterisk
user name : your id
password : your pass
type of transport: udp
port : 5060

Thanks for your answer, here we go again (still problem) :

In sip.conf I have added username=pass
and secret=pass

From my N95 (translated from Swedish) :
public username : "sip:789:pass@92.168.0.10
Proxyserver:nothing
Registerserveraddress : "sip:192.168.0.2"
realm : "asterisk"
username 789
password : pass

  transport   UDP
  port         5060

Read carefully what i wrote

your line
public username : "sip:789:pass@92.168.0.10

my line
public user name = sip:yourlogin@yourdomain (like sip:N95@asterisk)

It seems like I cannot read (bought new glasses some months ago !!)

my new public username : sip:789:pass@192.168.0.2

789:pass is mylogin. ?
192.168.0.2 is my Asterisk Server ?

Asterisk trace reads now :

… registration from 192.168.0.2 failed for 192.168.0.10 no matching peer …

add this lines for n95 phone

in sip.conf
also verify that password match

host=dynamic
username=789

and use line like this sip:789@192.168.0.2

OK, back to the drawing board :
I have now changed to dynamic addressing in sip.conf and N95
Also I removed the password, and changed the username to “n95” (!?).
My router ipaddress is 192.168.0.1 as before, Asterisk server at 192.168.0.2, (mySiemens at 192.168.0.5).
When I start calling from the N95, the N95-ipaddress becomes 192.168.0.3 in the displayed in the router.

Part from a winsharktrace in 192.168.0.2 -->>>>>>>>>>

No. Time Source Destination Protocol Info
25 20.806987 FujitsuS_8e:9e:c2 NokiaDan_0b:0d:f6 ARP 192.168.0.2 is at 00:30:05:8e:9e:c2

Frame 25 (42 bytes on wire, 42 bytes captured)
Ethernet II, Src: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2), Dst: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6)
Address Resolution Protocol (reply)

No. Time Source Destination Protocol Info
26 20.812847 192.168.0.3 192.168.0.2 TCP 38539 > nat-stun-port [SYN] Seq=0 Win=64240 Len=0 MSS=1460 TSV=4206288765 TSER=0 WS=0

Frame 26 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6), Dst: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2)
Internet Protocol, Src: 192.168.0.3 (192.168.0.3), Dst: 192.168.0.2 (192.168.0.2)
Transmission Control Protocol, Src Port: 38539 (38539), Dst Port: nat-stun-port (3478), Seq: 0, Len: 0

No. Time Source Destination Protocol Info
27 20.812874 192.168.0.2 192.168.0.3 ICMP Destination unreachable (Host administratively prohibited)

Frame 27 (106 bytes on wire, 106 bytes captured)
Ethernet II, Src: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2), Dst: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6)
Internet Protocol, Src: 192.168.0.2 (192.168.0.2), Dst: 192.168.0.3 (192.168.0.3)
Internet Control Message Protocol

No. Time Source Destination Protocol Info
28 20.879366 192.168.0.3 192.168.0.2 UDP Source port: sip Destination port: nat-stun-port

Frame 28 (62 bytes on wire, 62 bytes captured)
Ethernet II, Src: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6), Dst: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2)
Internet Protocol, Src: 192.168.0.3 (192.168.0.3), Dst: 192.168.0.2 (192.168.0.2)
User Datagram Protocol, Src Port: sip (5060), Dst Port: nat-stun-port (3478)

No. Time Source Destination Protocol Info
29 20.879378 192.168.0.2 192.168.0.3 ICMP Destination unreachable (Host administratively prohibited)

Frame 29 (90 bytes on wire, 90 bytes captured)
Ethernet II, Src: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2), Dst: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6)
Internet Protocol, Src: 192.168.0.2 (192.168.0.2), Dst: 192.168.0.3 (192.168.0.3)
Internet Control Message Protocol

No. Time Source Destination Protocol Info
30 20.944205 192.168.0.3 192.168.0.2 SIP Request: REGISTER sip:192.168.0.2;transport=UDP

Frame 30 (446 bytes on wire, 446 bytes captured)
Ethernet II, Src: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6), Dst: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2)
Internet Protocol, Src: 192.168.0.3 (192.168.0.3), Dst: 192.168.0.2 (192.168.0.2)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
31 20.944217 192.168.0.2 192.168.0.3 ICMP Destination unreachable (Host administratively prohibited)

Frame 31 (474 bytes on wire, 474 bytes captured)
Ethernet II, Src: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2), Dst: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6)
Internet Protocol, Src: 192.168.0.2 (192.168.0.2), Dst: 192.168.0.3 (192.168.0.3)
Internet Control Message Protocol

No. Time Source Destination Protocol Info
32 24.225030 fe80::218:8dff:fe0b:df6 ff02::2 ICMPv6 Router solicitation

Frame 32 (70 bytes on wire, 70 bytes captured)
Ethernet II, Src: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6), Dst: IPv6-Neighbor-Discovery_00:00:00:02 (33:33:00:00:00:02)
Internet Protocol Version 6
Internet Control Message Protocol v6

No. Time Source Destination Protocol Info
33 25.811288 FujitsuS_8e:9e:c2 NokiaDan_0b:0d:f6 ARP Who has 192.168.0.3? Tell 192.168.0.2

Frame 33 (42 bytes on wire, 42 bytes captured)
Ethernet II, Src: FujitsuS_8e:9e:c2 (00:30:05:8e:9e:c2), Dst: NokiaDan_0b:0d:f6 (00:18:8d:0b:0d:f6)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
34 25.817921 NokiaDan_0b:0d:f6 FujitsuS_8e:9e:c2 ARP 192.168.0.3 is at 00:18:8d:0b:0d:f6

i dont see any questions here. Are you able to call?

Sorry, I am trying to call "456@192.168.0.5" from my N95.
N95 displays “registration started” but hangs there.
No messages apperas in the Asterisk logg.

pm me icq/skype/msn lets get it working

A stupid question what’s "icq/skype/msn " ?
I have been on the net looking for N95 problems, a couple of forums have indicated problem with the N95-DHCP-client with many routers and recommend fixed IP-addressing, so I will try fixed again. At least we hade some logging from Asterisk at that time.

N95 was easy confgure for me, so with the conversation abot i guessed that you are new to asterisk. And to reply to your question

Google ICQ
Goggle Skype
Google MSN

So how do we go from here ?

One question about configuration of Nokia Phones with Asterisk (or other PBX) I am going to buy one phone and I am looking nokia e65, n81 or n95. Is the same procedure for all of them? And the quality of sound is good?

And wich of them do you recomend?

Thank you.

it is same for all but N95 is quick, and more user friendly. When it is configured you just dial number >options>Dial Toip. One hand driven. In other phones you need to specify in adv options how do you call out. N95 really handy when switching network fast. If you have money>>> n95.

Quality sound is great on n95, others dont know.

comedi

PM Me your contact info in any instant messaging network mentioned above. Il will help you.

Should I download “fring” in my mobile, for icq, msn, skype ?

ma patience is over. go to #asterisk irc