appliance

Remote softphone setup help

sgadkari
Posts: 20
Member Since:
2007-08-15

I'm currently using Trixbox CE and it's working great for all the Aastra 9112i phones in the office. I'm trying to setup a few users to have softphones at home that access the Trixbox through a dyndns. I have already config my router for the dyndns and my Trixbox is on the DMZ to avoid port issues. I tried to config X-Lite to connect through the dyndns by the nameserver and by the IP, but X-Lite won't register to Trixbox.

Does anyone know what I'm doing wrong???

Thanks!

--Sid



mcclung8
Posts: 3
Member Since:
2007-08-02
I believe this would be NAT

I believe this would be NAT issues.
What does your /etc/asterisk/sip_nat.conf contain?
Do you have any trunks set up and working?
Do you have nat=yes under "Device Options" for the extension?



sgadkari
Posts: 20
Member Since:
2007-08-15
/etc/asterisk/sip_nat.conf

/etc/asterisk/sip_nat.conf has NO data in it...literally blank

Yes, I do have a trunk setup and it is functioning properly

Under Device Options for the extension NAT=yes

What should be in the sip_nat.conf file?



mcclung8
Posts: 3
Member Since:
2007-08-02
Bearing in mind that I am

Bearing in mind that I am far from being an expert here, and you should use this as a base for research. Unless, of course, an expert does chime in: Mine looks like this. My Trixbox is not behind nat, but I seem to remember having to do add this in order for remote clients to connect properly.

nat=yes
externip=XXX.XXX.XXX.XXX
localnet=192.168.1.0/255.255.255.0
externrefresh=10

I think that, since you are using dyndns, yours should look more like this:

nat=yes
localnet=192.168.1.0/255.255.255.0
externhost=yourFQDNhere
externrefresh = 300



sgadkari
Posts: 20
Member Since:
2007-08-15
OK...

things are now working pretty well...i can connect my softphone remotely to the box. Now i've got a bit of a problem; i can make outgoing calls (to internal extensions and to the outside world) from the softphone with no problems, but i cannot receive calls from ANYONE. i'm not too sure what the problem is...

sip_nat.conf:

nat=yes
localnet=192.168.254.5/255.255.255.0
externhost=[my dyndns]
externrefresh=300

Extension:

context=from-internal
nat=yes

The computer that is using the softphone is currently setup with a static public IP through my gateway, to avoid any port issues, and all firewall software has been config to allow x-lite. Is there anything you can think of that would stop me from receiving calls?



malbep
Posts: 3
Member Since:
2008-03-15
I have pretty close problem and I need help please

My trixbox Ce works fine internetwork (at home) and I install the dyndns from dyndns.org, and I can connect and my people outside can be registered and i can make a call but I can't hear someone talking. They can hear me, but I can not hear them when they talk. So that mean from internal network to external there is sound but from outsite to internal there is not sound, but the phone rings.

So any body can help me please??? I have not idea on what going on. and which side is the problem???



sgadkari
Posts: 20
Member Since:
2007-08-15
here's what i can suggest...

malbep -- I had to setup the sip_nat.conf file and the rtp.conf file first. Here's what they look like:

sip_nat.conf
--------------
nat=yes
externhost=[enter your dyndns name here]
localnet=192.168.254.5/255.255.255.0
externrefresh=20

rtp.conf
---------
;
; RTP Configuration
;
[general]
;
; RTP start and RTP end configure start and end addresses
;
rtpstart=10000
rtpend=20000

Whatever ports you specify in rtp.conf, make sure that you are port forwarding them from your router to your Trixbox.

The other thing I changed was the "qualify" value in the individual extensions. I'm pretty sure that when you initially setup an extension, the value default is "no." I had to change all of mine to "yes"

Hope this helps!

--Sid



qostech
Posts: 15
Member Since:
2008-03-04
X-lite configuration

Please help, Ive done everithing, but what i cant find is how to setup x-lite i know what to do in the sip_nat.conf, but what i cant find, is how should de be configured the account in x-lite

For example, for an internal extension i use:

Under user Details

Display Name: external
User name: 100
Password: xxx
Authorization user name: (blank)
Domain 172.16.0.0

Under Domain Proxy
checked Register with domain and receive incoming calls
Send outbond via:
Proxy: 172.16.0.40 (trixbox address)

