SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 23, 2009 - 02:00 PM Reply with quote Back to top
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
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
Posted: Sep 23, 2009 - 02:20 PM Reply with quote Back to top
Hi The problem will be with your nat=yes/no settings.

Ian
View user's profile Send private message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 23, 2009 - 02:46 PM Reply with quote Back to top
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
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
Posted: Sep 23, 2009 - 09:42 PM Reply with quote Back to top
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
View user's profile Send private message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 24, 2009 - 09:27 AM Reply with quote Back to top
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.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
Posted: Sep 24, 2009 - 02:09 PM Reply with quote Back to top
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
Quote:
nat=no
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
Quote:
nat=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 )
View user's profile Send private message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 24, 2009 - 04:25 PM Reply with quote Back to top
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?
View user's profile Send private message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 25, 2009 - 02:10 PM Reply with quote Back to top
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?
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
Posted: Sep 25, 2009 - 04:04 PM Reply with quote Back to top
Hi

How many interfaces have you ?

and are you port forwardming or is it in the dmz ?

Ian
View user's profile Send private message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 25, 2009 - 04:15 PM Reply with quote Back to top
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
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3363
Location: Bath UK
Status: Offline
Posted: Sep 25, 2009 - 04:41 PM Reply with quote Back to top
Hi

Are they both internal IP addresses ?

I also see you have set sip to port 5061 any reason for this ?

Ian
View user's profile Send private message
talkeasyOffline



Joined: Dec 03, 2004
Posts: 54
Location: UK & Poland
Status: Offline
Posted: Sep 25, 2009 - 04:57 PM Reply with quote Back to top
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?
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.