-46-
username=103
fromuser=103
regexten=103 ; When they register, create extension 401
secret=xxxxxxx ; Asterisk extension password
context=gateway ; Incoming calls context
dtmfmode=inband ; Very important for DISA to work
call-limit=1 ; Limit to 1 call max
callerid=GSM Gateway <103>
host=dynamic
nat=no ; Gateway is not behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT
insecure=very
qualify=yes
disallow=all
allow=ulaw ; prefered codec for DTMF detection
allow=alaw
20.6 extensions.conf
; ******* GSM Gateway incoming calls **********
[gateway]
exten => _103,1,Answer()
exten => _103,2,DigitTimeout(3) ; give enough time to do second stage
dialing
exten => _103,3,ResponseTimeout(5)
exten => _103,4,DISA(no-password|outgoing) ; here 'outgoing' is the
normal context to deal with the dial plan
[outgoing]
...
; example of LAN to GSM call
; call the MV-372 sim card mail box thru GSM
exten => _888,1,SetCallerID("xxxxxxxxxx")
exten => _888,2,Dial(SIP/${EXTEN}@103,60,r)
exten => _888,3,Hangup()
VoIPon www.voipon.co.uk [email protected] Tel: +44 (0)1245 808195 Fax: +44 (0)1245 808299