Hi.
I have two servers, FreeBSD (with NAT)
Asterisk 1.4.23.1 built by root @ v18s.org on a i386 running FreeBSD on 2009-04-03 17:23:14 UTC
and Debian (on my network)
Asterisk 1.4.21.2~dfsg-3 built by pbuilder @ grnetbox on a x86_64 running Linux on 2009-01-04 19:22:45 UTC
i try to call from the debian to fbsd user (on internet, not in the network). when i call, in the destination user rining, and when i take the call in the origing user still call him.
let me show you the sip show channels
In Debian
asteriskCLI> sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
192.168.1.1 400 258cc15a4a1 00102/00000 0x80004 (ulaw|h No Init: INVITE
192.168.1.190 vidal NjdhMTU2NWV 00101/00002 0x4 (ulaw) No Rx: INVITE
2 active SIP channels
asteriskCLI>
In FBSD
v18sCLI> sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
207.193.137.62 vidalOfici 3c161e89738 00102/00000 0x3f0004 (ulaw| No Init: INVITE
192.168.1.10 vidal 258cc15a4a1 00101/00102 0x4 (ulaw) No Rx: INVITE
2 active SIP channels
v18sCLI>
if you see, in all are INVITE status, but in the destination user i answer the call.
extensions on the Debian
exten => _XXX,1,Dial(SIP/${EXTEN}@192.168.1.1|90|Tt)
exten => _XXX,2,hangup
Note: The 192.168.1.1 its the freebsd
On FreeBSD:
exten => 9,1,Dial(SIP/9@asterisk)
exten => _9XXXXXXX,1,Dial(SIP/9${EXTEN}@asterisk)
asterisk=192.168.1.10 (In the debian i have a FX0)
if i call from the debian to freebsd user (on local network), it works, i think the problem its somthing with NAT.
I dont know what its my problem, ill try to do the same with iax but i have similar problem, so, i must work with sip.
if you need some configuration ples let me know.
Thank you.