设为首页 收藏本站
开启辅助访问 切换到宽版
注册会员 找回密码

VoIP88

solo 发表于 2011-1-8 10:13 | 显示全部楼层
升级的时候会影响extensions.conf么
 楼主| zhangtuo 发表于 2011-1-8 11:10 | 显示全部楼层
回复 solo 的帖子

升级freepbx会影响的  木办法
flymind 发表于 2012-10-18 19:52 | 显示全部楼层
asterisk 1.8 似乎不能用
wxfwf11 发表于 2013-3-19 10:18 | 显示全部楼层
大才啊大才!
owen 发表于 2014-11-25 16:27 | 显示全部楼层
编辑vi /var/www/html/admin/modules/core/functions.inc.php
$ext->add($mcontext, $exten,'theend', new ext_execif('$["${ONETOUCH_RECFILE}"!="" & "${CDR(recordingfile)}"=""]','Set','CDR(recordingfile)=${ONETOUCH_RECFILE}'));
$ext->add($mcontext, $exten,'',new ext_goto('1','s','hangup-ivr'));
$ext->add($mcontext, $exten,'theend', new ext_hangup());
中间红色部分为添加的内容, 意思是在hangup应用之前Goto跳转到 hangup-ivr 下的 s,1
***这里的goto 跟dialplan的Goto有一点不一样, 参数顺序是相反的。

遇到的问题是:外线A 打电话给坐席B , B挂机以后,执行Goto , 但是无法play 语音给A。

-- Called SIP/0126666888/01110898323
    -- SIP/0126666888-00000006 is ringing
    -- SIP/0126666888-00000006 is ringing
    -- SIP/0126666888-00000006 answered SIP/12-00000005
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/12-00000005", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/12-00000005", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("SIP/12-00000005", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Goto("SIP/12-00000005", "hangup-ivr,s,1") in new stack
    -- Goto (hangup-ivr,s,1)
  == Channel 'SIP/12-00000005' jumping out of macro 'hangupcall'
    -- Executing [s@hangup-ivr:1] Playback("SIP/12-00000005", "en/thank-you-cooperation") in new stack
[2014-11-25 16:25:52] WARNING[3126]: file.c:764 ast_readaudio_callback: Failed to write frame
    -- <SIP/12-00000005> Playing 'en/thank-you-cooperation.ulaw' (language 'en')
[2014-11-25 16:25:52] WARNING[3126]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/12-00000005 for en/thank-you-cooperation
    -- Executing [s@hangup-ivr:2] Hangup("SIP/12-00000005", "") in new stack
  == Spawn extension (hangup-ivr, s, 2) exited non-zero on 'SIP/12-00000005'
  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/12-00000005' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 01110898323, 5) exited non-zero on 'SIP/12-00000005'

owen 发表于 2014-11-25 16:32 | 显示全部楼层
如果直接将外线路由到 自定义的Custom Destination
[hangup-ivr]
#exten => s,1(start),Hangup
exten => s,1,Playback(en/thank-you-cooperation)
exten => s,n,Hangup
就能顺利的play .

下面的日志

-- Executing [s@from-trunk-sip-0126666888:1] Set("SIP/0126666888-00000007", "GROUP()=OUT_2") in new stack
    -- Executing [s@from-trunk-sip-0126666888:2] Goto("SIP/0126666888-00000007", "from-trunk,s,1") in new stack
    -- Goto (from-trunk,s,1)
    -- Executing [s@from-trunk:1] ExecIf("SIP/0126666888-00000007", "1?Set(__FROM_DID=s)") in new stack
    -- Executing [s@from-trunk:2] Gosub("SIP/0126666888-00000007", "app-blacklist-check,s,1()") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("SIP/0126666888-00000007", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("SIP/0126666888-00000007", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/0126666888-00000007", "") in new stack
    -- Executing [s@from-trunk:3] Set("SIP/0126666888-00000007", "CDR(did)=s") in new stack
    -- Executing [s@from-trunk:4] ExecIf("SIP/0126666888-00000007", "0 ?Set(CALLERID(name)=01110898323)") in new stack
    -- Executing [s@from-trunk:5] Set("SIP/0126666888-00000007", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@from-trunk:6] Set("SIP/0126666888-00000007", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [s@from-trunk:7] Goto("SIP/0126666888-00000007", "hangup-ivr,s,1") in new stack
    -- Goto (hangup-ivr,s,1)
    -- Executing [s@hangup-ivr:1] Playback("SIP/0126666888-00000007", "en/thank-you-cooperation") in new stack
    -- <SIP/0126666888-00000007> Playing 'en/thank-you-cooperation.ulaw' (language 'en')
    -- Executing [s@hangup-ivr:2] Hangup("SIP/0126666888-00000007", "") in new stack
  == Spawn extension (hangup-ivr, s, 2) exited non-zero on 'SIP/0126666888-00000007'
owen 发表于 2014-11-25 16:37 | 显示全部楼层
请教怎么样能顺利的把外线通道接到Play 函数呢。

另外我尝试过通过一个功能码*123#  , 坐席B要挂机之前拨打*123# 期望将外线A转移到Play , 结果遇到问题是坐席自己听得Play的语音。
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

手机版|VoIP88 ( 粤ICP备11095982号   填写您的邮件地址,订阅我们的精彩内容:

GMT+8, 2019-1-21 02:08 , Processed in 0.138111 second(s), 16 queries .

Powered by VoIP88

© 2001-2017 VoIP88

快速回复 返回顶部 返回列表