Authorization by IP

I’m trying to configure my Asterisk (Ver. 1.6.2.7) with FreePBX 2.8.0.3 to make external calls. When make a call I hear that “Username is incorrect”. In my providers log there is that username during authorization is IP adress and should be my number. Internal calls work.

Peer details of my trunk “2call”:
type=friend
secret=****
qualify=yes
nat=yes
insecure=very
host=82.177.59.140
fromuser=48616107744
dtmfmode=rfc2833
context=from-2call
authname=48616107744
allow=all

sip show peers:
Name/username Host Dyn Nat ACL Port Status
1020/1020 10.0.0.107 D N A 51982 OK (13 ms)
1030 (Unspecified) D N A 5060 UNKNOWN
2call 82.177.59.140 N 5060 OK (12 ms)
3 sip peers [Monitored: 2 online, 1 offline Unmonitored: 0 online, 0 offline]

sip show registry:
Host dnsmgr Username Refresh State Reg.Time
82.177.59.140:5060 N 48616107744 105 Registered Wed, 04 Aug 2010 13:44:59
1 SIP registrations.

sip show channels
Channel Location State Application(Data)
0 active channels
0 active calls
0 calls processed

Can anybody help?