Project

General

Profile

Connecting Sip phone from External IP

Added by Richard hubbard almost 10 years ago

Hey Guys,

I'm really struggling with this one ! I'm trying to connect a SIP phone to the GoAutoDial server based at work from home.

I'm just getting connection refused, I've forwarded ports 5060, 10000-20000 to the server but still not having any luck.

I've also modified the Sip.conf to ensure it has the correct external IP along with Internal IP address.

;localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks
;localnet=10.0.0.0/255.0.0.0 ; Also RFC1918
;localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation
;localnet=169.254.0.0/255.255.0.0 ;Zero conf local network
localnet=192.168.1.200/255.255.255.0

The first 4 lines weren't commented out, but unsure where it received those IP addresses from as not from my network and unsure if that would effect anything also?

NAT=yes

Now from my understanding all traffic would be unencrypted through port 5060 is this correct? This shouldn't matter for local traffic but external could compromise the calls?

I'm not finding too much documentation for GoAutoDial, is there another admin panel for plain vicidial that I can edit?

Also no users in sip.conf, are they stored somewhere separate for GoAutoDial? (Unsure if this could be the problem)

Also unsure best way to install SIP Trunk, from my provider have only been given my secret and domain, no username?

Thanks for the help guys! Looking forward for this to be up and running :)

Previous experience had been with Trixbox, so big learning curve here :)

Richie

PS. IS there more documentation than whats in the WIKI?


Replies (5)

RE: Connecting Sip phone from External IP - Added by Richard hubbard almost 10 years ago

Update:

managed to get the SIP connected, but only when manually editing the sip.conf ? Even tho all details are correct within the GoAdmin I'm unsure what file it is actually editing? Possible permissions error where it doesn't update the file?

But at the same time it retains the information, which I assume means it is putting it into the database? But not transferring to the asterisk config?

sip-vicidial.conf doesn't have any relevant information inside also.

Looking at the asterisk debug log, I'm receiving some errors:

[Jul 2 11:29:34] NOTICE12439: chan_sip.c:25829 handle_request_register: Registration from '"7000"<sip:>' failed for '192.168.1.1:62846' - Wrong password

When I know 100% the password is correct, but again I can't find these users in any config files? (Is that something I manually have to do after entering them in GoAdmin?)

Also receiving this error:

[Jul 2 11:28:36] WARNING12444: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Jul 2 11:28:36] WARNING12444: db.c:649 ast_db_gettree: Database unavailable

I've even gone as far as chmod 777 astdb file to ensure it should be able to be read, no idea why its Permission denied, asterisk is running as root also?

Can't find much information online in regards to these problems / fix for them :(

Richard

RE: Connecting Sip phone from External IP - Added by Richard hubbard almost 10 years ago

Okay, so I manually added the phone and now it is connecting via the softphone, unable to make calls (Don't think dialplans have been setup either)

Has something gone wrong with my setup that means GoAdmin isn't actually updating any settings for asterisk?

Should I try and reinstall the software?

Thanks for the upcoming help guys! Much appreciated :)

RE: Connecting Sip phone from External IP - Added by Richard hubbard almost 10 years ago

Hey Guys.

Please delete/ignore this thread.

Reinstalled from scratch and all seems to be working, for some reason last time any settings from GoAdmin wasn't getting transferred across.

This may have happened when I updated to GoAdmin 3.3 ..

Tested first, now upgrading again to GoAdmin 3.3 and will post results if doesn't work!

RE: Connecting Sip phone from External IP - Added by Demian Biscocho almost 10 years ago

Glad to hear you got it working. Just keep on posting if you encounter some issues.

RE: Connecting Sip phone from External IP - Added by Muhammad Taha Shafaat over 9 years ago

solved with the simple command:

chown asterisk:asterisk /var/lib/asterisk/astdb

[Oct 16 18:05:02] WARNING3820: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 16 18:05:02] WARNING3820: db.c:649 ast_db_gettree: Database unavailable

Regards:

http://m-taha.blogspot.com

    (1-5/5)
    Go to top