It works just fine, but whe trying to configure a remote extension, I cant figure what to enter in de Domain and proxy fields.

I´m using a computer that works as internet server, with ICS, the port fowarding im doing by software, and I think it is correct because i can admin my box from Internet.

So Please can any body give me a hint
thx



sgadkari
Posts: 20
Member Since:
2007-08-15
Try this for X-Lite

Here's how i've got x-lite configured...

Under User Details:

Display Name: [whatever]
User name: [Extn #]
Password: [same as extn #]
Authorization user name: [same as extn #]
Domain: [Enter the IP of your Trixbox]

Under Domain Proxy:

Register with Domain and Receive Incoming Calls [enabled]
Send Outboud via:
Target Domain

This is how all (8-10) of my x-lites are configured for people within the LAN and for those outside our office. Let me know how it goes!

--Sid



sgadkari
Posts: 20
Member Since:
2007-08-15
Oooops, I forgot

qostech, i forgot one more thing....i know it sounds dumb, but make sure that Windows firewall and any other software firewalls (like Symantec, etc.) are set to allow/unblock X-Lite

--Sid



qostech
Posts: 15
Member Since:
2008-03-04
Thx But

Ok, That doesnt Work, because, I cant put the IP from my Trixbox, because thas a private IP, and Im doing a port forwarding from the internet public addres, so under Domain field, i Cant put the domain of my internal network, I simply does not exist from outside.

Maybe, In you scenario you have all you phones and your tribox with public address.

Hope you can help me

Thx



sgadkari
Posts: 20
Member Since:
2007-08-15
Hmmm...

I just want to be sure I understand your setup...does your Trixbox have a public IP?

If not, verify that the port forwarding to your Trixbox is correct; make sure that port 5060 is being forwarded so the softphones can register, and also check the rtp.conf file and be sure to port forward the range that you have specified within rtp.conf

Aside from that, i'm not really sure what else you can do if your box isn't public...if possible, keep you box on the DMZ?

--Sid



qostech
Posts: 15
Member Since:
2008-03-04
Re: hm,m

My Box is in the internal network in the range 172.16.0.0, and my public addres is in the range 64.76.x.x I have a computer connected directly to internet, and with other network interfase is Sharing that connection to every other computer. In that computer is isntalled a software that do the port forwarding thing, its por forwarding the 5060, 80, 8080, and all SIP and IAX and RTP UDP and TCP ports.
My SIP_nat.conf has the following

nat=yes
externip=64.76.xxx.xxx
localnet=172.16.0.0/255.255.255.0
externrefresh=10

My rtp.conf

---------
;
; RTP Configuration
;
[general]
;
; RTP start and RTP end configure start and end addresses
;
rtpstart=10000
rtpend=20000

So my question still is how to setup x-lite



svetur
Posts: 4
Member Since:
2007-06-13
Everything looks ok on your

Everything looks ok on your trixbox, sgadkari mentioned all config parameters on xlite. Try connecting from different computer to see if it windows or maybe local network's problems. Try using dynamic ip or dyndns in domain field in Xlite. If it still doesn't work post your full extension config. Also you can go to logs in your linux box to track the problem too.

--

a



qostech
Posts: 15
Member Since:
2008-03-04
Ok

Ok, This is how my trixbox is working and network is working
Internet Server: 172.16.0.50
Trixbox server: 172.16.0.40

Static Public IP address: 64.76.60.xxx

internal softphones working fine:

Display Name: 114
User Name: 114
Password: xxx
Authorization user name: blank
Domain: 172.16.0.0
Domain Proxy: 172.16.0.40

External softphones appear registered but no working a all
Display Name: extern
User name: 100
password: 100
authorization user name: blank
Domain: 64.76.60.0
Domain Proxy: 172.16.0.40 (this is the only way the softphone registers any other way it says error 408 registration timeout)

Ports in internet server opened and redirected to 172.16.0.40 TCP and UDP
42766
10000-20000
8080
5070
5069
5004
4569
80

RTP.conf
;
; RTP Configuration
;
[general]
;
; RTP start and RTP end configure start and end addresses
;
rtpstart=10000
rtpend=20000

sip_adicional.conf 100 is external, no working 113 is internal working fine
[100]
type=friend
secret=100
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
pickupgroup=
nat=yes
mailbox=100@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/100
context=from-internal
canreinvite=no
callgroup=
callerid=device <100>
accountcode=
call-limit=50

[113]
type=friend
secret=113
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
pickupgroup=
nat=yes
mailbox=113@default
host=dynamic
dtmfmode=rfc2833
dial=SIP/113
context=from-internal
canreinvite=no
callgroup=
callerid=device <113>
accountcode=
call-limit=50

sip_nat.conf

nat=yes
externip=64.76.60.xxx
localnet=172.16.0.0/255.255.255.0
externrefresh=10

So, thats everything i can think of, the port redirection, i think it is ok, because, for example, I`m administering my box remotly by its public address, usingpor 8080, so thats why I think it is only a x-lite configuration problem, or I am missing a port or something.

Please Help!



sgadkari
Posts: 20
Member Since:
2007-08-15
Port 5060

qostech,

I was looking through your last post and I noticed that on your internet server you've opened a bunch of ports, except port 5060. Both extensions you listed are trying to use port 5060 to register to your box. Of course your internal softphone should work without problems, but the external one is probably showing registered, but not actually working.

Try port forwarding port 5060 (on TCP and UDP to be safe).

Hope that helps!

-Sid



qostech
Posts: 15
Member Since:
2008-03-04
ok

I added 5060, but same thing

nothing is happening



sgadkari
Posts: 20
Member Since:
2007-08-15
I can't figure it out

sorry man...i just don't know. My best suggestion would be to check the x-lite forums too, in case someone else has a similar setup and problems as well.

-Sid



bubbapcguy
Posts: 3178
Member Since:
2006-06-02
internet server

qostech, Your "internet server" is not MS ISA is it?
That would be your problem if so.



qostech
Posts: 15
Member Since:
2008-03-04
INTERNET SERVER

No, it´s a windows xp, installed a port fowarding software.

I´ll check xlite forums If I found something i´ll post it here



bubbapcguy
Posts: 3178
Member Since:
2006-06-02
windos routing

OK windos routing is not the best way to go
Why would want to expose a XP box to the outside world??? Just not smart.

Get a 50.00 router and be done with it.
As for trouble shooting Xlite...dump it and grab SJphone and setup using the public stun server.



qostech
Posts: 15
Member Since:
2008-03-04
we are using windows because

we are using windows because its a university project, and there wont be a router, just a windows based internet sevr, we are using xp just for testing purposes and they wont let us buy a router.

Please could you explain me what is a stun server??

And also, beside port 5060, what other ports should be fowarded



sgadkari
Posts: 20
Member Since:
2007-08-15
Besides port 5060

you need to forward whatever ports you specified in your rtp.conf file



bubbapcguy
Posts: 3178
Member Since:
2006-06-02
ports

FYI: SIP ports are UDP (not tcp)

You need 5060 (handshake port) and then you some RTP (media / audio ports) not all sip devices use the same one by default but many use the 10000 ~ 20000 (higher ports) so open up 10000 ~ 20000 UDP unless your devices use something different.

A stun server is server which is like a traffic cop for SIP VOIP packets.
It helps deal with NAT issues
Simple traversal of UDP over NATs
http://en.wikipedia.org/wiki/Simple_traversal_of_UDP_over_NATs



qostech
Posts: 15
Member Since:
2008-03-04
Thx

Ok, finally I got it working, its was a xlite config only.

Here it´s how i did it.

Xlite

Display name: extern
user name: 100
password: 100
domain: 64.76.60.xxx it work fine with anything on it
Domain Proxy: 64.76-60.xxx:5060 (trixbox server)

Under topology:
IP address: discover global address
Stun server:64.76.60.xxx:5060 (trixbox server)
Enable ICE: checked
Manually specify range: 10000 - 20000

Almost everithing works fine, the external phone registers, it appears registered in FOP, and it can make and receive calls

Now I only have one big last problem, I dont have audio in the calls, I understand its because I need to forward de rtp ports: 10000 - 20000 to the trixbox server, the proble is asI said before, I`m notusing a router, Im using a software solution for the port redirecting, but the software doesnt allow tu enter a port range tu forward, only single ports, so my questipon is, please, does any body know a software that can help me???



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.