Posted: Mon Oct 11, 2004 5:20 pm Post subject: [Asterisk-bsd] One way calling... NetBSD, sipphone or NAT pr
Hey folks...
I'm running asterisk on NetBSD 2.0.
My configuration is such that the box it is running on is also serving as
a router and NAT device. I get a strange error (details below) when
the bindaddr is set to 0.0.0.0, where it tries to use my $HOST variable
and do a reverse lookup to find the IP to bind to. If I hack it, and
put it in my locahosts file so it resolves, at least that problem appears to
go away.
Now, if it is set to my NAT interface IP, i get no error, and if it is set
to my external IP, the phones on the inside won't register to it because
asterisk isn't listening on the external IP. For this reason, I wanted
the bindaddr to be 0.0.0.0.
When I place a call via sipphone, which registers fine, the remote users
gets the call and answers it without problem. They can hear me fine.
However, even though we've run traces and the packets hit the asterisk box,
no packets go from the asterisk box to the phone.
I also get this error repeatedly, only when the bindaddr is 0.0.0.0:
Oct 11 16:55:22 ERROR[1262485504]: acl.c:265 ast_ouraddrfor: Error writing to routing socket: Invalid argument
Here are my configs. Any thoughts? Again, NetBSD 2.0.
For the sip.conf, it looks something like this:
[general]
port = 5060 ; Port to bind to
bindaddr= 0.0.0.0 ; This is supposed to work.
externip = 208.XXX.XXX.XXX ; Address we're going to put in SIP messages
; since we're behind a NAT
localnet = 192.168.168.0/255.255.255.0
context = from-sip ; Default for incoming calls
;
[intern-post]
; if someone dials "5" in front of their number, send out via sipphone (free)
include => sipphone-forced
[sipphone-forced]
; If the user is calling 5xxx... then we assume that they are calling
; a SIPPHONE extension, and send accordingly.
;
exten => _5.,1,SetCallerID(${SIPPHONEUSERID})
exten => _5.,2,SetCIDName(${MYNAME})
exten => _5.,3,Dial(SIP/${EXTEN:1}@proxy01.sipphone.com)
exten => _5.,4,Playback(invalid)
exten => _5.,5,Hangup
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum