25 lines
684 B
Plaintext
25 lines
684 B
Plaintext
|
[general]
|
||
|
static=yes
|
||
|
writeprotect=no
|
||
|
|
||
|
[from-trunk]
|
||
|
; (888)88-MOENY
|
||
|
exten => 18888866369,1,Answer()
|
||
|
same => n,Wait(0.5)
|
||
|
same => n,agi(googletts.agi,"Thank you for calling Moeny! No AI is available to speak right now. I'm just a Google Goog-let. But call back soon and you'll be chatting with AI so good you think it's a real person! Bye for now!",en)
|
||
|
same => n,Hangup()
|
||
|
|
||
|
; (559)TALK-2-AI
|
||
|
exten => 15598255224,1,Goto(s,1)
|
||
|
|
||
|
exten => s,1,Answer()
|
||
|
same => n,Wait(0.5)
|
||
|
same => n,Playback(hello-world&and&goodbye)
|
||
|
same => n,Wait(0.5)
|
||
|
;same => n,Dial(PJSIP/101)
|
||
|
same => n,Hangup()
|
||
|
|
||
|
[from-internal]
|
||
|
exten => 1234,1,Goto(from-trunk,s,1)
|
||
|
exten => 5678,1,Goto(from-trunk,18888866369,1)
|