| Author |
Message |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 23, 2009 - 02:00 PM |
|
I seem to have a mutually exclusive section of code in my vanilla Asterisk sip.conf (real info not shown):
| Quote: | externip=my.ip.address
fromdomain=my.domain
localnet=192.168.0.0/255.255.255.0
qualify=yes |
When the code is in place I can reach my remote ATA extensions over in Poland but my Sipgate numbers, although showing registered, fail to connect.
And vice-versa when the code is removed.
Any ideas, please? Is there, for example, an alternative way to get the remote extensions to work with different code?
Many thanks indeed!
Andy |
|
|
|
 |
ianplain
Site Admin
Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
|
| Posted:
Sep 23, 2009 - 02:20 PM |
|
|
Hi The problem will be with your nat=yes/no settings.
Ian |
|
|
|
 |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 23, 2009 - 02:46 PM |
|
|
Thanks for taking the time to reply Ian.
Have you got a few minutes to be specific. Nat is something I struggle with at the best of times!
Nat settings for the remote extensions or Sipgate or both?
Andy |
|
|
|
 |
ianplain
Site Admin
Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
|
| Posted:
Sep 23, 2009 - 09:42 PM |
|
|
Hi
Need to know the network topology realy
Is * behind a nat router ? and are the sets in poland on a vpn or behind nat as well
aslo what dothe sets sip.conf entries look like and what do the sipgate ones look like
Ian |
|
|
|
 |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 24, 2009 - 09:27 AM |
|
Nat is present at both ends. Poland has Handytone 386s.
The relevant parts of sip.conf are:
| Code: |
[general]
port = 5061
bindport=5061
bindaddr=192.168.0.45
tcpenable=yes
tcpbindaddr=my.ip.address:5061
externip=my.ip.address
fromdomain=my.domain
localnet=192.168.0.0/255.255.255.0
qualify=yes
nat=yes
language=en
context = default
register => username:password@sipgate.co.uk/username ;
; codecs
disallow=all
allow=ulaw
allow=alaw
[2208] ; Polish ATA386
type=friend
auth=md5
username=2208
secret=password
callerid="****" <2208>
host=dynamic
nat=no
qualify=yes
insecure=very
canreinvite=no
disallow=all
allow=ulaw
;allow=gsm
allow=alaw
[sipgate]
type=peer
username=sipgate
fromuser=sipgate
secret=password
context=default
host=sipgate.co.uk
fromdomain=sipgate.co.uk
insecure=very
caninvite=no
canreinvite=no
nat=no
disallow=all
allow=ulaw
allow=alaw
[inbound-sipgate] ;
type=peer
context=sipgate-in
host=sipgate.co.uk
fromdomain=sipgate.co.uk |
Many thanks for looking. |
|
|
|
 |
ianplain
Site Admin
Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
|
| Posted:
Sep 24, 2009 - 02:09 PM |
|
Hi
| Quote: | [general]
port = 5061
bindport=5061
bindaddr=192.168.0.45
tcpenable=yes
tcpbindaddr=my.ip.address:5061
externip=my.ip.address
fromdomain=my.domain
localnet=192.168.0.0/255.255.255.0
qualify=yes
nat=yes
language=en
context = default
register => username:password@sipgate.co.uk/username ;
; codecs
disallow=all
allow=ulaw
allow=alaw
[2208] ; Polish ATA386
type=friend
auth=md5
username=2208
secret=password
callerid="****" <2208>
host=dynamic
Try yes
qualify=yes
insecure=very
canreinvite=no
disallow=all
allow=ulaw
;allow=gsm
allow=alaw
[sipgate]
type=peer
username=sipgate
fromuser=sipgate
secret=password
context=default
host=sipgate.co.uk
fromdomain=sipgate.co.uk
insecure=very
caninvite=no
canreinvite=no
Try Yes
disallow=all
allow=ulaw
allow=alaw
[inbound-sipgate] ;
type=peer
context=sipgate-in
host=sipgate.co.uk
fromdomain=sipgate.co.uk |
Ian
(Would iTMS mean anything to you ) |
|
|
|
 |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 24, 2009 - 04:25 PM |
|
Changing Nat to Yes from No does not reslove the issue, sadly.
I have isolated the troublesome code to just one line:
| Code: | | externip=my.ip.address |
With the line disabled the remote Polish extension shows as Unreachable. With the line enabled the Sipgate call is rejected.
This is so whether Nat is set to Yes or No.
| Quote: | | (Would iTMS mean anything to you) |
The TeleMarketing s/w? |
|
|
|
 |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 25, 2009 - 02:10 PM |
|
|
I am beginning to suspect that the problem lies elsewhere.
When the bindaddress is set to 192.168.0.45 (the local * machine) the remote extensions work but not the Sipgate ones.
When set to 0.0.0.0 the Sipgate extensions work but not the remote ones.
Is there a way to have multiple Bind Addresses? |
|
|
|
 |
ianplain
Site Admin
Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
|
| Posted:
Sep 25, 2009 - 04:04 PM |
|
|
Hi
How many interfaces have you ?
and are you port forwardming or is it in the dmz ?
Ian |
|
|
|
 |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 25, 2009 - 04:15 PM |
|
|
Hi
Not sure I fully understand your question. * is on a box with 2 IP addresses but only uses one of them.
I am port forwarding to that box. Would it help to put it in the DMZ?
Andy |
|
|
|
 |
ianplain
Site Admin
Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
|
| Posted:
Sep 25, 2009 - 04:41 PM |
|
|
Hi
Are they both internal IP addresses ?
I also see you have set sip to port 5061 any reason for this ?
Ian |
|
|
|
 |
talkeasy
Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
|
| Posted:
Sep 25, 2009 - 04:57 PM |
|
|
Yes they are both internal IP addresses.
I am using 5061 as there is another PBX on the network listening on 5060 (a Fritzbox).
Would moving Ports around help? |
|
|
|
 |
|