Chinaunix首页 | 论坛 | 博客
  • 博客访问: 49238
  • 博文数量: 11
  • 博客积分: 2530
  • 博客等级: 少校
  • 技术积分: 130
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-03 17:06
文章分类

全部博文(11)

文章存档

2012年(1)

2011年(1)

2010年(8)

2009年(1)

我的朋友

分类: LINUX

2012-02-22 12:54:17

extensions.conf配置
 
[luyin]                  ;outbond_luyin
exten => _9X.,1,Set(CALLFILENAME=${STRFTIME(${EPOCH},UTC-8,%Y%m%d%H%M%S)}-${CALLERID(num)}-${EXTEN:1})
exten => _9X.,n,Set(PATH=/var/spool/asterisk/monitor/luyin/${STRFTIME(${EPOCH},UTC-8,%Y%m%d)}/${CALLERID(num)})
exten => _9X.,n,Set(CALLERID(all)=87120766)
exten => _9X.,n,MixMonitor(${PATH}/${CALLFILENAME}.wav,b)
exten => _9X.,n,Dial(SIP/112${EXTEN:1}@TG1,60)
exten => _9X.,n,Hangup()
 
输出结果:
 == Using SIP RTP CoS mark 5
    -- Executing [913811908714@luyin:1] Set("SIP/3164-0000001b", "CALLFILENAME=20120222195215-3164-13811908714") in new stack
    -- Executing [913811908714@luyin:2] Set("SIP/3164-0000001b", "PATH=/var/spool/asterisk/monitor/panguchangchun/20120222/3164") in new stack
    -- Executing [913811908714@luyin:3] Set("SIP/3164-0000001b", "CALLERID(all)=87120766") in new stack
    -- Executing [913811908714@luyin:4] MixMonitor("SIP/3164-0000001b", "/var/spool/asterisk/monitor/panguchangchun/20120222/3164/20120222195215-3164-13811908714.wav,b") in new stack
    -- Executing [913811908714@luyin:5] Dial("SIP/3164-0000001b", "") in new stack
 
阅读(2468) | 评论(0) | 转发(0) |
0

上一篇:博客已升级,请注意变更地址

下一篇:没有了

给主人留下些什么吧!~~