I have an asterisk 1.2 install on Debian 4 using the debian packages.
Internal & outbound calls work fine. However, incoming calls only work intermittently. As I made all this up as I went along, I’m hoping that someone here can tell me what I’ve done wrong. The inbound calls do not hit the server at all.
There are 4 DIDs in use.
All clients and server are behind seperate NATs.
I’ve been trying to figure this one out for a week now and haven’t gotten anywhere.
Config files are below. I have left extensions.conf out as internal calls work and when inbound hits the server it works fine. If you need any more info please let me know.
[general] context=default ; Default context for incoming calls ;allowguest=no ; Allow or reject guest calls (default is yes, this can also be set to 'osp' bindport=6060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=192.168.5.200 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls externip=126.96.36.199 ; Address that we're going to put in outbound SIP messages localnet=192.168.5.0/255.255.255.0; All RFC 1918 addresses are local networks nat=yes ; Global NAT settings (Affects all peers and users) defaultexpirey=120 disallow=all allow=alaw dtmfmode=auto #include sip-gotalk.conf #include sip-interdynamics.conf
; 07 3123 8026 register => 09412295:[PASSWORD]@sip.gotalk.com/09412295 register => 09412295:[PASSWORD]@sip.gotalk.com/0882119933 register => 09412295:[PASSWORD]@sip.gotalk.com/0390014464 register => 09412295:[PASSWORD]@sip.gotalk.com/0882119936 [09412295-outbound] type=peer username=09412295 fromuser=09412295 secret=[PASSWORD] insecure=very host=sip.gotalk.com dtmfmode=auto [09412295-inbound] username=09412295 type=user secret=[PASSWORD] fromuser=09412295 host=sip.gotalk.com context=sip-inbound [0882119933-inbound] username=09412295 type=user secret=[PASSWORD] fromuser=0882119933 host=sip.gotalk.com context=sip-inbound [0882119936-inbound] username=09412295 type=user secret=[PASSWORD] fromuser=0882119936 host=sip.gotalk.com context=sip-inbound-kiss
; Brisbane Extensions  type=friend username=2000 regexten=2000 secret=password nat=yes host=dynamic callerid="Brisbane Office" <2000> canreinvite=no mailbox=2000  type=friend username=2001 regexten=2001 secret=LKc3yvNpAW nat=yes host=dynamic callerid="Peter Page" <2001> canreinvite=no mailbox=2001