2008年4月16日 星期三

How to set-up autocall by using LEXIS30

1. Install LEXIS30


2. Add a new context named "testnewout" in /etc/asterisk/extensions.conf


[testnewout]
exten=>_X.,1,Wait(2)
exten=>_X.,n,SendDtmf(9)
;exten=>_X.,n,Wait(1)
exten=>_X.,n,SendDtmf(9)
;exten=>_X.,n,Wait(1)
;exten=>_X.,n,SendDtmf(9)
;exten=>_X.,n,Wait(1)
exten=>_X.,n,SendDtmf(1)
exten=>_X.,n,Wait(12)
exten=>_X.,n,NoOp(${EXTEN})
exten=>_X.,n(play),Playback(demo-moreinfo)
exten=>_X.,n,Goto(${EXTEN},play)
exten=>_X.,n,Hangup()

3. Create a folder named "autocall" under root dircetory

4. Cerate a file named "test.c" in autocall folder(Download Here)

5. Compile test.c by typing "gcc test.c -o testapp"

6. Execute ths program by typing "sudo ./testapp M N SkypeID X"

  • M means how many times the program will execute,if you type 2, it will call the SkypeID twice
  • N means how many calls will setup, if you type 5, it will setup 5 calls at the same time
  • SkypeID is the first account on LEXIS30
  • X is the fourth argument,If there is a X,after call connection it will send DTMF"991" and wait for 12 sec,than play a 10 seconds voice file looply.If there is not a X,after call connection it will play a 2 min voice file than hang up.


沒有留言: