Chinaunix

标题: 新手Asterisk SIP配置问题 [打印本页]

作者: vincent1941    时间: 2007-11-03 09:05
标题: 新手Asterisk SIP配置问题
请问如何配置Asterisk,让两个SIP终端直接通信? Asterisk支持SIP视频终端吗? 用那种SIP softphone比较好?
刚开始接触Asterisk,请各位朋友不吝赐教,不胜感激!
作者: vincent1941    时间: 2007-11-03 15:02
我在sip.conf这样配置的:
[1000]
type=friend                     ; Friends place calls and receive calls
context=from-sip                ; Context for incoming calls from this user
host=dynamic                    ; This peer register with us
dtmfmode=rf2833                 ; Choices are inband, rfc2833, or info
progressinband=no               ; Polycom phones don't work properly with "never"
disallow=all
allow=ulaw
allow=alaw
allow=h263
allow=h263p

[2000]
type=friend                     ; Friends place calls and receive calls
context=from-sip                ; Context for incoming calls from this user
host=dynamic                    ; This peer register with us
dtmfmode=rf2833                 ; Choices are inband, rfc2833, or info
progressinband=no               ; Polycom phones don't work properly with "never"
disallow=all
allow=ulaw
allow=alaw
allow=h263
allow=h263p
canreinvite=no

在extensions.conf中这样配置:

[from-sip]
exten => s,1,Answer()
exten => s,2,Playback(hello-world)
exten => 1000,1,Dial(SIP/1000,60,tr)
exten => 2000,1,Dial(SIP/2000,60,tr)

结果用SIP终端呼叫时候出现:


-- Executing [s@from-sip:1] Answer("SIP/1000-0884d598", "") in new stack
    -- Executing [s@from-sip:2] Playback("SIP/1000-0884d598", "hello-world") in new stack
    -- <SIP/1000-0884d598> Playing 'hello-world' (language 'en')
  == Auto fallthrough, channel 'SIP/1000-0884d598' status is 'UNKNOWN'

请大家帮忙分析一下,先谢谢了!
作者: vincent1941    时间: 2007-11-05 16:42
有人了解吗
作者: gzlittle    时间: 2007-11-26 20:56
我也是刚学,但我直接用trixbox用的,上面有freepbx直接搞掂,很简单的....
作者: langfanyun    时间: 2007-11-29 10:34
会不会1000的SIP终端有问题,你用X-lite,用1000帐号注册,并呼叫自己,看是否能接通
作者: vincent1941    时间: 2007-12-11 18:37
谢谢
作者: itnow    时间: 2008-09-17 14:37
标题: 回复 #2 vincent1941 的帖子
在 extensions.conf 文件中把 autofallthrough=yes 这一项改为 autofallthrough=no 即可
作者: wcl0715    时间: 2008-10-10 16:55
我对Asterisk不了解,不过,从配置看,你的支持263,不支持264




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2