如:欢迎致电XXX公司,业务咨询请按1(接通8001),技术支持请按2(接通8002).。。(welcome.wav)


  1. [default]

  2. exten => _x.,n,NoOp()

  3. exten => _x.,n(read),Read(a,welcome,1,,3,3)

  4. exten => _x.,n,Gotoif($["${a}"="1"]?8001)

  5. exten => _x.,n,Gotoif($["${a}"="2"]?8002:read)

  6. exten => _x.,n(8001),Dial(SIP/8001)

  7. exten => _x.,n,Hangup()

  8. exten => _x.,n(8002),Dial(SIP/8002)

  9. exten => _x.,n,Hangup()