Hangup when calling from WAN

Hello,

I’ve got a problem on my FreePBX installation.
I’m making tests with 2 softphones, one is in the same LAN that the FreePBX. The other one is outside (it pass through internet).

When i call from the inside phone, the call is perfect.
When i call from the outside phone, the call hangup in less than 1 minute.

I think I have a NAT problem … but any help will be welcome :wink:

Here is the log of the call from the external phone :

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/5004
– Connected line update to SIP/5001-00000003 prevented.
– SIP/5004-00000004 is ringing
– SIP/5004-00000004 is ringing
– Connected line update to SIP/5001-00000003 prevented.
– SIP/5004-00000004 answered SIP/5001-00000003
– Executing [h@macro-dial-one:1] Macro(“SIP/5001-00000003”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/5001-00000003”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“SIP/5001-00000003”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/5001-00000003’ in macro ‘hangupcall’
== Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/5001-00000003’
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘SIP/5001-00000003’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on ‘SIP/5001-00000003’ in macro ‘exten-vm’
== Spawn extension (from-internal, 5004, 2) exited non-zero on ‘SIP/5001-00000003’

Thank’s!

Ok, I’ve found my error!
I hadn’t install the Asterisk SIP Settings Module,
Now that Asterisk knows my external IP, its working sometimes.