Sip.conf
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
[1000]
secret=1000
type=friend
context=phones
host=dynamic
[2000]
secret=2000
type=friend
context=phones
host=dynamic
extensions.conf
[general]
autofallthrough = yes
static = yes
writeprotect = no
clearglobalvars = yes
[default]
exten => s,1,Varbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()
[incoming_calls]
[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()
exten => 1000,1,Verbose(1|Extension 1000)
exten => 1000,n,Dial(SIP/1000,30)
exten => 1000,n,Hangup()
exten => 2000,1,Verbose(1|Extension 2000)
exten => 2000,n,Dial(SIP/2000,30)
exten => 2000,n,Hangup()
[phones]
include => internal
|