Voici mon fichier sip.conf.
Code:
[general]
language=fr
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
canreinvite=no
defaultexpiry=3600
registertimeout=30
registerattempts=0
disallow=all
allow=alaw
allowguest=yes
nat=yes
externip=89.XX.XX.95
localnet=192.168.1.0/255.255.255.0
session-timers=refuse 

register => 00331xxxxx:xxxxxx@sip.ovh.fr:5962/00331xxxxx
register => 00331xxxxx:xxxxxx@sip.ovh.fr:5962/00331xxxxx

[400]
type = friend
username=400
callerid="400" <00331xxxxx> 
secret = xxxxxx
port=5060
host = dynamic
hassip = yes
hasiax = no
hash323 = no
context =local
language = fr
insecure = port
nat = yes
canreinvite = no
promiscredir=no
dtmfmode = info
video = no
restrictcid = no
amaflags = default
;mailbox=150@default

[200]
type = friend
username=200
callerid="400" <00331xxxxx> 
secret = xxxxxx
port=5060
host = dynamic
hassip = yes
hasiax = no
hash323 = no
context =local
language = fr
insecure = port
nat = yes
canreinvite = no
promiscredir=no
dtmfmode = info
video = no
restrictcid = no
amaflags = default
;mailbox=150@default

[forfait-ovh]
disallow=all
username=00331xxxxx
type=friend
secret=xxxxxx
qualify=yes
insecure=port,invite
host=sip.ovh.fr
fromuser=00331xxxxx
fromdomain=sip.ovh.fr
dtmfmode=inband
outboundproxyport=5962
context=local
allow=ulaw
allow=alaw

[forfait1-ovh]
disallow=all
username=00331xxxxx
type=friend
secret=xxxxxx
qualify=yes
insecure=port,invite
host=sip.ovh.fr
fromuser=00331xxxxx
fromdomain=sip.ovh.fr
dtmfmode=inband
outboundproxyport=5962
context=local
allow=ulaw
allow=alaw