This works for both inside and outside the local network as long as you forward outside voip traffic to your Asterisk box.
The following settings have been tested on:
In this example:
[SIP username] = 101 [your password] = mypassword [realm of your asterisk] = asterisk (default for trixbox)
Trixbox sip_nat.conf
externip=x.x.x.x ;Your external IP or hostname localnet=x.x.x.x/255.255.255.0 ;Your internal network e.g. 192.168.1.0
Asterisk sip.conf
[101] username=101 type=friend secret=mypassword record_out=Adhoc record_in=Adhoc qualify=yes port=5060 nat=yes mailbox=101@device host=dynamic dtmfmode=rfc2833 context=from-internal canreinvite=no callerid=Nokia
Set the following on your Nokia:
SIP Settings
Profile name: Asterisk Service profile: IETF Default access point: [set your wifi access point] Public user name: sip:[SIP username]@[domain or IP address] Use compression: No Registration: Always on Use security: No
Proxy server
Proxy server address: sip:[domain or IP address] Realm: [realm of your asterisk] User name: [SIP username] Password: [your password] Allow loose routing: yes Transport type: UDP Port: 5060
Registrar server
Registrar server address: sip:Asterisk Realm: none (leave blank) User name: none (leave blank) Password: none (leave blank) Transport type: UDP Port: 5060