Hi Experts,
[UPDATE -
Looking at the CLI output when both are active, I get 2 messages about every 30 seconds - “SRV mapped to host sipgate.co.uk, port 5060” - I don’t get messages about the other service providors]
Please can you help…
I have registered 2 SIPGATE accounts (1 for my Wife & General Home, 1 for myself (Private Line)), and set them up on *. Either works independantly if I comment the other out in the config below.
But, I am having a really strange problem (and starting to think that it is SIPGATE at fault!) - I can only dial in on the number for the last sipgate acct registered, the first one ALWAYS reports: “The service cannot be connected” on dialing.
The problem follows the order of registration, NOT a specific number…?
I am sure (well at least hope!) I’m not going mad… Please let me know if you can see any error in my config files
Regards
Dave
[SIP.CONF] - (Only bits related to SIPGATE)
[general]
disallow=all
allow=ulaw
allow=alaw
allow=ilbc
allow=gsm
fromdomain=[mydomain]
relaxdtmf=yes
rtpiholdtimeout=300
rtptimeout=60
useragent=Asterisk
nat=yes
dtmfmode=rfc2833
localnet=192.168.0.0/255.255.0.0
externip=[My external IP]
; Used for incomming & Outgoing
register => ACCT1:PASS@sipgate.co.uk/ACCT1
register => ACCT2:PASS@sipgate.co.uk/ACCT2
; Others…
; register => @sip.voipbuster.com
; register => @fwd.pulver.com
; register => @sip.sipdiscount.com
; register => @lvdx.com
[sipgate2]
type=peer
username=ACCT2
secret=PASS
host=sipgate.co.uk
fromuser=ACCT2
fromdomain=sipgate.co.uk
nat=yes
authuser=PASS
dtmfmode=info
context=SIPGATE2-in
insecure=very
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
; allow=gsm
[sipgate1]
type=peer
username=ACCT1
secret=PASS
host=sipgate.co.uk
fromuser=ACCT1
fromdomain=sipgate.co.uk
nat=yes
authuser=PASS
dtmfmode=info
context=SIPGATE1-in
insecure=very
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
; allow=gsm
[extenstions.conf] - Again only relevent stuff
[globals]
SIPGATE1 => SIP/SIPGATE1
SIPGATE2 => SIP/SIPGATE2
VOIPBUSTER => SIP/VOIPBUSTER
FWD => SIP/FWD
SIPDISCOUNT => SIP/SIPDISCOUNT
LVDX = SIP/LVDX
[SIPGATE1]
exten => _X.,1,SetCallerID([MYCALLERID])
exten => _X.,2,Dial(SIP/${EXTEN:1}@sipgate,20,tr)
exten => _X.,3,Congestion
exten => _X.,4,Busy
exten => _X.,5,Hangup
[SIPGATE1-in]
exten => h,1,Hangup
exten => ACCT1,1,Dial(SIP/805,20,tr)
[SIPGATE2]
exten => _X.,1,SetCallerID([MYCALLERID])
exten => _X.,2,Dial(SIP/${EXTEN:1}@sipgate,20,tr)
exten => _X.,3,Congestion
exten => _X.,4,Busy
exten => _X.,5,Hangup
[SIPGATE2-in]
exten => h,1,Hangup
exten => ACCT2,1,Dial(SIP/804&SIP/805&SIP/850,20,tr)
[VOIPBUSTER]
exten => _X.,1,SetCallerID([MYCALLERID])
exten => _X.,2,Dial(SIP/${EXTEN:1}@voipbuster,20,tr)
exten => _X.,3,Congestion
exten => _X.,4,Busy
exten => _X.,5,Hangup