Code:
[reveil]
exten => _977XXXXXXXXXXXX,1,Answer()
exten => _977XXXXXXXXXXXX,n,NoOp(${CDR(accountcode)})
exten => _977XXXXXXXXXXXX,n,Set(ACCOUNTCDE=${CDR(accountcode)})
exten => _977XXXXXXXXXXXX,n,Wait(1)
exten => _977XXXXXXXXXXXX,n,Playback(hello-world)
exten => _977XXXXXXXXXXXX,n,Playback(date)
exten => _977XXXXXXXXXXXX,n,Saynumber(${EXTEN:3:2})
exten => _977XXXXXXXXXXXX,n,Playback(dot)
exten => _977XXXXXXXXXXXX,n,Saynumber(${EXTEN:5:2})
exten => _977XXXXXXXXXXXX,n,Playback(dot)
exten => _977XXXXXXXXXXXX,n,Saynumber(${EXTEN:7:4})
exten => _977XXXXXXXXXXXX,n,Wait(1)
exten => _977XXXXXXXXXXXX,n,Saynumber(${EXTEN:11:2})
exten => _977XXXXXXXXXXXX,n,Playback(hours)
exten => _977XXXXXXXXXXXX,n,Playback(and)
exten => _977XXXXXXXXXXXX,n,Saynumber(${EXTEN:13:2})
exten => _977XXXXXXXXXXXX,n,Playback(minutes)
exten => _977XXXXXXXXXXXX,n,AGI(reveil.agi,${ACCOUNTCDE},${EXTEN:3:2},${EXTEN:5:2},${EXTEN:7:4},${EXTEN:11:2},${EXTEN:13:2})
exten => _977XXXXXXXXXXXX,n,Hangup()
exten => reveil,1,Answer()
exten => reveil,n,Wait(1)
exten => reveil,n,PlayBack(hello-world)
exten => reveil,n,Wait(1)
exten => reveil,n,SayUnixTime(,CET,kMbdY)
exten => reveil,n,Hangup()
Tu auras ainsi une ligne dans ta cli durant un appel qui t'indique l'accountcode recupéré.