J'avance petit à petit
apres quelques modif c'a marche appel dans les 2 sens par contre je n'arrive pas a transferer (1ps en xlite et 1 en sjphone idem)
merci si vous avez une idée
sip.conf
[general]
context=local ; Default context for incoming calls
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
language=fr; message vocaux en francais
defaultexpirey=1800
Disallow=all
Allow=ulaw
Dtmfmode=rfc2833
srvlookup=yes
regcontext=localphones
[437621XXX]
type=peer
host=172.16.100.3
fromdomain=node000000
context=trunk
language=fr
insecur=invite,port
nat=yes
canreinvite=yes
dtmfmode=rfc2833
[7226]
secret=7226
context=local
callerid="VINCENT" <7226>
type=friend
host=dynamic
nat=yes
mailbox=7226
canreinvite=yes
[7227]
secret=7227
context=local
callerid="Mike" <7227>
type=friend
host=dynamic
nat=yes
mailbox=7227
canreinvite=yes
extensions.conf
[trunk]
exten => _X.,1,Dial(SIP/${EXTEN},50,rt)
[users]
include => inside
[inside]
exten => _X.,1,Dial(SIP/${EXTEN},50,rt)
[local]
exten => _1xxx,1,Set(CALLERID{NUM}=1515)
exten => _1xxx,2,Dial(SIP/437621XXX/${EXTEN},20,r,t)
exten => _0xxxxxxxxxx,1,Set(CALLERID{NUM}=1515)
exten => _0xxxxxxxxxx,2,Dial(SIP/437621XXX/${EXTEN},20,r,t)
exten => _8xxx,1,Set(CALLERID{NUM}=1515)
exten => _8xxx,2,Dial(SIP/437621XXX/${EXTEN},20,r,t)
;include =>trunk
exten =>7227,1,(Dial(SIP/Mike,10)
exten =>7227,2,VoiceMail(7227)
exten =>7227,3,Goto(accueil,1,s,1)
exten =>7226,1,(Dial(SIP/VINCENT,10)
exten =>7226,2,VoiceMail(7226)
exten => **1,1,VoicemailMain(${CALLERID(num)})
exten => **1,2,Hangup
exten => **2,1,VoicemailMain
exten => **2,2,Hangup
include=>parkedcalls