Code:
; APPELS ENTRANTS
[fromippi]
exten => s,1,Ringing
exten => s,n,Answer
exten => s,n,Dial(SIP/7000)
exten => s,n,Hangup
[fromfree]
;exten => s,1,Answer
;exten => s,n,Wait(3)
exten => s,1,Ringing
exten => s,n,Answer
exten => s,n,Dial(SIP/7000)
exten => s,n,Hangup
; MACRO SORTANTS
[macro-ippi-out]
exten => s,1,Answer
exten => s,n,Dial(SIP/ippi_out/${ARG1})
exten => s,n,Hangup
[macro-free-out]
exten => s,1,Answer
exten => s,n,Dial(SIP/free_out/${ARG1})
exten => s,n,Hangup
; APPELS SORTANTS
[mdm]
exten => _70xx,1,Ringing
exten => _70xx,n,Dial(SIP/${EXTEN},30,TRHtrh)
; Ippi repondeur
exten => *1234,1,Macro(ippi-out,*1234)
; IPPI vers ippi
exten => _889XXXXXX,1,Macro(ippi-out,${EXTEN})
; IPPI tout format
exten => _053500xxxx,1,Macro(ippi-out,${EXTEN})
exten => _3353500xxxx,1,Macro(ippi-out,${EXTEN})
exten => _+3353500xxxx,1,Macro(ippi-out,${EXTEN})
exten => _003353500xxxx,1,Macro(ippi-out,${EXTEN})
; FREE 01 à 05 + 09 tout format numéro masqué
exten => _0[1-5,9]XXXXXXXX,1,Macro(free-out,*31*${EXTEN})
exten => _33[1-5,9]XXXXXXXX,1,Macro(free-out,*31*${EXTEN})
exten => _+33[1-5,9]XXXXXXXX,1,Macro(free-out,*31*${EXTEN})
exten => _0033[1-5,9]XXXXXXXX,1,Macro(free-out,*31*${EXTEN})
; FREE 01 à 05 + 09 tout format numéro affiché
exten => _5[1-5,9]XXXXXXXX,1,Macro(free-out,0${EXTEN:1})
; FREE 0800 0805 0809 tout format
exten => _080[0,5,9]XXXXXX,1,Macro(free-out,${EXTEN})
exten => _3380[0,5,9]XXXXXX,1,Macro(free-out,${EXTEN})
exten => _+3380[0,5,9]XXXXXX,1,Macro(free-out,${EXTEN})
exten => _003380[0,5,9]XXXXXX,1,Macro(free-out,${EXTEN})
; FREE 08088 tout format
exten => _08088XXXXX,1,Macro(free-out,${EXTEN})
exten => _338088XXXXX,1,Macro(free-out,${EXTEN})
exten => _+338088XXXXX,1,Macro(free-out,${EXTEN})
exten => _00338088XXXXX,1,Macro(free-out,${EXTEN})
; FREE 118713
exten => 118713,1,Macro(free-out,${EXTEN})
; FREE 3101 3131 3212 3222
exten => 3101,1,Macro(free-out,${EXTEN})
exten => 3131,1,Macro(free-out,${EXTEN})
exten => 3212,1,Macro(free-out,${EXTEN})
exten => 3222,1,Macro(free-out,${EXTEN})
; FREE REPONDEUR
exten => **1,1,Macro(free-out,${EXTEN})
; APPEL D'URGENCE IMPOSSIBLE
exten => _11[0,2,5,9],1,Answer
exten => _11[0,2,5,9],n,Wait(1)
exten => _11[0,2,5,9],n,SendText(Appel secours impossible.)
exten => _11[0,2,5,9],n,Wait(6)
exten => _11[0,2,5,9],n,SendText(Utiliser le fixe free)
exten => _11[0,2,5,9],n,Wait(6)
exten => _11[0,2,5,9],n,Hangup
exten => _1[5,7,8],1,Answer
exten => _1[5,7,8],n,Wait(1)
exten => _1[5,7,8],n,SendText(Appel secours impossible.)
exten => _1[5,7,8],n,Wait(6)
exten => _1[5,7,8],n,SendText(Utiliser le fixe free)
exten => _1[5,7,8],n,Wait(6)
exten => _1[5,7,8],n,Hangup
Attention le répondeur asterisk n'est pas ici parametré.