1. sip.conf
[general]
context=trunk ; a remplir
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes

; on se register sur le compte ovh
register => xxxxxxxxxx:*******@sip.provider.net 

; comptes sip.

[bragon] ;comptes clients
type=friend
secret=******
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=alu
mailbox=100@default


[linutux]
type=friend
secret=******
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=alu
mailbox=100@default

[ridfa]
type=friend
secret=******
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=alu
mailbox=100@default

[acephale]
type=friend
secret=******
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=alu
mailbox=100@default


[trunk]
type=peer
host=sip.provider.net
context=alu-in
language=fr
insecure=very
username=09XXXXXXXX
secret=*******
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
  1. extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no 

[globals]
CONSOLE=Console/dsp
IAXINFO=guest
TRUNK=Zap/g2
TRUNKMSD=1 

L1=SIP/bragon
L2=SIP/linutux
L3=SIP/onoff
L4=SIP/ridfa
L5=SIP/acephale

[alu-in]

exten => s,1,Goto(alu,accueil,1)

[alu]

; si on appelle la ligne externe ca fait sonner toutes les lignes.
exten => accueil,1,Ringing(1)
exten => accueil,2,Answer
exten => accueil,3,Dial(${L1}&${L2}&${L3},30,tm)
exten => accueil,4,Hangup(16)
 
; 100 pour bragon , 101 pour linutux, 102 pour onoff

exten => 100,1,Dial(${L1},,r)
exten => 101,1,Dial(${L2},,r)
exten => 102,1,Dial(${L3},,r)
exten => 103,1,Dial(${L4},,r)
exten => 104,1,Dial(${L5},,r)

; echo test, si on appel le 330

exten => 330,1,Playback(demo-echotest)
exten => 330,n,Echo
exten => 330,n,Playback(demo-echodone)
exten => 330,n,Goto(s,6)

include => appel-sortant

[appel-sortant]
; Cette partie gere les appels sortants
exten => _X.,1,Dial(SIP/${EXTEN}@trunk)
 
asterisk_conf_de_base.txt · Dernière modification: 2010/08/06 12:57 (modification externe)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki