- 论坛徽章:
- 0
|
我在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'
请大家帮忙分析一下,先谢谢了! |
|