All pastes #20527 Raw Edit

Someone

public text v1 · immutable
#20527 ·published 2005-08-20 12:01 UTC
rendered paste body
2. 	Guidance for Asterisk: How do I configure Asterisk for sipgate?
 	Enclosed the necessary settings to configure to Asterisk for sipgate. (Very important to have the SIP ID at the end of the register command)


register => sip-id:sipgatepassword@sipgate.co.uk/sip-id

In the sip.conf:

[sipgate]
type=friend (or peer)
username=(seven digit SIP-ID)
secret=(SIP-Password, found under My Data at sipgate.co.uk)
host=sipgate.co.uk
fromuser=(seven digit SIP-ID)
fromdomain=sipgate.co.uk
nat=yes
authuser=SIP ID
dtmfmode=info (or inband)
context=inbound (or incomingsipgate)
insecure=very
canreinvite=no
disallow=all
allow=ulaw
allow=alaw


In the extensions.conf :

[incomingsipgate]
exten => h,1,Hangup
exten => seven digit SIP-ID,1,Dial(SIP/internestelefon,20,tr)

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

An alternate extension model:
[sipgate]

exten => _7.,1,SetCallerID(complete phone number excl. country code i.e. 02076644200)
exten => _7.,2,Dial(SIP/${EXTEN:1}@sipgate,20,tr)
exten => _7.,3,Congestion
exten => _7.,4,Busy
exten => _7.,5,Hangup

[inbound] (Where it says SIP ID, insert your SIP ID number)
exten => SIP ID,1,Answer
exten => SIP ID,2,Dial(Local/1000)