[Asterisk-Users] Asterisk, ATA-186 & Sipgate.de / sipgate.co.uk

Ronald Wiplinger ronald.wiplinger at agptelecom.com
Sat Oct 23 23:08:53 MST 2004


I try to get the following to work:

Sipgate.de and sipgate.co.uk are configured as gateway, while the 
ATA-186 has two phone sets attached.

I tried:

ATA settings as described at: 
http://www.loligo.com/asterisk/Cisco/ATA-186-guide.v20030628.txt
(just with a fixed IP)

sip.conf:
======

[general]
context=default			
port=5060		
bindaddr=0.0.0.0	
srvlookup=yes		
	
register => 5552220:my_password1 at sipgate.de/5552220
register => 4782156:my_password2 at sipgate.co.uk/4782156

externip = 61.220.121.xx

localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks

[601]
type=friend
username=601
secret=my_password1
canreinvite=no
host=dynamic
dtmfmode=rfc2833
mailbox=601
nat=yes


[602]
type=friend
username=602
secret=my_password2
canreinvite=no
host=dynamic
dtmfmode=rfc2833
mailbox=601
nat=yes


[sipgate.de]
type=friend
username=5552220
secret=my_password3
host=sipgate.de
fromuser=5552220
fromdomain=sipgate.net
nat=yes
context=incomingsipgate
canreinvite=no


[sipgate.co.uk]
type=friend
username=4782156
secret=my_password4
host=sipgate.co.uk
fromuser=4782156
fromdomain=sipgate.net
nat=yes
context=incomingsipgate
canreinvite=no




extensions.conf:
===========

[general]
static=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp				; Console interface for demo

[incomingsipgate]
exten => h,1,Hangup
exten => 800XXXX,1,Dial(SIP/internestelefon,20,tr)

[sipgate.de]
exten => _0049.,Dial(SIP/${EXTEN:1}@sipgate.de,30,tr)
exten => _0049.,2,Playback(invalid)
exten => _0049.,3,Hangup

[sipgate.co.uk]
exten => _0044.,Dial(SIP/${EXTEN:1}@sipgate.co.uk,30,tr)
exten => _0044.,2,Playback(invalid)
exten => _0044.,3,Hangup



I did not understand the paragraph of [incomingsipgate].
I also do not understand EXTEN:1   (should the second phone be EXTEN:2 ???)

starting the server with asterisk -vvvcg   brings a lots of lines ;-)
sip show users:

sipgate.co.uk       my_password2          incomingsipgate    No   Alway
sipgate.de            my_password1          incomingsipgate    No   Alway
602                     my_password4          incomingsipgate    No   Alway
601                     my_password3          incomingsipgate    No   Alway


sip show registry:

sipgate.co.uk:5060          4782156               105    Registered
sipgate.de:5060               5552220               105    Registered




Tests:
601 calls 602    busy
004910000      busy    (10000 at sipgate.de should play a tape)
No info on the screen (asterisk: *CLI>  )

What have I forgotten / made wrong?

bye

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ronald.wiplinger.vcf
Type: text/x-vcard
Size: 142 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20041024/5fdd2894/ronald.wiplinger.vcf


More information about the asterisk-users mailing list