I am trying to call from one internal phone to another internal phone - but I can not get it working :(.

I have an analog phone connected to a Digium TDM400P and an IP phone (identified as user:5)

In directory.xml I have identified the IP phone as:
<user id="5">
<params>
  <param name="password" value="5"/>
</params>
</user>


In my dialplan I have:
<extension name="Internal-5">
<condition field="destination_number" expression="^5$">
  <action application="bridge" data="sofia/${sip_profile}/5%${sip_profile}"/>
</condition>
</extension>


In sophia.xml I try to make it so that sip phones have to register by having:
<!--<param name="accept-blind-reg" value="true"/> -->
<param name="auth-calls" value="true"/>
<param name="auth-all-packets" value="true"/>



When I dial '5' on the analog phone I can see that freeswitch tries to make the connection, but can not:

[NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute bridge(sofia/${sip_profile}/5%${sip_profile})
[DEBUG] switch_core_state_machine.c:158 switch_core_standard_on_execute() Expanded String bridge(sofia/192.168.0.4/5%192.168.0.4)
[WARNING] mod_sofia.c:1397 sofia_outgoing_channel() Cannot locate registered user 5@192.168.0.4


Any ideas/suggestions on how to call internal sip phones ?


Regards,
Craig.